Added a handful of x86-32 instructions that were missing so that llvm-mc would
[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 build
645 build_cpu
646 build_vendor
647 build_os
648 host
649 host_cpu
650 host_vendor
651 host_os
652 target
653 target_cpu
654 target_vendor
655 target_os
656 OS
657 HOST_OS
658 TARGET_OS
659 LINKALL
660 NOLINKALL
661 LLVM_ON_UNIX
662 LLVM_ON_WIN32
663 ARCH
664 ENDIAN
665 CC
666 CFLAGS
667 LDFLAGS
668 CPPFLAGS
669 ac_ct_CC
670 EXEEXT
671 OBJEXT
672 CPP
673 GREP
674 EGREP
675 LLVM_CROSS_COMPILING
676 BUILD_CC
677 BUILD_EXEEXT
678 BUILD_CXX
679 CVSBUILD
680 ENABLE_OPTIMIZED
681 ENABLE_PROFILING
682 DISABLE_ASSERTIONS
683 ENABLE_EXPENSIVE_CHECKS
684 EXPENSIVE_CHECKS
685 DEBUG_RUNTIME
686 DEBUG_SYMBOLS
687 JIT
688 TARGET_HAS_JIT
689 ENABLE_DOXYGEN
690 ENABLE_THREADS
691 ENABLE_PIC
692 ENABLE_SHARED
693 ENABLE_TIMESTAMPS
694 TARGETS_TO_BUILD
695 LLVM_ENUM_TARGETS
696 LLVM_ENUM_ASM_PRINTERS
697 LLVM_ENUM_ASM_PARSERS
698 LLVM_ENUM_DISASSEMBLERS
699 ENABLE_CBE_PRINTF_A
700 CLANGPATH
701 CLANGXXPATH
702 ENABLE_BUILT_CLANG
703 OPTIMIZE_OPTION
704 EXTRA_OPTIONS
705 BINUTILS_INCDIR
706 CXX
707 CXXFLAGS
708 ac_ct_CXX
709 NM
710 ifGNUmake
711 LN_S
712 CMP
713 CP
714 DATE
715 FIND
716 MKDIR
717 MV
718 RANLIB
719 AR
720 RM
721 SED
722 TAR
723 BINPWD
724 GRAPHVIZ
725 DOT
726 FDP
727 NEATO
728 TWOPI
729 CIRCO
730 GV
731 DOTTY
732 XDOT_PY
733 PERL
734 HAVE_PERL
735 INSTALL_PROGRAM
736 INSTALL_SCRIPT
737 INSTALL_DATA
738 BZIP2
739 CAT
740 DOXYGEN
741 GROFF
742 GZIP
743 POD2HTML
744 POD2MAN
745 PDFROFF
746 RUNTEST
747 TCLSH
748 ZIP
749 OCAMLC
750 OCAMLOPT
751 OCAMLDEP
752 OCAMLDOC
753 GAS
754 HAVE_LINK_VERSION_SCRIPT
755 INSTALL_LTDL_TRUE
756 INSTALL_LTDL_FALSE
757 CONVENIENCE_LTDL_TRUE
758 CONVENIENCE_LTDL_FALSE
759 LIBADD_DL
760 LLVMGCCCOMMAND
761 LLVMGXXCOMMAND
762 LLVMGCC
763 LLVMGXX
764 LLVMCC_OPTION
765 NO_VARIADIC_MACROS
766 NO_MISSING_FIELD_INITIALIZERS
767 USE_UDIS86
768 USE_OPROFILE
769 HAVE_PTHREAD
770 HUGE_VAL_SANITY
771 MMAP_FILE
772 LLVMCC1
773 LLVMCC1PLUS
774 LLVMGCCDIR
775 LLVMGCC_LANGS
776 SHLIBEXT
777 SHLIBPATH_VAR
778 LLVM_PREFIX
779 LLVM_BINDIR
780 LLVM_LIBDIR
781 LLVM_DATADIR
782 LLVM_DOCSDIR
783 LLVM_ETCDIR
784 LLVM_INCLUDEDIR
785 LLVM_INFODIR
786 LLVM_MANDIR
787 LLVM_CONFIGTIME
788 BINDINGS_TO_BUILD
789 ALL_BINDINGS
790 OCAML_LIBDIR
791 ENABLE_VISIBILITY_INLINES_HIDDEN
792 RPATH
793 RDYNAMIC
794 LIBOBJS
795 LTLIBOBJS'
796 ac_subst_files=''
797       ac_precious_vars='build_alias
798 host_alias
799 target_alias
800 CC
801 CFLAGS
802 LDFLAGS
803 CPPFLAGS
804 CPP
805 CXX
806 CXXFLAGS
807 CCC'
808 ac_subdirs_all='projects/llvm-gcc
809 projects/test-suite
810 projects/llvm-test
811 projects/poolalloc
812 projects/llvm-poolalloc
813 projects/sample
814 projects/privbracket
815 projects/llvm-stacker
816 projects/llvm-reopt
817 projects/llvm-java
818 projects/llvm-tv
819 projects/safecode
820 projects/llvm-kernel'
821
822 # Initialize some variables set by options.
823 ac_init_help=
824 ac_init_version=false
825 # The variables have the same names as the options, with
826 # dashes changed to underlines.
827 cache_file=/dev/null
828 exec_prefix=NONE
829 no_create=
830 no_recursion=
831 prefix=NONE
832 program_prefix=NONE
833 program_suffix=NONE
834 program_transform_name=s,x,x,
835 silent=
836 site=
837 srcdir=
838 verbose=
839 x_includes=NONE
840 x_libraries=NONE
841
842 # Installation directory options.
843 # These are left unexpanded so users can "make install exec_prefix=/foo"
844 # and all the variables that are supposed to be based on exec_prefix
845 # by default will actually change.
846 # Use braces instead of parens because sh, perl, etc. also accept them.
847 # (The list follows the same order as the GNU Coding Standards.)
848 bindir='${exec_prefix}/bin'
849 sbindir='${exec_prefix}/sbin'
850 libexecdir='${exec_prefix}/libexec'
851 datarootdir='${prefix}/share'
852 datadir='${datarootdir}'
853 sysconfdir='${prefix}/etc'
854 sharedstatedir='${prefix}/com'
855 localstatedir='${prefix}/var'
856 includedir='${prefix}/include'
857 oldincludedir='/usr/include'
858 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
859 infodir='${datarootdir}/info'
860 htmldir='${docdir}'
861 dvidir='${docdir}'
862 pdfdir='${docdir}'
863 psdir='${docdir}'
864 libdir='${exec_prefix}/lib'
865 localedir='${datarootdir}/locale'
866 mandir='${datarootdir}/man'
867
868 ac_prev=
869 ac_dashdash=
870 for ac_option
871 do
872   # If the previous option needs an argument, assign it.
873   if test -n "$ac_prev"; then
874     eval $ac_prev=\$ac_option
875     ac_prev=
876     continue
877   fi
878
879   case $ac_option in
880   *=*)  ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
881   *)    ac_optarg=yes ;;
882   esac
883
884   # Accept the important Cygnus configure options, so we can diagnose typos.
885
886   case $ac_dashdash$ac_option in
887   --)
888     ac_dashdash=yes ;;
889
890   -bindir | --bindir | --bindi | --bind | --bin | --bi)
891     ac_prev=bindir ;;
892   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
893     bindir=$ac_optarg ;;
894
895   -build | --build | --buil | --bui | --bu)
896     ac_prev=build_alias ;;
897   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
898     build_alias=$ac_optarg ;;
899
900   -cache-file | --cache-file | --cache-fil | --cache-fi \
901   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
902     ac_prev=cache_file ;;
903   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
904   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
905     cache_file=$ac_optarg ;;
906
907   --config-cache | -C)
908     cache_file=config.cache ;;
909
910   -datadir | --datadir | --datadi | --datad)
911     ac_prev=datadir ;;
912   -datadir=* | --datadir=* | --datadi=* | --datad=*)
913     datadir=$ac_optarg ;;
914
915   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
916   | --dataroo | --dataro | --datar)
917     ac_prev=datarootdir ;;
918   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
919   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
920     datarootdir=$ac_optarg ;;
921
922   -disable-* | --disable-*)
923     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
924     # Reject names that are not valid shell variable names.
925     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
926       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
927    { (exit 1); exit 1; }; }
928     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
929     eval enable_$ac_feature=no ;;
930
931   -docdir | --docdir | --docdi | --doc | --do)
932     ac_prev=docdir ;;
933   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
934     docdir=$ac_optarg ;;
935
936   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
937     ac_prev=dvidir ;;
938   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
939     dvidir=$ac_optarg ;;
940
941   -enable-* | --enable-*)
942     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
943     # Reject names that are not valid shell variable names.
944     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
945       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
946    { (exit 1); exit 1; }; }
947     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
948     eval enable_$ac_feature=\$ac_optarg ;;
949
950   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
951   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
952   | --exec | --exe | --ex)
953     ac_prev=exec_prefix ;;
954   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
955   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
956   | --exec=* | --exe=* | --ex=*)
957     exec_prefix=$ac_optarg ;;
958
959   -gas | --gas | --ga | --g)
960     # Obsolete; use --with-gas.
961     with_gas=yes ;;
962
963   -help | --help | --hel | --he | -h)
964     ac_init_help=long ;;
965   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
966     ac_init_help=recursive ;;
967   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
968     ac_init_help=short ;;
969
970   -host | --host | --hos | --ho)
971     ac_prev=host_alias ;;
972   -host=* | --host=* | --hos=* | --ho=*)
973     host_alias=$ac_optarg ;;
974
975   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
976     ac_prev=htmldir ;;
977   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
978   | --ht=*)
979     htmldir=$ac_optarg ;;
980
981   -includedir | --includedir | --includedi | --included | --include \
982   | --includ | --inclu | --incl | --inc)
983     ac_prev=includedir ;;
984   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
985   | --includ=* | --inclu=* | --incl=* | --inc=*)
986     includedir=$ac_optarg ;;
987
988   -infodir | --infodir | --infodi | --infod | --info | --inf)
989     ac_prev=infodir ;;
990   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
991     infodir=$ac_optarg ;;
992
993   -libdir | --libdir | --libdi | --libd)
994     ac_prev=libdir ;;
995   -libdir=* | --libdir=* | --libdi=* | --libd=*)
996     libdir=$ac_optarg ;;
997
998   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
999   | --libexe | --libex | --libe)
1000     ac_prev=libexecdir ;;
1001   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1002   | --libexe=* | --libex=* | --libe=*)
1003     libexecdir=$ac_optarg ;;
1004
1005   -localedir | --localedir | --localedi | --localed | --locale)
1006     ac_prev=localedir ;;
1007   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1008     localedir=$ac_optarg ;;
1009
1010   -localstatedir | --localstatedir | --localstatedi | --localstated \
1011   | --localstate | --localstat | --localsta | --localst | --locals)
1012     ac_prev=localstatedir ;;
1013   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1014   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1015     localstatedir=$ac_optarg ;;
1016
1017   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1018     ac_prev=mandir ;;
1019   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1020     mandir=$ac_optarg ;;
1021
1022   -nfp | --nfp | --nf)
1023     # Obsolete; use --without-fp.
1024     with_fp=no ;;
1025
1026   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1027   | --no-cr | --no-c | -n)
1028     no_create=yes ;;
1029
1030   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1031   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1032     no_recursion=yes ;;
1033
1034   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1035   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1036   | --oldin | --oldi | --old | --ol | --o)
1037     ac_prev=oldincludedir ;;
1038   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1039   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1040   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1041     oldincludedir=$ac_optarg ;;
1042
1043   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1044     ac_prev=prefix ;;
1045   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1046     prefix=$ac_optarg ;;
1047
1048   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1049   | --program-pre | --program-pr | --program-p)
1050     ac_prev=program_prefix ;;
1051   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1052   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1053     program_prefix=$ac_optarg ;;
1054
1055   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1056   | --program-suf | --program-su | --program-s)
1057     ac_prev=program_suffix ;;
1058   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1059   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1060     program_suffix=$ac_optarg ;;
1061
1062   -program-transform-name | --program-transform-name \
1063   | --program-transform-nam | --program-transform-na \
1064   | --program-transform-n | --program-transform- \
1065   | --program-transform | --program-transfor \
1066   | --program-transfo | --program-transf \
1067   | --program-trans | --program-tran \
1068   | --progr-tra | --program-tr | --program-t)
1069     ac_prev=program_transform_name ;;
1070   -program-transform-name=* | --program-transform-name=* \
1071   | --program-transform-nam=* | --program-transform-na=* \
1072   | --program-transform-n=* | --program-transform-=* \
1073   | --program-transform=* | --program-transfor=* \
1074   | --program-transfo=* | --program-transf=* \
1075   | --program-trans=* | --program-tran=* \
1076   | --progr-tra=* | --program-tr=* | --program-t=*)
1077     program_transform_name=$ac_optarg ;;
1078
1079   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1080     ac_prev=pdfdir ;;
1081   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1082     pdfdir=$ac_optarg ;;
1083
1084   -psdir | --psdir | --psdi | --psd | --ps)
1085     ac_prev=psdir ;;
1086   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1087     psdir=$ac_optarg ;;
1088
1089   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1090   | -silent | --silent | --silen | --sile | --sil)
1091     silent=yes ;;
1092
1093   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1094     ac_prev=sbindir ;;
1095   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1096   | --sbi=* | --sb=*)
1097     sbindir=$ac_optarg ;;
1098
1099   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1100   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1101   | --sharedst | --shareds | --shared | --share | --shar \
1102   | --sha | --sh)
1103     ac_prev=sharedstatedir ;;
1104   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1105   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1106   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1107   | --sha=* | --sh=*)
1108     sharedstatedir=$ac_optarg ;;
1109
1110   -site | --site | --sit)
1111     ac_prev=site ;;
1112   -site=* | --site=* | --sit=*)
1113     site=$ac_optarg ;;
1114
1115   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1116     ac_prev=srcdir ;;
1117   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1118     srcdir=$ac_optarg ;;
1119
1120   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1121   | --syscon | --sysco | --sysc | --sys | --sy)
1122     ac_prev=sysconfdir ;;
1123   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1124   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1125     sysconfdir=$ac_optarg ;;
1126
1127   -target | --target | --targe | --targ | --tar | --ta | --t)
1128     ac_prev=target_alias ;;
1129   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1130     target_alias=$ac_optarg ;;
1131
1132   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1133     verbose=yes ;;
1134
1135   -version | --version | --versio | --versi | --vers | -V)
1136     ac_init_version=: ;;
1137
1138   -with-* | --with-*)
1139     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1140     # Reject names that are not valid shell variable names.
1141     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1142       { echo "$as_me: error: invalid package name: $ac_package" >&2
1143    { (exit 1); exit 1; }; }
1144     ac_package=`echo $ac_package| sed 's/-/_/g'`
1145     eval with_$ac_package=\$ac_optarg ;;
1146
1147   -without-* | --without-*)
1148     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1149     # Reject names that are not valid shell variable names.
1150     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1151       { echo "$as_me: error: invalid package name: $ac_package" >&2
1152    { (exit 1); exit 1; }; }
1153     ac_package=`echo $ac_package | sed 's/-/_/g'`
1154     eval with_$ac_package=no ;;
1155
1156   --x)
1157     # Obsolete; use --with-x.
1158     with_x=yes ;;
1159
1160   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1161   | --x-incl | --x-inc | --x-in | --x-i)
1162     ac_prev=x_includes ;;
1163   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1164   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1165     x_includes=$ac_optarg ;;
1166
1167   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1168   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1169     ac_prev=x_libraries ;;
1170   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1171   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1172     x_libraries=$ac_optarg ;;
1173
1174   -*) { echo "$as_me: error: unrecognized option: $ac_option
1175 Try \`$0 --help' for more information." >&2
1176    { (exit 1); exit 1; }; }
1177     ;;
1178
1179   *=*)
1180     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1181     # Reject names that are not valid shell variable names.
1182     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1183       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1184    { (exit 1); exit 1; }; }
1185     eval $ac_envvar=\$ac_optarg
1186     export $ac_envvar ;;
1187
1188   *)
1189     # FIXME: should be removed in autoconf 3.0.
1190     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1191     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1192       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1193     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1194     ;;
1195
1196   esac
1197 done
1198
1199 if test -n "$ac_prev"; then
1200   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1201   { echo "$as_me: error: missing argument to $ac_option" >&2
1202    { (exit 1); exit 1; }; }
1203 fi
1204
1205 # Be sure to have absolute directory names.
1206 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1207                 datadir sysconfdir sharedstatedir localstatedir includedir \
1208                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1209                 libdir localedir mandir
1210 do
1211   eval ac_val=\$$ac_var
1212   case $ac_val in
1213     [\\/$]* | ?:[\\/]* )  continue;;
1214     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1215   esac
1216   { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1217    { (exit 1); exit 1; }; }
1218 done
1219
1220 # There might be people who depend on the old broken behavior: `$host'
1221 # used to hold the argument of --host etc.
1222 # FIXME: To remove some day.
1223 build=$build_alias
1224 host=$host_alias
1225 target=$target_alias
1226
1227 # FIXME: To remove some day.
1228 if test "x$host_alias" != x; then
1229   if test "x$build_alias" = x; then
1230     cross_compiling=maybe
1231     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1232     If a cross compiler is detected then cross compile mode will be used." >&2
1233   elif test "x$build_alias" != "x$host_alias"; then
1234     cross_compiling=yes
1235   fi
1236 fi
1237
1238 ac_tool_prefix=
1239 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1240
1241 test "$silent" = yes && exec 6>/dev/null
1242
1243
1244 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1245 ac_ls_di=`ls -di .` &&
1246 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1247   { echo "$as_me: error: Working directory cannot be determined" >&2
1248    { (exit 1); exit 1; }; }
1249 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1250   { echo "$as_me: error: pwd does not report name of working directory" >&2
1251    { (exit 1); exit 1; }; }
1252
1253
1254 # Find the source files, if location was not specified.
1255 if test -z "$srcdir"; then
1256   ac_srcdir_defaulted=yes
1257   # Try the directory containing this script, then the parent directory.
1258   ac_confdir=`$as_dirname -- "$0" ||
1259 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1260          X"$0" : 'X\(//\)[^/]' \| \
1261          X"$0" : 'X\(//\)$' \| \
1262          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1263 echo X"$0" |
1264     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1265             s//\1/
1266             q
1267           }
1268           /^X\(\/\/\)[^/].*/{
1269             s//\1/
1270             q
1271           }
1272           /^X\(\/\/\)$/{
1273             s//\1/
1274             q
1275           }
1276           /^X\(\/\).*/{
1277             s//\1/
1278             q
1279           }
1280           s/.*/./; q'`
1281   srcdir=$ac_confdir
1282   if test ! -r "$srcdir/$ac_unique_file"; then
1283     srcdir=..
1284   fi
1285 else
1286   ac_srcdir_defaulted=no
1287 fi
1288 if test ! -r "$srcdir/$ac_unique_file"; then
1289   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1290   { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1291    { (exit 1); exit 1; }; }
1292 fi
1293 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1294 ac_abs_confdir=`(
1295         cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1296    { (exit 1); exit 1; }; }
1297         pwd)`
1298 # When building in place, set srcdir=.
1299 if test "$ac_abs_confdir" = "$ac_pwd"; then
1300   srcdir=.
1301 fi
1302 # Remove unnecessary trailing slashes from srcdir.
1303 # Double slashes in file names in object file debugging info
1304 # mess up M-x gdb in Emacs.
1305 case $srcdir in
1306 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1307 esac
1308 for ac_var in $ac_precious_vars; do
1309   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1310   eval ac_env_${ac_var}_value=\$${ac_var}
1311   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1312   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1313 done
1314
1315 #
1316 # Report the --help message.
1317 #
1318 if test "$ac_init_help" = "long"; then
1319   # Omit some internal or obsolete options to make the list less imposing.
1320   # This message is too long to be a string in the A/UX 3.1 sh.
1321   cat <<_ACEOF
1322 \`configure' configures llvm 2.9svn to adapt to many kinds of systems.
1323
1324 Usage: $0 [OPTION]... [VAR=VALUE]...
1325
1326 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1327 VAR=VALUE.  See below for descriptions of some of the useful variables.
1328
1329 Defaults for the options are specified in brackets.
1330
1331 Configuration:
1332   -h, --help              display this help and exit
1333       --help=short        display options specific to this package
1334       --help=recursive    display the short help of all the included packages
1335   -V, --version           display version information and exit
1336   -q, --quiet, --silent   do not print \`checking...' messages
1337       --cache-file=FILE   cache test results in FILE [disabled]
1338   -C, --config-cache      alias for \`--cache-file=config.cache'
1339   -n, --no-create         do not create output files
1340       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1341
1342 Installation directories:
1343   --prefix=PREFIX         install architecture-independent files in PREFIX
1344                           [$ac_default_prefix]
1345   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1346                           [PREFIX]
1347
1348 By default, \`make install' will install all the files in
1349 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1350 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1351 for instance \`--prefix=\$HOME'.
1352
1353 For better control, use the options below.
1354
1355 Fine tuning of the installation directories:
1356   --bindir=DIR           user executables [EPREFIX/bin]
1357   --sbindir=DIR          system admin executables [EPREFIX/sbin]
1358   --libexecdir=DIR       program executables [EPREFIX/libexec]
1359   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
1360   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
1361   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
1362   --libdir=DIR           object code libraries [EPREFIX/lib]
1363   --includedir=DIR       C header files [PREFIX/include]
1364   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
1365   --datarootdir=DIR      read-only arch.-independent data root [PREFIX/share]
1366   --datadir=DIR          read-only architecture-independent data [DATAROOTDIR]
1367   --infodir=DIR          info documentation [DATAROOTDIR/info]
1368   --localedir=DIR        locale-dependent data [DATAROOTDIR/locale]
1369   --mandir=DIR           man documentation [DATAROOTDIR/man]
1370   --docdir=DIR           documentation root [DATAROOTDIR/doc/-llvm-]
1371   --htmldir=DIR          html documentation [DOCDIR]
1372   --dvidir=DIR           dvi documentation [DOCDIR]
1373   --pdfdir=DIR           pdf documentation [DOCDIR]
1374   --psdir=DIR            ps documentation [DOCDIR]
1375 _ACEOF
1376
1377   cat <<\_ACEOF
1378
1379 System types:
1380   --build=BUILD     configure for building on BUILD [guessed]
1381   --host=HOST       cross-compile to build programs to run on HOST [BUILD]
1382   --target=TARGET   configure for building compilers for TARGET [HOST]
1383 _ACEOF
1384 fi
1385
1386 if test -n "$ac_init_help"; then
1387   case $ac_init_help in
1388      short | recursive ) echo "Configuration of llvm 2.9svn:";;
1389    esac
1390   cat <<\_ACEOF
1391
1392 Optional Features:
1393   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1394   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1395   --enable-optimized      Compile with optimizations enabled (default is NO)
1396   --enable-profiling      Compile with profiling enabled (default is NO)
1397   --enable-assertions     Compile with assertion checks enabled (default is
1398                           YES)
1399   --enable-expensive-checks
1400                           Compile with expensive debug checks enabled (default
1401                           is NO)
1402   --enable-debug-runtime  Build runtime libs with debug symbols (default is
1403                           NO)
1404   --enable-debug-symbols  Build compiler with debug symbols (default is NO if
1405                           optimization is on and YES if it's off)
1406   --enable-jit            Enable Just In Time Compiling (default is YES)
1407   --enable-doxygen        Build doxygen documentation (default is NO)
1408   --enable-threads        Use threads if available (default is YES)
1409   --enable-pic            Build LLVM with Position Independent Code (default
1410                           is YES)
1411   --enable-shared         Build a shared library and link tools against it
1412                           (default is NO)
1413   --enable-timestamps     Enable embedding timestamp information in build
1414                           (default is YES)
1415   --enable-targets        Build specific host targets: all or
1416                           target1,target2,... Valid targets are: host, x86,
1417                           x86_64, sparc, powerpc, alpha, arm, mips, spu,
1418                           xcore, msp430, systemz, blackfin, ptx, cbe, and cpp
1419                           (default=all)
1420   --enable-cbe-printf-a   Enable C Backend output with hex floating point via
1421                           %a (default is YES)
1422   --enable-bindings       Build specific language bindings:
1423                           all,auto,none,{binding-name} (default=auto)
1424   --enable-libffi         Check for the presence of libffi (default is NO)
1425   --enable-ltdl-install   install libltdl
1426
1427 Optional Packages:
1428   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1429   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1430   --with-llvmgccdir       Specify location of llvm-gcc install dir (default
1431                           searches PATH)
1432   --with-llvmgcc          Specify location of llvm-gcc driver (default
1433                           searches PATH)
1434   --with-llvmgxx          Specify location of llvm-g++ driver (default
1435                           searches PATH)
1436   --with-clang            Specify location of clang compiler (default is
1437                           --with-built-clang)
1438   --with-built-clang      Use the compiled Clang as the LLVM compiler
1439                           (default=check)
1440   --with-optimize-option  Select the compiler options to use for optimized
1441                           builds
1442   --with-extra-options    Specify additional options to compile LLVM with
1443   --with-ocaml-libdir     Specify install location for ocaml bindings (default
1444                           is stdlib)
1445   --with-c-include-dirs   Colon separated list of directories clang will
1446                           search for headers
1447   --with-cxx-include-root Directory with the libstdc++ headers.
1448   --with-cxx-include-arch Architecture of the libstdc++ headers.
1449   --with-cxx-include-32bit-dir
1450                           32 bit multilib dir.
1451   --with-cxx-include-64bit-dir
1452                           64 bit multilib directory.
1453   --with-binutils-include Specify path to binutils/include/ containing
1454                           plugin-api.h file for gold plugin.
1455   --with-tclinclude       directory where tcl headers are
1456   --with-llvmcc=<name>    Choose the LLVM capable compiler to use (llvm-gcc,
1457                           clang, or none; default=check)
1458   --with-udis86=<path>    Use udis86 external x86 disassembler library
1459   --with-oprofile=<prefix>
1460                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1461
1462 Some influential environment variables:
1463   CC          C compiler command
1464   CFLAGS      C compiler flags
1465   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1466               nonstandard directory <lib dir>
1467   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1468               you have headers in a nonstandard directory <include dir>
1469   CPP         C preprocessor
1470   CXX         C++ compiler command
1471   CXXFLAGS    C++ compiler flags
1472
1473 Use these variables to override the choices made by `configure' or to help
1474 it to find libraries and programs with nonstandard names/locations.
1475
1476 Report bugs to <llvmbugs@cs.uiuc.edu>.
1477 _ACEOF
1478 ac_status=$?
1479 fi
1480
1481 if test "$ac_init_help" = "recursive"; then
1482   # If there are subdirs, report their specific --help.
1483   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1484     test -d "$ac_dir" || continue
1485     ac_builddir=.
1486
1487 case "$ac_dir" in
1488 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1489 *)
1490   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1491   # A ".." for each directory in $ac_dir_suffix.
1492   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1493   case $ac_top_builddir_sub in
1494   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1495   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1496   esac ;;
1497 esac
1498 ac_abs_top_builddir=$ac_pwd
1499 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1500 # for backward compatibility:
1501 ac_top_builddir=$ac_top_build_prefix
1502
1503 case $srcdir in
1504   .)  # We are building in place.
1505     ac_srcdir=.
1506     ac_top_srcdir=$ac_top_builddir_sub
1507     ac_abs_top_srcdir=$ac_pwd ;;
1508   [\\/]* | ?:[\\/]* )  # Absolute name.
1509     ac_srcdir=$srcdir$ac_dir_suffix;
1510     ac_top_srcdir=$srcdir
1511     ac_abs_top_srcdir=$srcdir ;;
1512   *) # Relative name.
1513     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1514     ac_top_srcdir=$ac_top_build_prefix$srcdir
1515     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1516 esac
1517 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1518
1519     cd "$ac_dir" || { ac_status=$?; continue; }
1520     # Check for guested configure.
1521     if test -f "$ac_srcdir/configure.gnu"; then
1522       echo &&
1523       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1524     elif test -f "$ac_srcdir/configure"; then
1525       echo &&
1526       $SHELL "$ac_srcdir/configure" --help=recursive
1527     else
1528       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1529     fi || ac_status=$?
1530     cd "$ac_pwd" || { ac_status=$?; break; }
1531   done
1532 fi
1533
1534 test -n "$ac_init_help" && exit $ac_status
1535 if $ac_init_version; then
1536   cat <<\_ACEOF
1537 llvm configure 2.9svn
1538 generated by GNU Autoconf 2.60
1539
1540 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1541 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1542 This configure script is free software; the Free Software Foundation
1543 gives unlimited permission to copy, distribute and modify it.
1544
1545 Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
1546 _ACEOF
1547   exit
1548 fi
1549 cat >config.log <<_ACEOF
1550 This file contains any messages produced by compilers while
1551 running configure, to aid debugging if configure makes a mistake.
1552
1553 It was created by llvm $as_me 2.9svn, which was
1554 generated by GNU Autoconf 2.60.  Invocation command line was
1555
1556   $ $0 $@
1557
1558 _ACEOF
1559 exec 5>>config.log
1560 {
1561 cat <<_ASUNAME
1562 ## --------- ##
1563 ## Platform. ##
1564 ## --------- ##
1565
1566 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1567 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1568 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1569 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1570 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1571
1572 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1573 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1574
1575 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1576 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1577 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1578 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1579 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1580 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1581 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1582
1583 _ASUNAME
1584
1585 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1586 for as_dir in $PATH
1587 do
1588   IFS=$as_save_IFS
1589   test -z "$as_dir" && as_dir=.
1590   echo "PATH: $as_dir"
1591 done
1592 IFS=$as_save_IFS
1593
1594 } >&5
1595
1596 cat >&5 <<_ACEOF
1597
1598
1599 ## ----------- ##
1600 ## Core tests. ##
1601 ## ----------- ##
1602
1603 _ACEOF
1604
1605
1606 # Keep a trace of the command line.
1607 # Strip out --no-create and --no-recursion so they do not pile up.
1608 # Strip out --silent because we don't want to record it for future runs.
1609 # Also quote any args containing shell meta-characters.
1610 # Make two passes to allow for proper duplicate-argument suppression.
1611 ac_configure_args=
1612 ac_configure_args0=
1613 ac_configure_args1=
1614 ac_must_keep_next=false
1615 for ac_pass in 1 2
1616 do
1617   for ac_arg
1618   do
1619     case $ac_arg in
1620     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1621     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1622     | -silent | --silent | --silen | --sile | --sil)
1623       continue ;;
1624     *\'*)
1625       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1626     esac
1627     case $ac_pass in
1628     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1629     2)
1630       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1631       if test $ac_must_keep_next = true; then
1632         ac_must_keep_next=false # Got value, back to normal.
1633       else
1634         case $ac_arg in
1635           *=* | --config-cache | -C | -disable-* | --disable-* \
1636           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1637           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1638           | -with-* | --with-* | -without-* | --without-* | --x)
1639             case "$ac_configure_args0 " in
1640               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1641             esac
1642             ;;
1643           -* ) ac_must_keep_next=true ;;
1644         esac
1645       fi
1646       ac_configure_args="$ac_configure_args '$ac_arg'"
1647       ;;
1648     esac
1649   done
1650 done
1651 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1652 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1653
1654 # When interrupted or exit'd, cleanup temporary files, and complete
1655 # config.log.  We remove comments because anyway the quotes in there
1656 # would cause problems or look ugly.
1657 # WARNING: Use '\'' to represent an apostrophe within the trap.
1658 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1659 trap 'exit_status=$?
1660   # Save into config.log some information that might help in debugging.
1661   {
1662     echo
1663
1664     cat <<\_ASBOX
1665 ## ---------------- ##
1666 ## Cache variables. ##
1667 ## ---------------- ##
1668 _ASBOX
1669     echo
1670     # The following way of writing the cache mishandles newlines in values,
1671 (
1672   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1673     eval ac_val=\$$ac_var
1674     case $ac_val in #(
1675     *${as_nl}*)
1676       case $ac_var in #(
1677       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1678 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1679       esac
1680       case $ac_var in #(
1681       _ | IFS | as_nl) ;; #(
1682       *) $as_unset $ac_var ;;
1683       esac ;;
1684     esac
1685   done
1686   (set) 2>&1 |
1687     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1688     *${as_nl}ac_space=\ *)
1689       sed -n \
1690         "s/'\''/'\''\\\\'\'''\''/g;
1691           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1692       ;; #(
1693     *)
1694       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1695       ;;
1696     esac |
1697     sort
1698 )
1699     echo
1700
1701     cat <<\_ASBOX
1702 ## ----------------- ##
1703 ## Output variables. ##
1704 ## ----------------- ##
1705 _ASBOX
1706     echo
1707     for ac_var in $ac_subst_vars
1708     do
1709       eval ac_val=\$$ac_var
1710       case $ac_val in
1711       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1712       esac
1713       echo "$ac_var='\''$ac_val'\''"
1714     done | sort
1715     echo
1716
1717     if test -n "$ac_subst_files"; then
1718       cat <<\_ASBOX
1719 ## ------------------- ##
1720 ## File substitutions. ##
1721 ## ------------------- ##
1722 _ASBOX
1723       echo
1724       for ac_var in $ac_subst_files
1725       do
1726         eval ac_val=\$$ac_var
1727         case $ac_val in
1728         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1729         esac
1730         echo "$ac_var='\''$ac_val'\''"
1731       done | sort
1732       echo
1733     fi
1734
1735     if test -s confdefs.h; then
1736       cat <<\_ASBOX
1737 ## ----------- ##
1738 ## confdefs.h. ##
1739 ## ----------- ##
1740 _ASBOX
1741       echo
1742       cat confdefs.h
1743       echo
1744     fi
1745     test "$ac_signal" != 0 &&
1746       echo "$as_me: caught signal $ac_signal"
1747     echo "$as_me: exit $exit_status"
1748   } >&5
1749   rm -f core *.core core.conftest.* &&
1750     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1751     exit $exit_status
1752 ' 0
1753 for ac_signal in 1 2 13 15; do
1754   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1755 done
1756 ac_signal=0
1757
1758 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1759 rm -f -r conftest* confdefs.h
1760
1761 # Predefined preprocessor variables.
1762
1763 cat >>confdefs.h <<_ACEOF
1764 #define PACKAGE_NAME "$PACKAGE_NAME"
1765 _ACEOF
1766
1767
1768 cat >>confdefs.h <<_ACEOF
1769 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1770 _ACEOF
1771
1772
1773 cat >>confdefs.h <<_ACEOF
1774 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1775 _ACEOF
1776
1777
1778 cat >>confdefs.h <<_ACEOF
1779 #define PACKAGE_STRING "$PACKAGE_STRING"
1780 _ACEOF
1781
1782
1783 cat >>confdefs.h <<_ACEOF
1784 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1785 _ACEOF
1786
1787
1788 # Let the site file select an alternate cache file if it wants to.
1789 # Prefer explicitly selected file to automatically selected ones.
1790 if test -n "$CONFIG_SITE"; then
1791   set x "$CONFIG_SITE"
1792 elif test "x$prefix" != xNONE; then
1793   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1794 else
1795   set x "$ac_default_prefix/share/config.site" \
1796         "$ac_default_prefix/etc/config.site"
1797 fi
1798 shift
1799 for ac_site_file
1800 do
1801   if test -r "$ac_site_file"; then
1802     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1803 echo "$as_me: loading site script $ac_site_file" >&6;}
1804     sed 's/^/| /' "$ac_site_file" >&5
1805     . "$ac_site_file"
1806   fi
1807 done
1808
1809 if test -r "$cache_file"; then
1810   # Some versions of bash will fail to source /dev/null (special
1811   # files actually), so we avoid doing that.
1812   if test -f "$cache_file"; then
1813     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1814 echo "$as_me: loading cache $cache_file" >&6;}
1815     case $cache_file in
1816       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1817       *)                      . "./$cache_file";;
1818     esac
1819   fi
1820 else
1821   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1822 echo "$as_me: creating cache $cache_file" >&6;}
1823   >$cache_file
1824 fi
1825
1826 # Check that the precious variables saved in the cache have kept the same
1827 # value.
1828 ac_cache_corrupted=false
1829 for ac_var in $ac_precious_vars; do
1830   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1831   eval ac_new_set=\$ac_env_${ac_var}_set
1832   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1833   eval ac_new_val=\$ac_env_${ac_var}_value
1834   case $ac_old_set,$ac_new_set in
1835     set,)
1836       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1837 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1838       ac_cache_corrupted=: ;;
1839     ,set)
1840       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1841 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1842       ac_cache_corrupted=: ;;
1843     ,);;
1844     *)
1845       if test "x$ac_old_val" != "x$ac_new_val"; then
1846         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1847 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1848         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1849 echo "$as_me:   former value:  $ac_old_val" >&2;}
1850         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1851 echo "$as_me:   current value: $ac_new_val" >&2;}
1852         ac_cache_corrupted=:
1853       fi;;
1854   esac
1855   # Pass precious variables to config.status.
1856   if test "$ac_new_set" = set; then
1857     case $ac_new_val in
1858     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1859     *) ac_arg=$ac_var=$ac_new_val ;;
1860     esac
1861     case " $ac_configure_args " in
1862       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1863       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1864     esac
1865   fi
1866 done
1867 if $ac_cache_corrupted; then
1868   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1869 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1870   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1871 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1872    { (exit 1); exit 1; }; }
1873 fi
1874
1875
1876
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899 ac_ext=c
1900 ac_cpp='$CPP $CPPFLAGS'
1901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1904
1905
1906
1907 LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
1908
1909
1910
1911
1912
1913
1914
1915 ac_aux_dir=
1916 for ac_dir in autoconf "$srcdir"/autoconf; do
1917   if test -f "$ac_dir/install-sh"; then
1918     ac_aux_dir=$ac_dir
1919     ac_install_sh="$ac_aux_dir/install-sh -c"
1920     break
1921   elif test -f "$ac_dir/install.sh"; then
1922     ac_aux_dir=$ac_dir
1923     ac_install_sh="$ac_aux_dir/install.sh -c"
1924     break
1925   elif test -f "$ac_dir/shtool"; then
1926     ac_aux_dir=$ac_dir
1927     ac_install_sh="$ac_aux_dir/shtool install -c"
1928     break
1929   fi
1930 done
1931 if test -z "$ac_aux_dir"; then
1932   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1933 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1934    { (exit 1); exit 1; }; }
1935 fi
1936
1937 # These three variables are undocumented and unsupported,
1938 # and are intended to be withdrawn in a future Autoconf release.
1939 # They can cause serious problems if a builder's source tree is in a directory
1940 # whose full name contains unusual characters.
1941 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1942 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1943 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1944
1945
1946
1947 if test ${srcdir} != "." ; then
1948   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1949     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1950 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1951    { (exit 1); exit 1; }; }
1952   fi
1953 fi
1954
1955
1956
1957 if test -d ${srcdir}/projects/llvm-gcc ; then
1958   subdirs="$subdirs projects/llvm-gcc"
1959
1960 fi
1961
1962 if test -d ${srcdir}/projects/test-suite ; then
1963   subdirs="$subdirs projects/test-suite"
1964
1965 fi
1966
1967 if test -d ${srcdir}/projects/llvm-test ; then
1968   subdirs="$subdirs projects/llvm-test"
1969
1970 fi
1971
1972 if test -d ${srcdir}/projects/poolalloc ; then
1973   subdirs="$subdirs projects/poolalloc"
1974
1975 fi
1976
1977 if test -d ${srcdir}/projects/llvm-poolalloc ; then
1978   subdirs="$subdirs projects/llvm-poolalloc"
1979
1980 fi
1981
1982 for i in `ls ${srcdir}/projects`
1983 do
1984   if test -d ${srcdir}/projects/${i} ; then
1985     case ${i} in
1986       sample)       subdirs="$subdirs projects/sample"
1987     ;;
1988       privbracket)  subdirs="$subdirs projects/privbracket"
1989  ;;
1990       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1991  ;;
1992       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
1993 ;;
1994       llvm-java)    subdirs="$subdirs projects/llvm-java"
1995  ;;
1996       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
1997    ;;
1998       safecode)     subdirs="$subdirs projects/safecode"
1999  ;;
2000       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2001  ;;
2002       llvm-gcc)       ;;
2003       test-suite)     ;;
2004       llvm-test)      ;;
2005       poolalloc)      ;;
2006       llvm-poolalloc) ;;
2007       *)
2008         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2009 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2010         ;;
2011     esac
2012   fi
2013 done
2014
2015
2016 # Make sure we can run config.sub.
2017 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2018   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2019 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2020    { (exit 1); exit 1; }; }
2021
2022 { echo "$as_me:$LINENO: checking build system type" >&5
2023 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2024 if test "${ac_cv_build+set}" = set; then
2025   echo $ECHO_N "(cached) $ECHO_C" >&6
2026 else
2027   ac_build_alias=$build_alias
2028 test "x$ac_build_alias" = x &&
2029   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2030 test "x$ac_build_alias" = x &&
2031   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2032 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2033    { (exit 1); exit 1; }; }
2034 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2035   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2036 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2037    { (exit 1); exit 1; }; }
2038
2039 fi
2040 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2041 echo "${ECHO_T}$ac_cv_build" >&6; }
2042 case $ac_cv_build in
2043 *-*-*) ;;
2044 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2045 echo "$as_me: error: invalid value of canonical build" >&2;}
2046    { (exit 1); exit 1; }; };;
2047 esac
2048 build=$ac_cv_build
2049 ac_save_IFS=$IFS; IFS='-'
2050 set x $ac_cv_build
2051 shift
2052 build_cpu=$1
2053 build_vendor=$2
2054 shift; shift
2055 # Remember, the first character of IFS is used to create $*,
2056 # except with old shells:
2057 build_os=$*
2058 IFS=$ac_save_IFS
2059 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2060
2061
2062 { echo "$as_me:$LINENO: checking host system type" >&5
2063 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2064 if test "${ac_cv_host+set}" = set; then
2065   echo $ECHO_N "(cached) $ECHO_C" >&6
2066 else
2067   if test "x$host_alias" = x; then
2068   ac_cv_host=$ac_cv_build
2069 else
2070   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2071     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2072 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2073    { (exit 1); exit 1; }; }
2074 fi
2075
2076 fi
2077 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2078 echo "${ECHO_T}$ac_cv_host" >&6; }
2079 case $ac_cv_host in
2080 *-*-*) ;;
2081 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2082 echo "$as_me: error: invalid value of canonical host" >&2;}
2083    { (exit 1); exit 1; }; };;
2084 esac
2085 host=$ac_cv_host
2086 ac_save_IFS=$IFS; IFS='-'
2087 set x $ac_cv_host
2088 shift
2089 host_cpu=$1
2090 host_vendor=$2
2091 shift; shift
2092 # Remember, the first character of IFS is used to create $*,
2093 # except with old shells:
2094 host_os=$*
2095 IFS=$ac_save_IFS
2096 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2097
2098
2099 { echo "$as_me:$LINENO: checking target system type" >&5
2100 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2101 if test "${ac_cv_target+set}" = set; then
2102   echo $ECHO_N "(cached) $ECHO_C" >&6
2103 else
2104   if test "x$target_alias" = x; then
2105   ac_cv_target=$ac_cv_host
2106 else
2107   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2108     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2109 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2110    { (exit 1); exit 1; }; }
2111 fi
2112
2113 fi
2114 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2115 echo "${ECHO_T}$ac_cv_target" >&6; }
2116 case $ac_cv_target in
2117 *-*-*) ;;
2118 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2119 echo "$as_me: error: invalid value of canonical target" >&2;}
2120    { (exit 1); exit 1; }; };;
2121 esac
2122 target=$ac_cv_target
2123 ac_save_IFS=$IFS; IFS='-'
2124 set x $ac_cv_target
2125 shift
2126 target_cpu=$1
2127 target_vendor=$2
2128 shift; shift
2129 # Remember, the first character of IFS is used to create $*,
2130 # except with old shells:
2131 target_os=$*
2132 IFS=$ac_save_IFS
2133 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2134
2135
2136 # The aliases save the names the user supplied, while $host etc.
2137 # will get canonicalized.
2138 test -n "$target_alias" &&
2139   test "$program_prefix$program_suffix$program_transform_name" = \
2140     NONENONEs,x,x, &&
2141   program_prefix=${target_alias}-
2142
2143 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2144 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2145 if test "${llvm_cv_os_type+set}" = set; then
2146   echo $ECHO_N "(cached) $ECHO_C" >&6
2147 else
2148   case $host in
2149   *-*-aix*)
2150     llvm_cv_link_all_option="-Wl,--whole-archive"
2151     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2152     llvm_cv_os_type="AIX"
2153     llvm_cv_platform_type="Unix" ;;
2154   *-*-irix*)
2155     llvm_cv_link_all_option="-Wl,--whole-archive"
2156     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2157     llvm_cv_os_type="IRIX"
2158     llvm_cv_platform_type="Unix" ;;
2159   *-*-cygwin*)
2160     llvm_cv_link_all_option="-Wl,--whole-archive"
2161     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2162     llvm_cv_os_type="Cygwin"
2163     llvm_cv_platform_type="Unix" ;;
2164   *-*-darwin*)
2165     llvm_cv_link_all_option="-Wl,-all_load"
2166     llvm_cv_no_link_all_option="-Wl,-noall_load"
2167     llvm_cv_os_type="Darwin"
2168     llvm_cv_platform_type="Unix" ;;
2169   *-*-minix*)
2170     llvm_cv_link_all_option="-Wl,-all_load"
2171     llvm_cv_no_link_all_option="-Wl,-noall_load"
2172     llvm_cv_os_type="Minix"
2173     llvm_cv_platform_type="Unix" ;;
2174   *-*-freebsd*)
2175     llvm_cv_link_all_option="-Wl,--whole-archive"
2176     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2177     llvm_cv_os_type="FreeBSD"
2178     llvm_cv_platform_type="Unix" ;;
2179   *-*-openbsd*)
2180     llvm_cv_link_all_option="-Wl,--whole-archive"
2181     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2182     llvm_cv_os_type="OpenBSD"
2183     llvm_cv_platform_type="Unix" ;;
2184   *-*-netbsd*)
2185     llvm_cv_link_all_option="-Wl,--whole-archive"
2186     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2187     llvm_cv_os_type="NetBSD"
2188     llvm_cv_platform_type="Unix" ;;
2189   *-*-dragonfly*)
2190     llvm_cv_link_all_option="-Wl,--whole-archive"
2191     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2192     llvm_cv_os_type="DragonFly"
2193     llvm_cv_platform_type="Unix" ;;
2194   *-*-hpux*)
2195     llvm_cv_link_all_option="-Wl,--whole-archive"
2196     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2197     llvm_cv_os_type="HP-UX"
2198     llvm_cv_platform_type="Unix" ;;
2199   *-*-interix*)
2200     llvm_cv_link_all_option="-Wl,--whole-archive"
2201     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2202     llvm_cv_os_type="Interix"
2203     llvm_cv_platform_type="Unix" ;;
2204   *-*-linux*)
2205     llvm_cv_link_all_option="-Wl,--whole-archive"
2206     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2207     llvm_cv_os_type="Linux"
2208     llvm_cv_platform_type="Unix" ;;
2209   *-*-solaris*)
2210     llvm_cv_link_all_option="-Wl,-z,allextract"
2211     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2212     llvm_cv_os_type="SunOS"
2213     llvm_cv_platform_type="Unix" ;;
2214   *-*-auroraux*)
2215     llvm_cv_link_all_option="-Wl,-z,allextract"
2216     llvm_cv_link_all_option="-Wl,-z,defaultextract"
2217     llvm_cv_os_type="AuroraUX"
2218     llvm_cv_platform_type="Unix" ;;
2219   *-*-win32*)
2220     llvm_cv_link_all_option="-Wl,--whole-archive"
2221     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2222     llvm_cv_os_type="Win32"
2223     llvm_cv_platform_type="Win32" ;;
2224   *-*-mingw*)
2225     llvm_cv_link_all_option="-Wl,--whole-archive"
2226     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2227     llvm_cv_os_type="MingW"
2228     llvm_cv_platform_type="Win32" ;;
2229   *-*-haiku*)
2230     llvm_cv_link_all_option="-Wl,--whole-archive"
2231     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2232     llvm_cv_os_type="Haiku"
2233     llvm_cv_platform_type="Unix" ;;
2234   *-unknown-eabi*)
2235     llvm_cv_link_all_option="-Wl,--whole-archive"
2236     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2237     llvm_cv_os_type="Freestanding"
2238     llvm_cv_platform_type="Unix" ;;
2239   *-unknown-elf*)
2240     llvm_cv_link_all_option="-Wl,--whole-archive"
2241     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2242     llvm_cv_os_type="Freestanding"
2243     llvm_cv_platform_type="Unix" ;;
2244   *)
2245     llvm_cv_link_all_option=""
2246     llvm_cv_no_link_all_option=""
2247     llvm_cv_os_type="Unknown"
2248     llvm_cv_platform_type="Unknown" ;;
2249 esac
2250 fi
2251 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2252 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2253
2254 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2255 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2256 if test "${llvm_cv_target_os_type+set}" = set; then
2257   echo $ECHO_N "(cached) $ECHO_C" >&6
2258 else
2259   case $target in
2260   *-*-aix*)
2261     llvm_cv_target_os_type="AIX" ;;
2262   *-*-irix*)
2263     llvm_cv_target_os_type="IRIX" ;;
2264   *-*-cygwin*)
2265     llvm_cv_target_os_type="Cygwin" ;;
2266   *-*-darwin*)
2267     llvm_cv_target_os_type="Darwin" ;;
2268   *-*-minix*)
2269     llvm_cv_target_os_type="Minix" ;;
2270   *-*-freebsd*)
2271     llvm_cv_target_os_type="FreeBSD" ;;
2272   *-*-openbsd*)
2273     llvm_cv_target_os_type="OpenBSD" ;;
2274   *-*-netbsd*)
2275     llvm_cv_target_os_type="NetBSD" ;;
2276   *-*-dragonfly*)
2277     llvm_cv_target_os_type="DragonFly" ;;
2278   *-*-hpux*)
2279     llvm_cv_target_os_type="HP-UX" ;;
2280   *-*-interix*)
2281     llvm_cv_target_os_type="Interix" ;;
2282   *-*-linux*)
2283     llvm_cv_target_os_type="Linux" ;;
2284   *-*-solaris*)
2285     llvm_cv_target_os_type="SunOS" ;;
2286   *-*-auroraux*)
2287     llvm_cv_target_os_type="AuroraUX" ;;
2288   *-*-win32*)
2289     llvm_cv_target_os_type="Win32" ;;
2290   *-*-mingw*)
2291     llvm_cv_target_os_type="MingW" ;;
2292   *-*-haiku*)
2293     llvm_cv_target_os_type="Haiku" ;;
2294   *-unknown-eabi*)
2295     llvm_cv_target_os_type="Freestanding" ;;
2296   *)
2297     llvm_cv_target_os_type="Unknown" ;;
2298 esac
2299 fi
2300 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2301 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2302
2303 if test "$llvm_cv_os_type" = "Unknown" ; then
2304   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2305 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2306    { (exit 1); exit 1; }; }
2307 fi
2308
2309 OS=$llvm_cv_os_type
2310
2311 HOST_OS=$llvm_cv_os_type
2312
2313 TARGET_OS=$llvm_cv_target_os_type
2314
2315
2316 LINKALL=$llvm_cv_link_all_option
2317
2318 NOLINKALL=$llvm_cv_no_link_all_option
2319
2320
2321 case $llvm_cv_platform_type in
2322   Unix)
2323
2324 cat >>confdefs.h <<\_ACEOF
2325 #define LLVM_ON_UNIX 1
2326 _ACEOF
2327
2328     LLVM_ON_UNIX=1
2329
2330     LLVM_ON_WIN32=0
2331
2332     ;;
2333   Win32)
2334
2335 cat >>confdefs.h <<\_ACEOF
2336 #define LLVM_ON_WIN32 1
2337 _ACEOF
2338
2339     LLVM_ON_UNIX=0
2340
2341     LLVM_ON_WIN32=1
2342
2343     ;;
2344 esac
2345
2346 { echo "$as_me:$LINENO: checking target architecture" >&5
2347 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2348 if test "${llvm_cv_target_arch+set}" = set; then
2349   echo $ECHO_N "(cached) $ECHO_C" >&6
2350 else
2351   case $target in
2352   i?86-*)                 llvm_cv_target_arch="x86" ;;
2353   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2354   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2355   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2356   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2357   arm*-*)                 llvm_cv_target_arch="ARM" ;;
2358   mips-*)                 llvm_cv_target_arch="Mips" ;;
2359   xcore-*)                llvm_cv_target_arch="XCore" ;;
2360   msp430-*)               llvm_cv_target_arch="MSP430" ;;
2361   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
2362   bfin-*)                 llvm_cv_target_arch="Blackfin" ;;
2363   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
2364   ptx-*)                  llvm_cv_target_arch="PTX" ;;
2365   *)                      llvm_cv_target_arch="Unknown" ;;
2366 esac
2367 fi
2368 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2369 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2370
2371 if test "$llvm_cv_target_arch" = "Unknown" ; then
2372   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2373 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2374 fi
2375
2376 # Determine the LLVM native architecture for the target
2377 case "$llvm_cv_target_arch" in
2378     x86)     LLVM_NATIVE_ARCH="X86" ;;
2379     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
2380     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2381 esac
2382
2383 ARCH=$llvm_cv_target_arch
2384
2385
2386 ac_ext=c
2387 ac_cpp='$CPP $CPPFLAGS'
2388 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2389 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2390 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2391 if test -n "$ac_tool_prefix"; then
2392   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2393 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2394 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2395 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2396 if test "${ac_cv_prog_CC+set}" = set; then
2397   echo $ECHO_N "(cached) $ECHO_C" >&6
2398 else
2399   if test -n "$CC"; then
2400   ac_cv_prog_CC="$CC" # Let the user override the test.
2401 else
2402 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2403 for as_dir in $PATH
2404 do
2405   IFS=$as_save_IFS
2406   test -z "$as_dir" && as_dir=.
2407   for ac_exec_ext in '' $ac_executable_extensions; do
2408   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2409     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2410     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2411     break 2
2412   fi
2413 done
2414 done
2415 IFS=$as_save_IFS
2416
2417 fi
2418 fi
2419 CC=$ac_cv_prog_CC
2420 if test -n "$CC"; then
2421   { echo "$as_me:$LINENO: result: $CC" >&5
2422 echo "${ECHO_T}$CC" >&6; }
2423 else
2424   { echo "$as_me:$LINENO: result: no" >&5
2425 echo "${ECHO_T}no" >&6; }
2426 fi
2427
2428
2429 fi
2430 if test -z "$ac_cv_prog_CC"; then
2431   ac_ct_CC=$CC
2432   # Extract the first word of "gcc", so it can be a program name with args.
2433 set dummy gcc; ac_word=$2
2434 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2435 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2436 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2437   echo $ECHO_N "(cached) $ECHO_C" >&6
2438 else
2439   if test -n "$ac_ct_CC"; then
2440   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2441 else
2442 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2443 for as_dir in $PATH
2444 do
2445   IFS=$as_save_IFS
2446   test -z "$as_dir" && as_dir=.
2447   for ac_exec_ext in '' $ac_executable_extensions; do
2448   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2449     ac_cv_prog_ac_ct_CC="gcc"
2450     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2451     break 2
2452   fi
2453 done
2454 done
2455 IFS=$as_save_IFS
2456
2457 fi
2458 fi
2459 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2460 if test -n "$ac_ct_CC"; then
2461   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2462 echo "${ECHO_T}$ac_ct_CC" >&6; }
2463 else
2464   { echo "$as_me:$LINENO: result: no" >&5
2465 echo "${ECHO_T}no" >&6; }
2466 fi
2467
2468   if test "x$ac_ct_CC" = x; then
2469     CC=""
2470   else
2471     case $cross_compiling:$ac_tool_warned in
2472 yes:)
2473 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2474 whose name does not start with the host triplet.  If you think this
2475 configuration is useful to you, please write to autoconf@gnu.org." >&5
2476 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2477 whose name does not start with the host triplet.  If you think this
2478 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2479 ac_tool_warned=yes ;;
2480 esac
2481     CC=$ac_ct_CC
2482   fi
2483 else
2484   CC="$ac_cv_prog_CC"
2485 fi
2486
2487 if test -z "$CC"; then
2488           if test -n "$ac_tool_prefix"; then
2489     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2490 set dummy ${ac_tool_prefix}cc; ac_word=$2
2491 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2492 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2493 if test "${ac_cv_prog_CC+set}" = set; then
2494   echo $ECHO_N "(cached) $ECHO_C" >&6
2495 else
2496   if test -n "$CC"; then
2497   ac_cv_prog_CC="$CC" # Let the user override the test.
2498 else
2499 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2500 for as_dir in $PATH
2501 do
2502   IFS=$as_save_IFS
2503   test -z "$as_dir" && as_dir=.
2504   for ac_exec_ext in '' $ac_executable_extensions; do
2505   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2506     ac_cv_prog_CC="${ac_tool_prefix}cc"
2507     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2508     break 2
2509   fi
2510 done
2511 done
2512 IFS=$as_save_IFS
2513
2514 fi
2515 fi
2516 CC=$ac_cv_prog_CC
2517 if test -n "$CC"; then
2518   { echo "$as_me:$LINENO: result: $CC" >&5
2519 echo "${ECHO_T}$CC" >&6; }
2520 else
2521   { echo "$as_me:$LINENO: result: no" >&5
2522 echo "${ECHO_T}no" >&6; }
2523 fi
2524
2525
2526   fi
2527 fi
2528 if test -z "$CC"; then
2529   # Extract the first word of "cc", so it can be a program name with args.
2530 set dummy cc; ac_word=$2
2531 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2532 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2533 if test "${ac_cv_prog_CC+set}" = set; then
2534   echo $ECHO_N "(cached) $ECHO_C" >&6
2535 else
2536   if test -n "$CC"; then
2537   ac_cv_prog_CC="$CC" # Let the user override the test.
2538 else
2539   ac_prog_rejected=no
2540 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2541 for as_dir in $PATH
2542 do
2543   IFS=$as_save_IFS
2544   test -z "$as_dir" && as_dir=.
2545   for ac_exec_ext in '' $ac_executable_extensions; do
2546   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2547     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2548        ac_prog_rejected=yes
2549        continue
2550      fi
2551     ac_cv_prog_CC="cc"
2552     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2553     break 2
2554   fi
2555 done
2556 done
2557 IFS=$as_save_IFS
2558
2559 if test $ac_prog_rejected = yes; then
2560   # We found a bogon in the path, so make sure we never use it.
2561   set dummy $ac_cv_prog_CC
2562   shift
2563   if test $# != 0; then
2564     # We chose a different compiler from the bogus one.
2565     # However, it has the same basename, so the bogon will be chosen
2566     # first if we set CC to just the basename; use the full file name.
2567     shift
2568     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2569   fi
2570 fi
2571 fi
2572 fi
2573 CC=$ac_cv_prog_CC
2574 if test -n "$CC"; then
2575   { echo "$as_me:$LINENO: result: $CC" >&5
2576 echo "${ECHO_T}$CC" >&6; }
2577 else
2578   { echo "$as_me:$LINENO: result: no" >&5
2579 echo "${ECHO_T}no" >&6; }
2580 fi
2581
2582
2583 fi
2584 if test -z "$CC"; then
2585   if test -n "$ac_tool_prefix"; then
2586   for ac_prog in cl.exe
2587   do
2588     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2589 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2590 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2591 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2592 if test "${ac_cv_prog_CC+set}" = set; then
2593   echo $ECHO_N "(cached) $ECHO_C" >&6
2594 else
2595   if test -n "$CC"; then
2596   ac_cv_prog_CC="$CC" # Let the user override the test.
2597 else
2598 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2599 for as_dir in $PATH
2600 do
2601   IFS=$as_save_IFS
2602   test -z "$as_dir" && as_dir=.
2603   for ac_exec_ext in '' $ac_executable_extensions; do
2604   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2605     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2606     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2607     break 2
2608   fi
2609 done
2610 done
2611 IFS=$as_save_IFS
2612
2613 fi
2614 fi
2615 CC=$ac_cv_prog_CC
2616 if test -n "$CC"; then
2617   { echo "$as_me:$LINENO: result: $CC" >&5
2618 echo "${ECHO_T}$CC" >&6; }
2619 else
2620   { echo "$as_me:$LINENO: result: no" >&5
2621 echo "${ECHO_T}no" >&6; }
2622 fi
2623
2624
2625     test -n "$CC" && break
2626   done
2627 fi
2628 if test -z "$CC"; then
2629   ac_ct_CC=$CC
2630   for ac_prog in cl.exe
2631 do
2632   # Extract the first word of "$ac_prog", so it can be a program name with args.
2633 set dummy $ac_prog; ac_word=$2
2634 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2635 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2636 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2637   echo $ECHO_N "(cached) $ECHO_C" >&6
2638 else
2639   if test -n "$ac_ct_CC"; then
2640   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2641 else
2642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2643 for as_dir in $PATH
2644 do
2645   IFS=$as_save_IFS
2646   test -z "$as_dir" && as_dir=.
2647   for ac_exec_ext in '' $ac_executable_extensions; do
2648   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2649     ac_cv_prog_ac_ct_CC="$ac_prog"
2650     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2651     break 2
2652   fi
2653 done
2654 done
2655 IFS=$as_save_IFS
2656
2657 fi
2658 fi
2659 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2660 if test -n "$ac_ct_CC"; then
2661   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2662 echo "${ECHO_T}$ac_ct_CC" >&6; }
2663 else
2664   { echo "$as_me:$LINENO: result: no" >&5
2665 echo "${ECHO_T}no" >&6; }
2666 fi
2667
2668
2669   test -n "$ac_ct_CC" && break
2670 done
2671
2672   if test "x$ac_ct_CC" = x; then
2673     CC=""
2674   else
2675     case $cross_compiling:$ac_tool_warned in
2676 yes:)
2677 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2678 whose name does not start with the host triplet.  If you think this
2679 configuration is useful to you, please write to autoconf@gnu.org." >&5
2680 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2681 whose name does not start with the host triplet.  If you think this
2682 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2683 ac_tool_warned=yes ;;
2684 esac
2685     CC=$ac_ct_CC
2686   fi
2687 fi
2688
2689 fi
2690
2691
2692 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2693 See \`config.log' for more details." >&5
2694 echo "$as_me: error: no acceptable C compiler found in \$PATH
2695 See \`config.log' for more details." >&2;}
2696    { (exit 1); exit 1; }; }
2697
2698 # Provide some information about the compiler.
2699 echo "$as_me:$LINENO: checking for C compiler version" >&5
2700 ac_compiler=`set X $ac_compile; echo $2`
2701 { (ac_try="$ac_compiler --version >&5"
2702 case "(($ac_try" in
2703   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2704   *) ac_try_echo=$ac_try;;
2705 esac
2706 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2707   (eval "$ac_compiler --version >&5") 2>&5
2708   ac_status=$?
2709   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2710   (exit $ac_status); }
2711 { (ac_try="$ac_compiler -v >&5"
2712 case "(($ac_try" in
2713   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2714   *) ac_try_echo=$ac_try;;
2715 esac
2716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2717   (eval "$ac_compiler -v >&5") 2>&5
2718   ac_status=$?
2719   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2720   (exit $ac_status); }
2721 { (ac_try="$ac_compiler -V >&5"
2722 case "(($ac_try" in
2723   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724   *) ac_try_echo=$ac_try;;
2725 esac
2726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727   (eval "$ac_compiler -V >&5") 2>&5
2728   ac_status=$?
2729   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2730   (exit $ac_status); }
2731
2732 cat >conftest.$ac_ext <<_ACEOF
2733 /* confdefs.h.  */
2734 _ACEOF
2735 cat confdefs.h >>conftest.$ac_ext
2736 cat >>conftest.$ac_ext <<_ACEOF
2737 /* end confdefs.h.  */
2738
2739 int
2740 main ()
2741 {
2742
2743   ;
2744   return 0;
2745 }
2746 _ACEOF
2747 ac_clean_files_save=$ac_clean_files
2748 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2749 # Try to create an executable without -o first, disregard a.out.
2750 # It will help us diagnose broken compilers, and finding out an intuition
2751 # of exeext.
2752 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2753 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2754 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2755 #
2756 # List of possible output files, starting from the most likely.
2757 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2758 # only as a last resort.  b.out is created by i960 compilers.
2759 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2760 #
2761 # The IRIX 6 linker writes into existing files which may not be
2762 # executable, retaining their permissions.  Remove them first so a
2763 # subsequent execution test works.
2764 ac_rmfiles=
2765 for ac_file in $ac_files
2766 do
2767   case $ac_file in
2768     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2769     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2770   esac
2771 done
2772 rm -f $ac_rmfiles
2773
2774 if { (ac_try="$ac_link_default"
2775 case "(($ac_try" in
2776   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2777   *) ac_try_echo=$ac_try;;
2778 esac
2779 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2780   (eval "$ac_link_default") 2>&5
2781   ac_status=$?
2782   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2783   (exit $ac_status); }; then
2784   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2785 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2786 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2787 # so that the user can short-circuit this test for compilers unknown to
2788 # Autoconf.
2789 for ac_file in $ac_files
2790 do
2791   test -f "$ac_file" || continue
2792   case $ac_file in
2793     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2794         ;;
2795     [ab].out )
2796         # We found the default executable, but exeext='' is most
2797         # certainly right.
2798         break;;
2799     *.* )
2800         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2801         then :; else
2802            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2803         fi
2804         # We set ac_cv_exeext here because the later test for it is not
2805         # safe: cross compilers may not add the suffix if given an `-o'
2806         # argument, so we may need to know it at that point already.
2807         # Even if this section looks crufty: it has the advantage of
2808         # actually working.
2809         break;;
2810     * )
2811         break;;
2812   esac
2813 done
2814 test "$ac_cv_exeext" = no && ac_cv_exeext=
2815
2816 else
2817   echo "$as_me: failed program was:" >&5
2818 sed 's/^/| /' conftest.$ac_ext >&5
2819
2820 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2821 See \`config.log' for more details." >&5
2822 echo "$as_me: error: C compiler cannot create executables
2823 See \`config.log' for more details." >&2;}
2824    { (exit 77); exit 77; }; }
2825 fi
2826
2827 ac_exeext=$ac_cv_exeext
2828 { echo "$as_me:$LINENO: result: $ac_file" >&5
2829 echo "${ECHO_T}$ac_file" >&6; }
2830
2831 # Check that the compiler produces executables we can run.  If not, either
2832 # the compiler is broken, or we cross compile.
2833 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2834 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2835 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2836 # If not cross compiling, check that we can run a simple program.
2837 if test "$cross_compiling" != yes; then
2838   if { ac_try='./$ac_file'
2839   { (case "(($ac_try" in
2840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2841   *) ac_try_echo=$ac_try;;
2842 esac
2843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2844   (eval "$ac_try") 2>&5
2845   ac_status=$?
2846   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2847   (exit $ac_status); }; }; then
2848     cross_compiling=no
2849   else
2850     if test "$cross_compiling" = maybe; then
2851         cross_compiling=yes
2852     else
2853         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2854 If you meant to cross compile, use \`--host'.
2855 See \`config.log' for more details." >&5
2856 echo "$as_me: error: cannot run C compiled programs.
2857 If you meant to cross compile, use \`--host'.
2858 See \`config.log' for more details." >&2;}
2859    { (exit 1); exit 1; }; }
2860     fi
2861   fi
2862 fi
2863 { echo "$as_me:$LINENO: result: yes" >&5
2864 echo "${ECHO_T}yes" >&6; }
2865
2866 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2867 ac_clean_files=$ac_clean_files_save
2868 # Check that the compiler produces executables we can run.  If not, either
2869 # the compiler is broken, or we cross compile.
2870 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2871 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2872 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2873 echo "${ECHO_T}$cross_compiling" >&6; }
2874
2875 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2876 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2877 if { (ac_try="$ac_link"
2878 case "(($ac_try" in
2879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2880   *) ac_try_echo=$ac_try;;
2881 esac
2882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2883   (eval "$ac_link") 2>&5
2884   ac_status=$?
2885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2886   (exit $ac_status); }; then
2887   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2888 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2889 # work properly (i.e., refer to `conftest.exe'), while it won't with
2890 # `rm'.
2891 for ac_file in conftest.exe conftest conftest.*; do
2892   test -f "$ac_file" || continue
2893   case $ac_file in
2894     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2895     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2896           break;;
2897     * ) break;;
2898   esac
2899 done
2900 else
2901   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2902 See \`config.log' for more details." >&5
2903 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2904 See \`config.log' for more details." >&2;}
2905    { (exit 1); exit 1; }; }
2906 fi
2907
2908 rm -f conftest$ac_cv_exeext
2909 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2910 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2911
2912 rm -f conftest.$ac_ext
2913 EXEEXT=$ac_cv_exeext
2914 ac_exeext=$EXEEXT
2915 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2916 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2917 if test "${ac_cv_objext+set}" = set; then
2918   echo $ECHO_N "(cached) $ECHO_C" >&6
2919 else
2920   cat >conftest.$ac_ext <<_ACEOF
2921 /* confdefs.h.  */
2922 _ACEOF
2923 cat confdefs.h >>conftest.$ac_ext
2924 cat >>conftest.$ac_ext <<_ACEOF
2925 /* end confdefs.h.  */
2926
2927 int
2928 main ()
2929 {
2930
2931   ;
2932   return 0;
2933 }
2934 _ACEOF
2935 rm -f conftest.o conftest.obj
2936 if { (ac_try="$ac_compile"
2937 case "(($ac_try" in
2938   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2939   *) ac_try_echo=$ac_try;;
2940 esac
2941 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2942   (eval "$ac_compile") 2>&5
2943   ac_status=$?
2944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2945   (exit $ac_status); }; then
2946   for ac_file in conftest.o conftest.obj conftest.*; do
2947   test -f "$ac_file" || continue;
2948   case $ac_file in
2949     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2950     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2951        break;;
2952   esac
2953 done
2954 else
2955   echo "$as_me: failed program was:" >&5
2956 sed 's/^/| /' conftest.$ac_ext >&5
2957
2958 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2959 See \`config.log' for more details." >&5
2960 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2961 See \`config.log' for more details." >&2;}
2962    { (exit 1); exit 1; }; }
2963 fi
2964
2965 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2966 fi
2967 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2968 echo "${ECHO_T}$ac_cv_objext" >&6; }
2969 OBJEXT=$ac_cv_objext
2970 ac_objext=$OBJEXT
2971 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2972 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2973 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2974   echo $ECHO_N "(cached) $ECHO_C" >&6
2975 else
2976   cat >conftest.$ac_ext <<_ACEOF
2977 /* confdefs.h.  */
2978 _ACEOF
2979 cat confdefs.h >>conftest.$ac_ext
2980 cat >>conftest.$ac_ext <<_ACEOF
2981 /* end confdefs.h.  */
2982
2983 int
2984 main ()
2985 {
2986 #ifndef __GNUC__
2987        choke me
2988 #endif
2989
2990   ;
2991   return 0;
2992 }
2993 _ACEOF
2994 rm -f conftest.$ac_objext
2995 if { (ac_try="$ac_compile"
2996 case "(($ac_try" in
2997   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2998   *) ac_try_echo=$ac_try;;
2999 esac
3000 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3001   (eval "$ac_compile") 2>conftest.er1
3002   ac_status=$?
3003   grep -v '^ *+' conftest.er1 >conftest.err
3004   rm -f conftest.er1
3005   cat conftest.err >&5
3006   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3007   (exit $ac_status); } &&
3008          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3009   { (case "(($ac_try" in
3010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3011   *) ac_try_echo=$ac_try;;
3012 esac
3013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3014   (eval "$ac_try") 2>&5
3015   ac_status=$?
3016   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3017   (exit $ac_status); }; } &&
3018          { ac_try='test -s conftest.$ac_objext'
3019   { (case "(($ac_try" in
3020   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3021   *) ac_try_echo=$ac_try;;
3022 esac
3023 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3024   (eval "$ac_try") 2>&5
3025   ac_status=$?
3026   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3027   (exit $ac_status); }; }; then
3028   ac_compiler_gnu=yes
3029 else
3030   echo "$as_me: failed program was:" >&5
3031 sed 's/^/| /' conftest.$ac_ext >&5
3032
3033         ac_compiler_gnu=no
3034 fi
3035
3036 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3037 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3038
3039 fi
3040 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3041 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3042 GCC=`test $ac_compiler_gnu = yes && echo yes`
3043 ac_test_CFLAGS=${CFLAGS+set}
3044 ac_save_CFLAGS=$CFLAGS
3045 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3046 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3047 if test "${ac_cv_prog_cc_g+set}" = set; then
3048   echo $ECHO_N "(cached) $ECHO_C" >&6
3049 else
3050   ac_save_c_werror_flag=$ac_c_werror_flag
3051    ac_c_werror_flag=yes
3052    ac_cv_prog_cc_g=no
3053    CFLAGS="-g"
3054    cat >conftest.$ac_ext <<_ACEOF
3055 /* confdefs.h.  */
3056 _ACEOF
3057 cat confdefs.h >>conftest.$ac_ext
3058 cat >>conftest.$ac_ext <<_ACEOF
3059 /* end confdefs.h.  */
3060
3061 int
3062 main ()
3063 {
3064
3065   ;
3066   return 0;
3067 }
3068 _ACEOF
3069 rm -f conftest.$ac_objext
3070 if { (ac_try="$ac_compile"
3071 case "(($ac_try" in
3072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3073   *) ac_try_echo=$ac_try;;
3074 esac
3075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3076   (eval "$ac_compile") 2>conftest.er1
3077   ac_status=$?
3078   grep -v '^ *+' conftest.er1 >conftest.err
3079   rm -f conftest.er1
3080   cat conftest.err >&5
3081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3082   (exit $ac_status); } &&
3083          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3084   { (case "(($ac_try" in
3085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3086   *) ac_try_echo=$ac_try;;
3087 esac
3088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3089   (eval "$ac_try") 2>&5
3090   ac_status=$?
3091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3092   (exit $ac_status); }; } &&
3093          { ac_try='test -s conftest.$ac_objext'
3094   { (case "(($ac_try" in
3095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3096   *) ac_try_echo=$ac_try;;
3097 esac
3098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3099   (eval "$ac_try") 2>&5
3100   ac_status=$?
3101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3102   (exit $ac_status); }; }; then
3103   ac_cv_prog_cc_g=yes
3104 else
3105   echo "$as_me: failed program was:" >&5
3106 sed 's/^/| /' conftest.$ac_ext >&5
3107
3108         CFLAGS=""
3109       cat >conftest.$ac_ext <<_ACEOF
3110 /* confdefs.h.  */
3111 _ACEOF
3112 cat confdefs.h >>conftest.$ac_ext
3113 cat >>conftest.$ac_ext <<_ACEOF
3114 /* end confdefs.h.  */
3115
3116 int
3117 main ()
3118 {
3119
3120   ;
3121   return 0;
3122 }
3123 _ACEOF
3124 rm -f conftest.$ac_objext
3125 if { (ac_try="$ac_compile"
3126 case "(($ac_try" in
3127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3128   *) ac_try_echo=$ac_try;;
3129 esac
3130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3131   (eval "$ac_compile") 2>conftest.er1
3132   ac_status=$?
3133   grep -v '^ *+' conftest.er1 >conftest.err
3134   rm -f conftest.er1
3135   cat conftest.err >&5
3136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3137   (exit $ac_status); } &&
3138          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3139   { (case "(($ac_try" in
3140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3141   *) ac_try_echo=$ac_try;;
3142 esac
3143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3144   (eval "$ac_try") 2>&5
3145   ac_status=$?
3146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3147   (exit $ac_status); }; } &&
3148          { ac_try='test -s conftest.$ac_objext'
3149   { (case "(($ac_try" in
3150   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3151   *) ac_try_echo=$ac_try;;
3152 esac
3153 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3154   (eval "$ac_try") 2>&5
3155   ac_status=$?
3156   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3157   (exit $ac_status); }; }; then
3158   :
3159 else
3160   echo "$as_me: failed program was:" >&5
3161 sed 's/^/| /' conftest.$ac_ext >&5
3162
3163         ac_c_werror_flag=$ac_save_c_werror_flag
3164          CFLAGS="-g"
3165          cat >conftest.$ac_ext <<_ACEOF
3166 /* confdefs.h.  */
3167 _ACEOF
3168 cat confdefs.h >>conftest.$ac_ext
3169 cat >>conftest.$ac_ext <<_ACEOF
3170 /* end confdefs.h.  */
3171
3172 int
3173 main ()
3174 {
3175
3176   ;
3177   return 0;
3178 }
3179 _ACEOF
3180 rm -f conftest.$ac_objext
3181 if { (ac_try="$ac_compile"
3182 case "(($ac_try" in
3183   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3184   *) ac_try_echo=$ac_try;;
3185 esac
3186 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3187   (eval "$ac_compile") 2>conftest.er1
3188   ac_status=$?
3189   grep -v '^ *+' conftest.er1 >conftest.err
3190   rm -f conftest.er1
3191   cat conftest.err >&5
3192   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3193   (exit $ac_status); } &&
3194          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3195   { (case "(($ac_try" in
3196   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3197   *) ac_try_echo=$ac_try;;
3198 esac
3199 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3200   (eval "$ac_try") 2>&5
3201   ac_status=$?
3202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3203   (exit $ac_status); }; } &&
3204          { ac_try='test -s conftest.$ac_objext'
3205   { (case "(($ac_try" in
3206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3207   *) ac_try_echo=$ac_try;;
3208 esac
3209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3210   (eval "$ac_try") 2>&5
3211   ac_status=$?
3212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3213   (exit $ac_status); }; }; then
3214   ac_cv_prog_cc_g=yes
3215 else
3216   echo "$as_me: failed program was:" >&5
3217 sed 's/^/| /' conftest.$ac_ext >&5
3218
3219
3220 fi
3221
3222 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3223 fi
3224
3225 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3226 fi
3227
3228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3229    ac_c_werror_flag=$ac_save_c_werror_flag
3230 fi
3231 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3232 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3233 if test "$ac_test_CFLAGS" = set; then
3234   CFLAGS=$ac_save_CFLAGS
3235 elif test $ac_cv_prog_cc_g = yes; then
3236   if test "$GCC" = yes; then
3237     CFLAGS="-g -O2"
3238   else
3239     CFLAGS="-g"
3240   fi
3241 else
3242   if test "$GCC" = yes; then
3243     CFLAGS="-O2"
3244   else
3245     CFLAGS=
3246   fi
3247 fi
3248 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3249 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3250 if test "${ac_cv_prog_cc_c89+set}" = set; then
3251   echo $ECHO_N "(cached) $ECHO_C" >&6
3252 else
3253   ac_cv_prog_cc_c89=no
3254 ac_save_CC=$CC
3255 cat >conftest.$ac_ext <<_ACEOF
3256 /* confdefs.h.  */
3257 _ACEOF
3258 cat confdefs.h >>conftest.$ac_ext
3259 cat >>conftest.$ac_ext <<_ACEOF
3260 /* end confdefs.h.  */
3261 #include <stdarg.h>
3262 #include <stdio.h>
3263 #include <sys/types.h>
3264 #include <sys/stat.h>
3265 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3266 struct buf { int x; };
3267 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3268 static char *e (p, i)
3269      char **p;
3270      int i;
3271 {
3272   return p[i];
3273 }
3274 static char *f (char * (*g) (char **, int), char **p, ...)
3275 {
3276   char *s;
3277   va_list v;
3278   va_start (v,p);
3279   s = g (p, va_arg (v,int));
3280   va_end (v);
3281   return s;
3282 }
3283
3284 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3285    function prototypes and stuff, but not '\xHH' hex character constants.
3286    These don't provoke an error unfortunately, instead are silently treated
3287    as 'x'.  The following induces an error, until -std is added to get
3288    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3289    array size at least.  It's necessary to write '\x00'==0 to get something
3290    that's true only with -std.  */
3291 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3292
3293 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3294    inside strings and character constants.  */
3295 #define FOO(x) 'x'
3296 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3297
3298 int test (int i, double x);
3299 struct s1 {int (*f) (int a);};
3300 struct s2 {int (*f) (double a);};
3301 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3302 int argc;
3303 char **argv;
3304 int
3305 main ()
3306 {
3307 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3308   ;
3309   return 0;
3310 }
3311 _ACEOF
3312 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3313         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3314 do
3315   CC="$ac_save_CC $ac_arg"
3316   rm -f conftest.$ac_objext
3317 if { (ac_try="$ac_compile"
3318 case "(($ac_try" in
3319   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3320   *) ac_try_echo=$ac_try;;
3321 esac
3322 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3323   (eval "$ac_compile") 2>conftest.er1
3324   ac_status=$?
3325   grep -v '^ *+' conftest.er1 >conftest.err
3326   rm -f conftest.er1
3327   cat conftest.err >&5
3328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3329   (exit $ac_status); } &&
3330          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3331   { (case "(($ac_try" in
3332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3333   *) ac_try_echo=$ac_try;;
3334 esac
3335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3336   (eval "$ac_try") 2>&5
3337   ac_status=$?
3338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3339   (exit $ac_status); }; } &&
3340          { ac_try='test -s conftest.$ac_objext'
3341   { (case "(($ac_try" in
3342   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3343   *) ac_try_echo=$ac_try;;
3344 esac
3345 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3346   (eval "$ac_try") 2>&5
3347   ac_status=$?
3348   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3349   (exit $ac_status); }; }; then
3350   ac_cv_prog_cc_c89=$ac_arg
3351 else
3352   echo "$as_me: failed program was:" >&5
3353 sed 's/^/| /' conftest.$ac_ext >&5
3354
3355
3356 fi
3357
3358 rm -f core conftest.err conftest.$ac_objext
3359   test "x$ac_cv_prog_cc_c89" != "xno" && break
3360 done
3361 rm -f conftest.$ac_ext
3362 CC=$ac_save_CC
3363
3364 fi
3365 # AC_CACHE_VAL
3366 case "x$ac_cv_prog_cc_c89" in
3367   x)
3368     { echo "$as_me:$LINENO: result: none needed" >&5
3369 echo "${ECHO_T}none needed" >&6; } ;;
3370   xno)
3371     { echo "$as_me:$LINENO: result: unsupported" >&5
3372 echo "${ECHO_T}unsupported" >&6; } ;;
3373   *)
3374     CC="$CC $ac_cv_prog_cc_c89"
3375     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3376 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3377 esac
3378
3379
3380 ac_ext=c
3381 ac_cpp='$CPP $CPPFLAGS'
3382 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3383 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3384 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3385
3386
3387 ac_ext=c
3388 ac_cpp='$CPP $CPPFLAGS'
3389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3392 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3393 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3394 # On Suns, sometimes $CPP names a directory.
3395 if test -n "$CPP" && test -d "$CPP"; then
3396   CPP=
3397 fi
3398 if test -z "$CPP"; then
3399   if test "${ac_cv_prog_CPP+set}" = set; then
3400   echo $ECHO_N "(cached) $ECHO_C" >&6
3401 else
3402       # Double quotes because CPP needs to be expanded
3403     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3404     do
3405       ac_preproc_ok=false
3406 for ac_c_preproc_warn_flag in '' yes
3407 do
3408   # Use a header file that comes with gcc, so configuring glibc
3409   # with a fresh cross-compiler works.
3410   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3411   # <limits.h> exists even on freestanding compilers.
3412   # On the NeXT, cc -E runs the code through the compiler's parser,
3413   # not just through cpp. "Syntax error" is here to catch this case.
3414   cat >conftest.$ac_ext <<_ACEOF
3415 /* confdefs.h.  */
3416 _ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h.  */
3420 #ifdef __STDC__
3421 # include <limits.h>
3422 #else
3423 # include <assert.h>
3424 #endif
3425                      Syntax error
3426 _ACEOF
3427 if { (ac_try="$ac_cpp conftest.$ac_ext"
3428 case "(($ac_try" in
3429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3430   *) ac_try_echo=$ac_try;;
3431 esac
3432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3433   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3434   ac_status=$?
3435   grep -v '^ *+' conftest.er1 >conftest.err
3436   rm -f conftest.er1
3437   cat conftest.err >&5
3438   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3439   (exit $ac_status); } >/dev/null; then
3440   if test -s conftest.err; then
3441     ac_cpp_err=$ac_c_preproc_warn_flag
3442     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3443   else
3444     ac_cpp_err=
3445   fi
3446 else
3447   ac_cpp_err=yes
3448 fi
3449 if test -z "$ac_cpp_err"; then
3450   :
3451 else
3452   echo "$as_me: failed program was:" >&5
3453 sed 's/^/| /' conftest.$ac_ext >&5
3454
3455   # Broken: fails on valid input.
3456 continue
3457 fi
3458
3459 rm -f conftest.err conftest.$ac_ext
3460
3461   # OK, works on sane cases.  Now check whether nonexistent headers
3462   # can be detected and how.
3463   cat >conftest.$ac_ext <<_ACEOF
3464 /* confdefs.h.  */
3465 _ACEOF
3466 cat confdefs.h >>conftest.$ac_ext
3467 cat >>conftest.$ac_ext <<_ACEOF
3468 /* end confdefs.h.  */
3469 #include <ac_nonexistent.h>
3470 _ACEOF
3471 if { (ac_try="$ac_cpp conftest.$ac_ext"
3472 case "(($ac_try" in
3473   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474   *) ac_try_echo=$ac_try;;
3475 esac
3476 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3477   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3478   ac_status=$?
3479   grep -v '^ *+' conftest.er1 >conftest.err
3480   rm -f conftest.er1
3481   cat conftest.err >&5
3482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3483   (exit $ac_status); } >/dev/null; then
3484   if test -s conftest.err; then
3485     ac_cpp_err=$ac_c_preproc_warn_flag
3486     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3487   else
3488     ac_cpp_err=
3489   fi
3490 else
3491   ac_cpp_err=yes
3492 fi
3493 if test -z "$ac_cpp_err"; then
3494   # Broken: success on invalid input.
3495 continue
3496 else
3497   echo "$as_me: failed program was:" >&5
3498 sed 's/^/| /' conftest.$ac_ext >&5
3499
3500   # Passes both tests.
3501 ac_preproc_ok=:
3502 break
3503 fi
3504
3505 rm -f conftest.err conftest.$ac_ext
3506
3507 done
3508 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3509 rm -f conftest.err conftest.$ac_ext
3510 if $ac_preproc_ok; then
3511   break
3512 fi
3513
3514     done
3515     ac_cv_prog_CPP=$CPP
3516
3517 fi
3518   CPP=$ac_cv_prog_CPP
3519 else
3520   ac_cv_prog_CPP=$CPP
3521 fi
3522 { echo "$as_me:$LINENO: result: $CPP" >&5
3523 echo "${ECHO_T}$CPP" >&6; }
3524 ac_preproc_ok=false
3525 for ac_c_preproc_warn_flag in '' yes
3526 do
3527   # Use a header file that comes with gcc, so configuring glibc
3528   # with a fresh cross-compiler works.
3529   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3530   # <limits.h> exists even on freestanding compilers.
3531   # On the NeXT, cc -E runs the code through the compiler's parser,
3532   # not just through cpp. "Syntax error" is here to catch this case.
3533   cat >conftest.$ac_ext <<_ACEOF
3534 /* confdefs.h.  */
3535 _ACEOF
3536 cat confdefs.h >>conftest.$ac_ext
3537 cat >>conftest.$ac_ext <<_ACEOF
3538 /* end confdefs.h.  */
3539 #ifdef __STDC__
3540 # include <limits.h>
3541 #else
3542 # include <assert.h>
3543 #endif
3544                      Syntax error
3545 _ACEOF
3546 if { (ac_try="$ac_cpp conftest.$ac_ext"
3547 case "(($ac_try" in
3548   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3549   *) ac_try_echo=$ac_try;;
3550 esac
3551 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3552   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3553   ac_status=$?
3554   grep -v '^ *+' conftest.er1 >conftest.err
3555   rm -f conftest.er1
3556   cat conftest.err >&5
3557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3558   (exit $ac_status); } >/dev/null; then
3559   if test -s conftest.err; then
3560     ac_cpp_err=$ac_c_preproc_warn_flag
3561     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3562   else
3563     ac_cpp_err=
3564   fi
3565 else
3566   ac_cpp_err=yes
3567 fi
3568 if test -z "$ac_cpp_err"; then
3569   :
3570 else
3571   echo "$as_me: failed program was:" >&5
3572 sed 's/^/| /' conftest.$ac_ext >&5
3573
3574   # Broken: fails on valid input.
3575 continue
3576 fi
3577
3578 rm -f conftest.err conftest.$ac_ext
3579
3580   # OK, works on sane cases.  Now check whether nonexistent headers
3581   # can be detected and how.
3582   cat >conftest.$ac_ext <<_ACEOF
3583 /* confdefs.h.  */
3584 _ACEOF
3585 cat confdefs.h >>conftest.$ac_ext
3586 cat >>conftest.$ac_ext <<_ACEOF
3587 /* end confdefs.h.  */
3588 #include <ac_nonexistent.h>
3589 _ACEOF
3590 if { (ac_try="$ac_cpp conftest.$ac_ext"
3591 case "(($ac_try" in
3592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3593   *) ac_try_echo=$ac_try;;
3594 esac
3595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3596   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3597   ac_status=$?
3598   grep -v '^ *+' conftest.er1 >conftest.err
3599   rm -f conftest.er1
3600   cat conftest.err >&5
3601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3602   (exit $ac_status); } >/dev/null; then
3603   if test -s conftest.err; then
3604     ac_cpp_err=$ac_c_preproc_warn_flag
3605     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3606   else
3607     ac_cpp_err=
3608   fi
3609 else
3610   ac_cpp_err=yes
3611 fi
3612 if test -z "$ac_cpp_err"; then
3613   # Broken: success on invalid input.
3614 continue
3615 else
3616   echo "$as_me: failed program was:" >&5
3617 sed 's/^/| /' conftest.$ac_ext >&5
3618
3619   # Passes both tests.
3620 ac_preproc_ok=:
3621 break
3622 fi
3623
3624 rm -f conftest.err conftest.$ac_ext
3625
3626 done
3627 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3628 rm -f conftest.err conftest.$ac_ext
3629 if $ac_preproc_ok; then
3630   :
3631 else
3632   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3633 See \`config.log' for more details." >&5
3634 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3635 See \`config.log' for more details." >&2;}
3636    { (exit 1); exit 1; }; }
3637 fi
3638
3639 ac_ext=c
3640 ac_cpp='$CPP $CPPFLAGS'
3641 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3642 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3643 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3644
3645
3646 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3647 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3648 if test "${ac_cv_path_GREP+set}" = set; then
3649   echo $ECHO_N "(cached) $ECHO_C" >&6
3650 else
3651   # Extract the first word of "grep ggrep" to use in msg output
3652 if test -z "$GREP"; then
3653 set dummy grep ggrep; ac_prog_name=$2
3654 if test "${ac_cv_path_GREP+set}" = set; then
3655   echo $ECHO_N "(cached) $ECHO_C" >&6
3656 else
3657   ac_path_GREP_found=false
3658 # Loop through the user's path and test for each of PROGNAME-LIST
3659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3660 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3661 do
3662   IFS=$as_save_IFS
3663   test -z "$as_dir" && as_dir=.
3664   for ac_prog in grep ggrep; do
3665   for ac_exec_ext in '' $ac_executable_extensions; do
3666     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3667     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3668     # Check for GNU ac_path_GREP and select it if it is found.
3669   # Check for GNU $ac_path_GREP
3670 case `"$ac_path_GREP" --version 2>&1` in
3671 *GNU*)
3672   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3673 *)
3674   ac_count=0
3675   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3676   while :
3677   do
3678     cat "conftest.in" "conftest.in" >"conftest.tmp"
3679     mv "conftest.tmp" "conftest.in"
3680     cp "conftest.in" "conftest.nl"
3681     echo 'GREP' >> "conftest.nl"
3682     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3683     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3684     ac_count=`expr $ac_count + 1`
3685     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3686       # Best one so far, save it but keep looking for a better one
3687       ac_cv_path_GREP="$ac_path_GREP"
3688       ac_path_GREP_max=$ac_count
3689     fi
3690     # 10*(2^10) chars as input seems more than enough
3691     test $ac_count -gt 10 && break
3692   done
3693   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3694 esac
3695
3696
3697     $ac_path_GREP_found && break 3
3698   done
3699 done
3700
3701 done
3702 IFS=$as_save_IFS
3703
3704
3705 fi
3706
3707 GREP="$ac_cv_path_GREP"
3708 if test -z "$GREP"; then
3709   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3710 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3711    { (exit 1); exit 1; }; }
3712 fi
3713
3714 else
3715   ac_cv_path_GREP=$GREP
3716 fi
3717
3718
3719 fi
3720 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3721 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3722  GREP="$ac_cv_path_GREP"
3723
3724
3725 { echo "$as_me:$LINENO: checking for egrep" >&5
3726 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3727 if test "${ac_cv_path_EGREP+set}" = set; then
3728   echo $ECHO_N "(cached) $ECHO_C" >&6
3729 else
3730   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3731    then ac_cv_path_EGREP="$GREP -E"
3732    else
3733      # Extract the first word of "egrep" to use in msg output
3734 if test -z "$EGREP"; then
3735 set dummy egrep; ac_prog_name=$2
3736 if test "${ac_cv_path_EGREP+set}" = set; then
3737   echo $ECHO_N "(cached) $ECHO_C" >&6
3738 else
3739   ac_path_EGREP_found=false
3740 # Loop through the user's path and test for each of PROGNAME-LIST
3741 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3742 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3743 do
3744   IFS=$as_save_IFS
3745   test -z "$as_dir" && as_dir=.
3746   for ac_prog in egrep; do
3747   for ac_exec_ext in '' $ac_executable_extensions; do
3748     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3749     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3750     # Check for GNU ac_path_EGREP and select it if it is found.
3751   # Check for GNU $ac_path_EGREP
3752 case `"$ac_path_EGREP" --version 2>&1` in
3753 *GNU*)
3754   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3755 *)
3756   ac_count=0
3757   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3758   while :
3759   do
3760     cat "conftest.in" "conftest.in" >"conftest.tmp"
3761     mv "conftest.tmp" "conftest.in"
3762     cp "conftest.in" "conftest.nl"
3763     echo 'EGREP' >> "conftest.nl"
3764     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3765     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3766     ac_count=`expr $ac_count + 1`
3767     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3768       # Best one so far, save it but keep looking for a better one
3769       ac_cv_path_EGREP="$ac_path_EGREP"
3770       ac_path_EGREP_max=$ac_count
3771     fi
3772     # 10*(2^10) chars as input seems more than enough
3773     test $ac_count -gt 10 && break
3774   done
3775   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3776 esac
3777
3778
3779     $ac_path_EGREP_found && break 3
3780   done
3781 done
3782
3783 done
3784 IFS=$as_save_IFS
3785
3786
3787 fi
3788
3789 EGREP="$ac_cv_path_EGREP"
3790 if test -z "$EGREP"; then
3791   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3792 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3793    { (exit 1); exit 1; }; }
3794 fi
3795
3796 else
3797   ac_cv_path_EGREP=$EGREP
3798 fi
3799
3800
3801    fi
3802 fi
3803 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3804 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3805  EGREP="$ac_cv_path_EGREP"
3806
3807
3808 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3809 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3810 if test "${ac_cv_header_stdc+set}" = set; then
3811   echo $ECHO_N "(cached) $ECHO_C" >&6
3812 else
3813   cat >conftest.$ac_ext <<_ACEOF
3814 /* confdefs.h.  */
3815 _ACEOF
3816 cat confdefs.h >>conftest.$ac_ext
3817 cat >>conftest.$ac_ext <<_ACEOF
3818 /* end confdefs.h.  */
3819 #include <stdlib.h>
3820 #include <stdarg.h>
3821 #include <string.h>
3822 #include <float.h>
3823
3824 int
3825 main ()
3826 {
3827
3828   ;
3829   return 0;
3830 }
3831 _ACEOF
3832 rm -f conftest.$ac_objext
3833 if { (ac_try="$ac_compile"
3834 case "(($ac_try" in
3835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3836   *) ac_try_echo=$ac_try;;
3837 esac
3838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3839   (eval "$ac_compile") 2>conftest.er1
3840   ac_status=$?
3841   grep -v '^ *+' conftest.er1 >conftest.err
3842   rm -f conftest.er1
3843   cat conftest.err >&5
3844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3845   (exit $ac_status); } &&
3846          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3847   { (case "(($ac_try" in
3848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849   *) ac_try_echo=$ac_try;;
3850 esac
3851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3852   (eval "$ac_try") 2>&5
3853   ac_status=$?
3854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3855   (exit $ac_status); }; } &&
3856          { ac_try='test -s conftest.$ac_objext'
3857   { (case "(($ac_try" in
3858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3859   *) ac_try_echo=$ac_try;;
3860 esac
3861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3862   (eval "$ac_try") 2>&5
3863   ac_status=$?
3864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3865   (exit $ac_status); }; }; then
3866   ac_cv_header_stdc=yes
3867 else
3868   echo "$as_me: failed program was:" >&5
3869 sed 's/^/| /' conftest.$ac_ext >&5
3870
3871         ac_cv_header_stdc=no
3872 fi
3873
3874 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3875
3876 if test $ac_cv_header_stdc = yes; then
3877   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3878   cat >conftest.$ac_ext <<_ACEOF
3879 /* confdefs.h.  */
3880 _ACEOF
3881 cat confdefs.h >>conftest.$ac_ext
3882 cat >>conftest.$ac_ext <<_ACEOF
3883 /* end confdefs.h.  */
3884 #include <string.h>
3885
3886 _ACEOF
3887 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3888   $EGREP "memchr" >/dev/null 2>&1; then
3889   :
3890 else
3891   ac_cv_header_stdc=no
3892 fi
3893 rm -f conftest*
3894
3895 fi
3896
3897 if test $ac_cv_header_stdc = yes; then
3898   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3899   cat >conftest.$ac_ext <<_ACEOF
3900 /* confdefs.h.  */
3901 _ACEOF
3902 cat confdefs.h >>conftest.$ac_ext
3903 cat >>conftest.$ac_ext <<_ACEOF
3904 /* end confdefs.h.  */
3905 #include <stdlib.h>
3906
3907 _ACEOF
3908 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3909   $EGREP "free" >/dev/null 2>&1; then
3910   :
3911 else
3912   ac_cv_header_stdc=no
3913 fi
3914 rm -f conftest*
3915
3916 fi
3917
3918 if test $ac_cv_header_stdc = yes; then
3919   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3920   if test "$cross_compiling" = yes; then
3921   :
3922 else
3923   cat >conftest.$ac_ext <<_ACEOF
3924 /* confdefs.h.  */
3925 _ACEOF
3926 cat confdefs.h >>conftest.$ac_ext
3927 cat >>conftest.$ac_ext <<_ACEOF
3928 /* end confdefs.h.  */
3929 #include <ctype.h>
3930 #include <stdlib.h>
3931 #if ((' ' & 0x0FF) == 0x020)
3932 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3933 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3934 #else
3935 # define ISLOWER(c) \
3936                    (('a' <= (c) && (c) <= 'i') \
3937                      || ('j' <= (c) && (c) <= 'r') \
3938                      || ('s' <= (c) && (c) <= 'z'))
3939 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3940 #endif
3941
3942 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3943 int
3944 main ()
3945 {
3946   int i;
3947   for (i = 0; i < 256; i++)
3948     if (XOR (islower (i), ISLOWER (i))
3949         || toupper (i) != TOUPPER (i))
3950       return 2;
3951   return 0;
3952 }
3953 _ACEOF
3954 rm -f conftest$ac_exeext
3955 if { (ac_try="$ac_link"
3956 case "(($ac_try" in
3957   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3958   *) ac_try_echo=$ac_try;;
3959 esac
3960 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3961   (eval "$ac_link") 2>&5
3962   ac_status=$?
3963   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3964   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3965   { (case "(($ac_try" in
3966   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3967   *) ac_try_echo=$ac_try;;
3968 esac
3969 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3970   (eval "$ac_try") 2>&5
3971   ac_status=$?
3972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3973   (exit $ac_status); }; }; then
3974   :
3975 else
3976   echo "$as_me: program exited with status $ac_status" >&5
3977 echo "$as_me: failed program was:" >&5
3978 sed 's/^/| /' conftest.$ac_ext >&5
3979
3980 ( exit $ac_status )
3981 ac_cv_header_stdc=no
3982 fi
3983 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3984 fi
3985
3986
3987 fi
3988 fi
3989 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3990 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3991 if test $ac_cv_header_stdc = yes; then
3992
3993 cat >>confdefs.h <<\_ACEOF
3994 #define STDC_HEADERS 1
3995 _ACEOF
3996
3997 fi
3998
3999 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4000
4001
4002
4003
4004
4005
4006
4007
4008
4009 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4010                   inttypes.h stdint.h unistd.h
4011 do
4012 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4013 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4014 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4015 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4016   echo $ECHO_N "(cached) $ECHO_C" >&6
4017 else
4018   cat >conftest.$ac_ext <<_ACEOF
4019 /* confdefs.h.  */
4020 _ACEOF
4021 cat confdefs.h >>conftest.$ac_ext
4022 cat >>conftest.$ac_ext <<_ACEOF
4023 /* end confdefs.h.  */
4024 $ac_includes_default
4025
4026 #include <$ac_header>
4027 _ACEOF
4028 rm -f conftest.$ac_objext
4029 if { (ac_try="$ac_compile"
4030 case "(($ac_try" in
4031   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4032   *) ac_try_echo=$ac_try;;
4033 esac
4034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4035   (eval "$ac_compile") 2>conftest.er1
4036   ac_status=$?
4037   grep -v '^ *+' conftest.er1 >conftest.err
4038   rm -f conftest.er1
4039   cat conftest.err >&5
4040   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4041   (exit $ac_status); } &&
4042          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4043   { (case "(($ac_try" in
4044   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4045   *) ac_try_echo=$ac_try;;
4046 esac
4047 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4048   (eval "$ac_try") 2>&5
4049   ac_status=$?
4050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4051   (exit $ac_status); }; } &&
4052          { ac_try='test -s conftest.$ac_objext'
4053   { (case "(($ac_try" in
4054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4055   *) ac_try_echo=$ac_try;;
4056 esac
4057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4058   (eval "$ac_try") 2>&5
4059   ac_status=$?
4060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4061   (exit $ac_status); }; }; then
4062   eval "$as_ac_Header=yes"
4063 else
4064   echo "$as_me: failed program was:" >&5
4065 sed 's/^/| /' conftest.$ac_ext >&5
4066
4067         eval "$as_ac_Header=no"
4068 fi
4069
4070 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4071 fi
4072 ac_res=`eval echo '${'$as_ac_Header'}'`
4073                { echo "$as_me:$LINENO: result: $ac_res" >&5
4074 echo "${ECHO_T}$ac_res" >&6; }
4075 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4076   cat >>confdefs.h <<_ACEOF
4077 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4078 _ACEOF
4079
4080 fi
4081
4082 done
4083
4084
4085 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4086 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4087 if test "${ac_cv_c_bigendian+set}" = set; then
4088   echo $ECHO_N "(cached) $ECHO_C" >&6
4089 else
4090   # See if sys/param.h defines the BYTE_ORDER macro.
4091 cat >conftest.$ac_ext <<_ACEOF
4092 /* confdefs.h.  */
4093 _ACEOF
4094 cat confdefs.h >>conftest.$ac_ext
4095 cat >>conftest.$ac_ext <<_ACEOF
4096 /* end confdefs.h.  */
4097 #include <sys/types.h>
4098 #include <sys/param.h>
4099
4100 int
4101 main ()
4102 {
4103 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4104  bogus endian macros
4105 #endif
4106
4107   ;
4108   return 0;
4109 }
4110 _ACEOF
4111 rm -f conftest.$ac_objext
4112 if { (ac_try="$ac_compile"
4113 case "(($ac_try" in
4114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4115   *) ac_try_echo=$ac_try;;
4116 esac
4117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4118   (eval "$ac_compile") 2>conftest.er1
4119   ac_status=$?
4120   grep -v '^ *+' conftest.er1 >conftest.err
4121   rm -f conftest.er1
4122   cat conftest.err >&5
4123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4124   (exit $ac_status); } &&
4125          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4126   { (case "(($ac_try" in
4127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4128   *) ac_try_echo=$ac_try;;
4129 esac
4130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4131   (eval "$ac_try") 2>&5
4132   ac_status=$?
4133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4134   (exit $ac_status); }; } &&
4135          { ac_try='test -s conftest.$ac_objext'
4136   { (case "(($ac_try" in
4137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4138   *) ac_try_echo=$ac_try;;
4139 esac
4140 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4141   (eval "$ac_try") 2>&5
4142   ac_status=$?
4143   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4144   (exit $ac_status); }; }; then
4145   # It does; now see whether it defined to BIG_ENDIAN or not.
4146 cat >conftest.$ac_ext <<_ACEOF
4147 /* confdefs.h.  */
4148 _ACEOF
4149 cat confdefs.h >>conftest.$ac_ext
4150 cat >>conftest.$ac_ext <<_ACEOF
4151 /* end confdefs.h.  */
4152 #include <sys/types.h>
4153 #include <sys/param.h>
4154
4155 int
4156 main ()
4157 {
4158 #if BYTE_ORDER != BIG_ENDIAN
4159  not big endian
4160 #endif
4161
4162   ;
4163   return 0;
4164 }
4165 _ACEOF
4166 rm -f conftest.$ac_objext
4167 if { (ac_try="$ac_compile"
4168 case "(($ac_try" in
4169   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4170   *) ac_try_echo=$ac_try;;
4171 esac
4172 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4173   (eval "$ac_compile") 2>conftest.er1
4174   ac_status=$?
4175   grep -v '^ *+' conftest.er1 >conftest.err
4176   rm -f conftest.er1
4177   cat conftest.err >&5
4178   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4179   (exit $ac_status); } &&
4180          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4181   { (case "(($ac_try" in
4182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4183   *) ac_try_echo=$ac_try;;
4184 esac
4185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4186   (eval "$ac_try") 2>&5
4187   ac_status=$?
4188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4189   (exit $ac_status); }; } &&
4190          { ac_try='test -s conftest.$ac_objext'
4191   { (case "(($ac_try" in
4192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4193   *) ac_try_echo=$ac_try;;
4194 esac
4195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4196   (eval "$ac_try") 2>&5
4197   ac_status=$?
4198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4199   (exit $ac_status); }; }; then
4200   ac_cv_c_bigendian=yes
4201 else
4202   echo "$as_me: failed program was:" >&5
4203 sed 's/^/| /' conftest.$ac_ext >&5
4204
4205         ac_cv_c_bigendian=no
4206 fi
4207
4208 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4209 else
4210   echo "$as_me: failed program was:" >&5
4211 sed 's/^/| /' conftest.$ac_ext >&5
4212
4213         # It does not; compile a test program.
4214 if test "$cross_compiling" = yes; then
4215   # try to guess the endianness by grepping values into an object file
4216   ac_cv_c_bigendian=unknown
4217   cat >conftest.$ac_ext <<_ACEOF
4218 /* confdefs.h.  */
4219 _ACEOF
4220 cat confdefs.h >>conftest.$ac_ext
4221 cat >>conftest.$ac_ext <<_ACEOF
4222 /* end confdefs.h.  */
4223 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4224 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4225 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4226 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4227 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4228 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4229 int
4230 main ()
4231 {
4232  _ascii (); _ebcdic ();
4233   ;
4234   return 0;
4235 }
4236 _ACEOF
4237 rm -f conftest.$ac_objext
4238 if { (ac_try="$ac_compile"
4239 case "(($ac_try" in
4240   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4241   *) ac_try_echo=$ac_try;;
4242 esac
4243 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4244   (eval "$ac_compile") 2>conftest.er1
4245   ac_status=$?
4246   grep -v '^ *+' conftest.er1 >conftest.err
4247   rm -f conftest.er1
4248   cat conftest.err >&5
4249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4250   (exit $ac_status); } &&
4251          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4252   { (case "(($ac_try" in
4253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4254   *) ac_try_echo=$ac_try;;
4255 esac
4256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4257   (eval "$ac_try") 2>&5
4258   ac_status=$?
4259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4260   (exit $ac_status); }; } &&
4261          { ac_try='test -s conftest.$ac_objext'
4262   { (case "(($ac_try" in
4263   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4264   *) ac_try_echo=$ac_try;;
4265 esac
4266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4267   (eval "$ac_try") 2>&5
4268   ac_status=$?
4269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4270   (exit $ac_status); }; }; then
4271   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4272   ac_cv_c_bigendian=yes
4273 fi
4274 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4275   if test "$ac_cv_c_bigendian" = unknown; then
4276     ac_cv_c_bigendian=no
4277   else
4278     # finding both strings is unlikely to happen, but who knows?
4279     ac_cv_c_bigendian=unknown
4280   fi
4281 fi
4282 else
4283   echo "$as_me: failed program was:" >&5
4284 sed 's/^/| /' conftest.$ac_ext >&5
4285
4286
4287 fi
4288
4289 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4290 else
4291   cat >conftest.$ac_ext <<_ACEOF
4292 /* confdefs.h.  */
4293 _ACEOF
4294 cat confdefs.h >>conftest.$ac_ext
4295 cat >>conftest.$ac_ext <<_ACEOF
4296 /* end confdefs.h.  */
4297 $ac_includes_default
4298 int
4299 main ()
4300 {
4301
4302   /* Are we little or big endian?  From Harbison&Steele.  */
4303   union
4304   {
4305     long int l;
4306     char c[sizeof (long int)];
4307   } u;
4308   u.l = 1;
4309   return u.c[sizeof (long int) - 1] == 1;
4310
4311   ;
4312   return 0;
4313 }
4314 _ACEOF
4315 rm -f conftest$ac_exeext
4316 if { (ac_try="$ac_link"
4317 case "(($ac_try" in
4318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4319   *) ac_try_echo=$ac_try;;
4320 esac
4321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4322   (eval "$ac_link") 2>&5
4323   ac_status=$?
4324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4325   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4326   { (case "(($ac_try" in
4327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4328   *) ac_try_echo=$ac_try;;
4329 esac
4330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4331   (eval "$ac_try") 2>&5
4332   ac_status=$?
4333   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4334   (exit $ac_status); }; }; then
4335   ac_cv_c_bigendian=no
4336 else
4337   echo "$as_me: program exited with status $ac_status" >&5
4338 echo "$as_me: failed program was:" >&5
4339 sed 's/^/| /' conftest.$ac_ext >&5
4340
4341 ( exit $ac_status )
4342 ac_cv_c_bigendian=yes
4343 fi
4344 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4345 fi
4346
4347
4348 fi
4349
4350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4351 fi
4352 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4353 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4354 case $ac_cv_c_bigendian in
4355   yes)
4356     ENDIAN=big
4357  ;;
4358   no)
4359     ENDIAN=little
4360  ;;
4361   *)
4362     { { echo "$as_me:$LINENO: error: unknown endianness
4363 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4364 echo "$as_me: error: unknown endianness
4365 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4366    { (exit 1); exit 1; }; } ;;
4367 esac
4368
4369
4370 if test "$cross_compiling" = yes; then
4371   LLVM_CROSS_COMPILING=1
4372
4373
4374 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4375 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4376 if test "${ac_cv_build_exeext+set}" = set; then
4377   echo $ECHO_N "(cached) $ECHO_C" >&6
4378 else
4379   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4380   ac_cv_build_exeext=.exe
4381 else
4382   ac_build_prefix=${build_alias}-
4383
4384   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4385 set dummy ${ac_build_prefix}gcc; ac_word=$2
4386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4388 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4389   echo $ECHO_N "(cached) $ECHO_C" >&6
4390 else
4391   if test -n "$BUILD_CC"; then
4392   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4393 else
4394 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4395 for as_dir in $PATH
4396 do
4397   IFS=$as_save_IFS
4398   test -z "$as_dir" && as_dir=.
4399   for ac_exec_ext in '' $ac_executable_extensions; do
4400   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4401     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4402     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4403     break 2
4404   fi
4405 done
4406 done
4407 IFS=$as_save_IFS
4408
4409 fi
4410 fi
4411 BUILD_CC=$ac_cv_prog_BUILD_CC
4412 if test -n "$BUILD_CC"; then
4413   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4414 echo "${ECHO_T}$BUILD_CC" >&6; }
4415 else
4416   { echo "$as_me:$LINENO: result: no" >&5
4417 echo "${ECHO_T}no" >&6; }
4418 fi
4419
4420
4421   if test -z "$BUILD_CC"; then
4422      # Extract the first word of "gcc", so it can be a program name with args.
4423 set dummy gcc; ac_word=$2
4424 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4425 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4426 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4427   echo $ECHO_N "(cached) $ECHO_C" >&6
4428 else
4429   if test -n "$BUILD_CC"; then
4430   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4431 else
4432 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4433 for as_dir in $PATH
4434 do
4435   IFS=$as_save_IFS
4436   test -z "$as_dir" && as_dir=.
4437   for ac_exec_ext in '' $ac_executable_extensions; do
4438   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4439     ac_cv_prog_BUILD_CC="gcc"
4440     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4441     break 2
4442   fi
4443 done
4444 done
4445 IFS=$as_save_IFS
4446
4447 fi
4448 fi
4449 BUILD_CC=$ac_cv_prog_BUILD_CC
4450 if test -n "$BUILD_CC"; then
4451   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4452 echo "${ECHO_T}$BUILD_CC" >&6; }
4453 else
4454   { echo "$as_me:$LINENO: result: no" >&5
4455 echo "${ECHO_T}no" >&6; }
4456 fi
4457
4458
4459      if test -z "$BUILD_CC"; then
4460        # Extract the first word of "cc", so it can be a program name with args.
4461 set dummy cc; ac_word=$2
4462 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4463 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4464 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4465   echo $ECHO_N "(cached) $ECHO_C" >&6
4466 else
4467   if test -n "$BUILD_CC"; then
4468   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4469 else
4470   ac_prog_rejected=no
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 for as_dir in $PATH
4473 do
4474   IFS=$as_save_IFS
4475   test -z "$as_dir" && as_dir=.
4476   for ac_exec_ext in '' $ac_executable_extensions; do
4477   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4478     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4479        ac_prog_rejected=yes
4480        continue
4481      fi
4482     ac_cv_prog_BUILD_CC="cc"
4483     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4484     break 2
4485   fi
4486 done
4487 done
4488 IFS=$as_save_IFS
4489
4490 if test $ac_prog_rejected = yes; then
4491   # We found a bogon in the path, so make sure we never use it.
4492   set dummy $ac_cv_prog_BUILD_CC
4493   shift
4494   if test $# != 0; then
4495     # We chose a different compiler from the bogus one.
4496     # However, it has the same basename, so the bogon will be chosen
4497     # first if we set BUILD_CC to just the basename; use the full file name.
4498     shift
4499     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4500   fi
4501 fi
4502 fi
4503 fi
4504 BUILD_CC=$ac_cv_prog_BUILD_CC
4505 if test -n "$BUILD_CC"; then
4506   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4507 echo "${ECHO_T}$BUILD_CC" >&6; }
4508 else
4509   { echo "$as_me:$LINENO: result: no" >&5
4510 echo "${ECHO_T}no" >&6; }
4511 fi
4512
4513
4514      fi
4515   fi
4516   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4517 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4518    { (exit 1); exit 1; }; }
4519   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4520   rm -f conftest*
4521   echo 'int main () { return 0; }' > conftest.$ac_ext
4522   ac_cv_build_exeext=
4523   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4524   (eval $ac_build_link) 2>&5
4525   ac_status=$?
4526   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4527   (exit $ac_status); }; then
4528     for file in conftest.*; do
4529       case $file in
4530       *.c | *.o | *.obj | *.dSYM) ;;
4531       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4532       esac
4533     done
4534   else
4535     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4536 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4537    { (exit 1); exit 1; }; }
4538   fi
4539   rm -f conftest*
4540   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4541 fi
4542 fi
4543
4544 BUILD_EXEEXT=""
4545 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4546 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4547 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4548 ac_build_exeext=$BUILD_EXEEXT
4549
4550   ac_build_prefix=${build_alias}-
4551   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4552 set dummy ${ac_build_prefix}g++; ac_word=$2
4553 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4554 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4555 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4556   echo $ECHO_N "(cached) $ECHO_C" >&6
4557 else
4558   if test -n "$BUILD_CXX"; then
4559   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4560 else
4561 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4562 for as_dir in $PATH
4563 do
4564   IFS=$as_save_IFS
4565   test -z "$as_dir" && as_dir=.
4566   for ac_exec_ext in '' $ac_executable_extensions; do
4567   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4568     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4569     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4570     break 2
4571   fi
4572 done
4573 done
4574 IFS=$as_save_IFS
4575
4576 fi
4577 fi
4578 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4579 if test -n "$BUILD_CXX"; then
4580   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4581 echo "${ECHO_T}$BUILD_CXX" >&6; }
4582 else
4583   { echo "$as_me:$LINENO: result: no" >&5
4584 echo "${ECHO_T}no" >&6; }
4585 fi
4586
4587
4588   if test -z "$BUILD_CXX"; then
4589      # Extract the first word of "g++", so it can be a program name with args.
4590 set dummy g++; ac_word=$2
4591 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4592 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4593 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4594   echo $ECHO_N "(cached) $ECHO_C" >&6
4595 else
4596   if test -n "$BUILD_CXX"; then
4597   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4598 else
4599 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4600 for as_dir in $PATH
4601 do
4602   IFS=$as_save_IFS
4603   test -z "$as_dir" && as_dir=.
4604   for ac_exec_ext in '' $ac_executable_extensions; do
4605   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4606     ac_cv_prog_BUILD_CXX="g++"
4607     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4608     break 2
4609   fi
4610 done
4611 done
4612 IFS=$as_save_IFS
4613
4614 fi
4615 fi
4616 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4617 if test -n "$BUILD_CXX"; then
4618   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4619 echo "${ECHO_T}$BUILD_CXX" >&6; }
4620 else
4621   { echo "$as_me:$LINENO: result: no" >&5
4622 echo "${ECHO_T}no" >&6; }
4623 fi
4624
4625
4626      if test -z "$BUILD_CXX"; then
4627        # Extract the first word of "c++", so it can be a program name with args.
4628 set dummy c++; ac_word=$2
4629 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4630 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4631 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4632   echo $ECHO_N "(cached) $ECHO_C" >&6
4633 else
4634   if test -n "$BUILD_CXX"; then
4635   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4636 else
4637   ac_prog_rejected=no
4638 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4639 for as_dir in $PATH
4640 do
4641   IFS=$as_save_IFS
4642   test -z "$as_dir" && as_dir=.
4643   for ac_exec_ext in '' $ac_executable_extensions; do
4644   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4645     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4646        ac_prog_rejected=yes
4647        continue
4648      fi
4649     ac_cv_prog_BUILD_CXX="c++"
4650     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4651     break 2
4652   fi
4653 done
4654 done
4655 IFS=$as_save_IFS
4656
4657 if test $ac_prog_rejected = yes; then
4658   # We found a bogon in the path, so make sure we never use it.
4659   set dummy $ac_cv_prog_BUILD_CXX
4660   shift
4661   if test $# != 0; then
4662     # We chose a different compiler from the bogus one.
4663     # However, it has the same basename, so the bogon will be chosen
4664     # first if we set BUILD_CXX to just the basename; use the full file name.
4665     shift
4666     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4667   fi
4668 fi
4669 fi
4670 fi
4671 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4672 if test -n "$BUILD_CXX"; then
4673   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4674 echo "${ECHO_T}$BUILD_CXX" >&6; }
4675 else
4676   { echo "$as_me:$LINENO: result: no" >&5
4677 echo "${ECHO_T}no" >&6; }
4678 fi
4679
4680
4681      fi
4682   fi
4683 else
4684   LLVM_CROSS_COMPILING=0
4685
4686 fi
4687
4688 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4689   cvsbuild="yes"
4690   optimize="no"
4691   CVSBUILD=CVSBUILD=1
4692
4693 else
4694   cvsbuild="no"
4695   optimize="yes"
4696 fi
4697
4698
4699 # Check whether --enable-optimized was given.
4700 if test "${enable_optimized+set}" = set; then
4701   enableval=$enable_optimized;
4702 else
4703   enableval=$optimize
4704 fi
4705
4706 if test ${enableval} = "no" ; then
4707   ENABLE_OPTIMIZED=
4708
4709 else
4710   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4711
4712 fi
4713
4714 # Check whether --enable-profiling was given.
4715 if test "${enable_profiling+set}" = set; then
4716   enableval=$enable_profiling;
4717 else
4718   enableval="no"
4719 fi
4720
4721 if test ${enableval} = "no" ; then
4722   ENABLE_PROFILING=
4723
4724 else
4725   ENABLE_PROFILING=ENABLE_PROFILING=1
4726
4727 fi
4728
4729 # Check whether --enable-assertions was given.
4730 if test "${enable_assertions+set}" = set; then
4731   enableval=$enable_assertions;
4732 else
4733   enableval="yes"
4734 fi
4735
4736 if test ${enableval} = "yes" ; then
4737   DISABLE_ASSERTIONS=
4738
4739 else
4740   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4741
4742 fi
4743
4744 # Check whether --enable-expensive-checks was given.
4745 if test "${enable_expensive_checks+set}" = set; then
4746   enableval=$enable_expensive_checks;
4747 else
4748   enableval="no"
4749 fi
4750
4751 if test ${enableval} = "yes" ; then
4752   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4753
4754   EXPENSIVE_CHECKS=yes
4755
4756 else
4757   ENABLE_EXPENSIVE_CHECKS=
4758
4759   EXPENSIVE_CHECKS=no
4760
4761 fi
4762
4763 # Check whether --enable-debug-runtime was given.
4764 if test "${enable_debug_runtime+set}" = set; then
4765   enableval=$enable_debug_runtime;
4766 else
4767   enableval=no
4768 fi
4769
4770 if test ${enableval} = "no" ; then
4771   DEBUG_RUNTIME=
4772
4773 else
4774   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4775
4776 fi
4777
4778 # Check whether --enable-debug-symbols was given.
4779 if test "${enable_debug_symbols+set}" = set; then
4780   enableval=$enable_debug_symbols;
4781 else
4782   enableval=no
4783 fi
4784
4785 if test ${enableval} = "no" ; then
4786   DEBUG_SYMBOLS=
4787
4788 else
4789   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4790
4791 fi
4792
4793 # Check whether --enable-jit was given.
4794 if test "${enable_jit+set}" = set; then
4795   enableval=$enable_jit;
4796 else
4797   enableval=default
4798 fi
4799
4800 if test ${enableval} = "no"
4801 then
4802   JIT=
4803
4804 else
4805   case "$llvm_cv_target_arch" in
4806     x86)         TARGET_HAS_JIT=1
4807  ;;
4808     Sparc)       TARGET_HAS_JIT=0
4809  ;;
4810     PowerPC)     TARGET_HAS_JIT=1
4811  ;;
4812     x86_64)      TARGET_HAS_JIT=1
4813  ;;
4814     Alpha)       TARGET_HAS_JIT=1
4815  ;;
4816     ARM)         TARGET_HAS_JIT=1
4817  ;;
4818     Mips)        TARGET_HAS_JIT=0
4819  ;;
4820     XCore)       TARGET_HAS_JIT=0
4821  ;;
4822     MSP430)      TARGET_HAS_JIT=0
4823  ;;
4824     SystemZ)     TARGET_HAS_JIT=0
4825  ;;
4826     Blackfin)    TARGET_HAS_JIT=0
4827  ;;
4828     MBlaze)      TARGET_HAS_JIT=0
4829  ;;
4830     PTX)         TARGET_HAS_JIT=0
4831  ;;
4832     *)           TARGET_HAS_JIT=0
4833  ;;
4834   esac
4835 fi
4836
4837 # Check whether --enable-doxygen was given.
4838 if test "${enable_doxygen+set}" = set; then
4839   enableval=$enable_doxygen;
4840 else
4841   enableval=default
4842 fi
4843
4844 case "$enableval" in
4845   yes) ENABLE_DOXYGEN=1
4846  ;;
4847   no)  ENABLE_DOXYGEN=0
4848  ;;
4849   default) ENABLE_DOXYGEN=0
4850  ;;
4851   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4852 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4853    { (exit 1); exit 1; }; } ;;
4854 esac
4855
4856 # Check whether --enable-threads was given.
4857 if test "${enable_threads+set}" = set; then
4858   enableval=$enable_threads;
4859 else
4860   enableval=default
4861 fi
4862
4863 case "$enableval" in
4864   yes) ENABLE_THREADS=1
4865  ;;
4866   no)  ENABLE_THREADS=0
4867  ;;
4868   default) ENABLE_THREADS=1
4869  ;;
4870   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4871 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4872    { (exit 1); exit 1; }; } ;;
4873 esac
4874
4875 cat >>confdefs.h <<_ACEOF
4876 #define ENABLE_THREADS $ENABLE_THREADS
4877 _ACEOF
4878
4879
4880 # Check whether --enable-pic was given.
4881 if test "${enable_pic+set}" = set; then
4882   enableval=$enable_pic;
4883 else
4884   enableval=default
4885 fi
4886
4887 case "$enableval" in
4888   yes) ENABLE_PIC=1
4889  ;;
4890   no)  ENABLE_PIC=0
4891  ;;
4892   default) ENABLE_PIC=1
4893  ;;
4894   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4895 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4896    { (exit 1); exit 1; }; } ;;
4897 esac
4898
4899 cat >>confdefs.h <<_ACEOF
4900 #define ENABLE_PIC $ENABLE_PIC
4901 _ACEOF
4902
4903
4904 # Check whether --enable-shared was given.
4905 if test "${enable_shared+set}" = set; then
4906   enableval=$enable_shared;
4907 else
4908   enableval=default
4909 fi
4910
4911 case "$enableval" in
4912   yes) ENABLE_SHARED=1
4913  ;;
4914   no)  ENABLE_SHARED=0
4915  ;;
4916   default) ENABLE_SHARED=0
4917  ;;
4918   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4919 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4920    { (exit 1); exit 1; }; } ;;
4921 esac
4922
4923 # Check whether --enable-timestamps was given.
4924 if test "${enable_timestamps+set}" = set; then
4925   enableval=$enable_timestamps;
4926 else
4927   enableval=default
4928 fi
4929
4930 case "$enableval" in
4931   yes) ENABLE_TIMESTAMPS=1
4932  ;;
4933   no)  ENABLE_TIMESTAMPS=0
4934  ;;
4935   default) ENABLE_TIMESTAMPS=1
4936  ;;
4937   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
4938 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
4939    { (exit 1); exit 1; }; } ;;
4940 esac
4941
4942 cat >>confdefs.h <<_ACEOF
4943 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
4944 _ACEOF
4945
4946
4947 TARGETS_TO_BUILD=""
4948 # Check whether --enable-targets was given.
4949 if test "${enable_targets+set}" = set; then
4950   enableval=$enable_targets;
4951 else
4952   enableval=all
4953 fi
4954
4955 if test "$enableval" = host-only ; then
4956   enableval=host
4957 fi
4958 case "$enableval" in
4959   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
4960   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4961       case "$a_target" in
4962         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4963         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4964         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4965         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4966         alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4967         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4968         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4969         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4970         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4971         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4972         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4973         blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4974         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4975         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4976         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4977         ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
4978         host) case "$llvm_cv_target_arch" in
4979             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4980             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4981             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4982             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4983             Alpha)       TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4984             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4985             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4986             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4987             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4988             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4989             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4990             s390x)       TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4991             Blackfin)    TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4992             PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
4993             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4994 echo "$as_me: error: Can not set target to build" >&2;}
4995    { (exit 1); exit 1; }; } ;;
4996           esac ;;
4997         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
4998 echo "$as_me: error: Unrecognized target $a_target" >&2;}
4999    { (exit 1); exit 1; }; } ;;
5000       esac
5001   done
5002   ;;
5003 esac
5004 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5005
5006
5007 # Determine whether we are building LLVM support for the native architecture.
5008 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5009 for a_target in $TARGETS_TO_BUILD; do
5010   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5011
5012 cat >>confdefs.h <<_ACEOF
5013 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5014 _ACEOF
5015
5016     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5017     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5018     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5019
5020 cat >>confdefs.h <<_ACEOF
5021 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5022 _ACEOF
5023
5024
5025 cat >>confdefs.h <<_ACEOF
5026 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5027 _ACEOF
5028
5029
5030 cat >>confdefs.h <<_ACEOF
5031 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5032 _ACEOF
5033
5034   fi
5035 done
5036
5037 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5038 # target feature def files.
5039 LLVM_ENUM_TARGETS=""
5040 LLVM_ENUM_ASM_PRINTERS=""
5041 LLVM_ENUM_ASM_PARSERS=""
5042 LLVM_ENUM_DISASSEMBLERS=""
5043 for target_to_build in $TARGETS_TO_BUILD; do
5044   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5045   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5046     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5047   fi
5048   # MC-ized AsmPrinters live in TARGET/InstPrinter, not AsmPrinter
5049   if test -f ${srcdir}/lib/Target/${target_to_build}/InstPrinter/Makefile ; then
5050     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5051   fi
5052   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5053     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5054   fi
5055   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5056     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5057   fi
5058 done
5059
5060
5061
5062
5063
5064 # Check whether --enable-cbe-printf-a was given.
5065 if test "${enable_cbe_printf_a+set}" = set; then
5066   enableval=$enable_cbe_printf_a;
5067 else
5068   enableval=default
5069 fi
5070
5071 case "$enableval" in
5072   yes) ENABLE_CBE_PRINTF_A=1
5073  ;;
5074   no)  ENABLE_CBE_PRINTF_A=0
5075  ;;
5076   default)  ENABLE_CBE_PRINTF_A=1
5077  ;;
5078   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5079 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5080    { (exit 1); exit 1; }; } ;;
5081 esac
5082
5083 cat >>confdefs.h <<_ACEOF
5084 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5085 _ACEOF
5086
5087
5088
5089 # Check whether --with-llvmgccdir was given.
5090 if test "${with_llvmgccdir+set}" = set; then
5091   withval=$with_llvmgccdir;
5092 else
5093   withval=default
5094 fi
5095
5096 case "$withval" in
5097   default) WITH_LLVMGCCDIR=default ;;
5098   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
5099   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5100 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5101    { (exit 1); exit 1; }; } ;;
5102 esac
5103
5104
5105 # Check whether --with-llvmgcc was given.
5106 if test "${with_llvmgcc+set}" = set; then
5107   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5108       WITH_LLVMGCCDIR=""
5109 fi
5110
5111
5112
5113 # Check whether --with-llvmgxx was given.
5114 if test "${with_llvmgxx+set}" = set; then
5115   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5116     WITH_LLVMGCCDIR=""
5117 fi
5118
5119
5120 if test -n "$LLVMGCC"; then
5121    LLVMGCCCOMMAND="$LLVMGCC"
5122 fi
5123
5124 if test -n "$LLVMGXX"; then
5125    LLVMGXXCOMMAND="$LLVMGXX"
5126 fi
5127
5128 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5129    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5130 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5131    { (exit 1); exit 1; }; };
5132 fi
5133
5134 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5135    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5136 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5137    { (exit 1); exit 1; }; };
5138 fi
5139
5140
5141 # Check whether --with-clang was given.
5142 if test "${with_clang+set}" = set; then
5143   withval=$with_clang;
5144 else
5145   with_clang=default
5146 fi
5147
5148
5149
5150 # Check whether --with-built-clang was given.
5151 if test "${with_built_clang+set}" = set; then
5152   withval=$with_built_clang;
5153 else
5154   with_built_clang=check
5155 fi
5156
5157
5158 { echo "$as_me:$LINENO: checking clang compiler" >&5
5159 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5160 WITH_CLANGPATH=""
5161 WITH_BUILT_CLANG=0
5162 if test "$with_clang" != "default"; then
5163    WITH_CLANGPATH="$with_clang"
5164    if ! test -x "$WITH_CLANGPATH"; then
5165      { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5166 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5167    { (exit 1); exit 1; }; }
5168    fi
5169 elif test "$with_built_clang" = "yes"; then
5170    WITH_BUILT_CLANG=1
5171 elif test "$with_built_clang" = "no"; then
5172    WITH_BUILT_CLANG=0
5173 else
5174    if test "$with_built_clang" != "check"; then
5175       { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5176 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5177    { (exit 1); exit 1; }; }
5178    fi
5179
5180    if test -f ${srcdir}/tools/clang/README.txt; then
5181      WITH_BUILT_CLANG=1
5182    fi
5183 fi
5184
5185 if ! test -z "$WITH_CLANGPATH"; then
5186    { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5187 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5188    WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5189 elif test "$WITH_BUILT_CLANG" = "1"; then
5190    { echo "$as_me:$LINENO: result: built" >&5
5191 echo "${ECHO_T}built" >&6; }
5192 else
5193    { echo "$as_me:$LINENO: result: none" >&5
5194 echo "${ECHO_T}none" >&6; }
5195 fi
5196 CLANGPATH=$WITH_CLANGPATH
5197
5198 CLANGXXPATH=$WITH_CLANGXXPATH
5199
5200 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5201
5202
5203
5204 # Check whether --with-optimize-option was given.
5205 if test "${with_optimize_option+set}" = set; then
5206   withval=$with_optimize_option;
5207 else
5208   withval=default
5209 fi
5210
5211 { echo "$as_me:$LINENO: checking optimization flags" >&5
5212 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5213 case "$withval" in
5214   default)
5215     case "$llvm_cv_os_type" in
5216     FreeBSD) optimize_option=-O2 ;;
5217     MingW) optimize_option=-O2 ;;
5218     *)     optimize_option=-O3 ;;
5219     esac ;;
5220   *) optimize_option="$withval" ;;
5221 esac
5222 OPTIMIZE_OPTION=$optimize_option
5223
5224 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5225 echo "${ECHO_T}$optimize_option" >&6; }
5226
5227
5228 # Check whether --with-extra-options was given.
5229 if test "${with_extra_options+set}" = set; then
5230   withval=$with_extra_options;
5231 else
5232   withval=default
5233 fi
5234
5235 case "$withval" in
5236   default) EXTRA_OPTIONS= ;;
5237   *) EXTRA_OPTIONS=$withval ;;
5238 esac
5239 EXTRA_OPTIONS=$EXTRA_OPTIONS
5240
5241
5242 # Check whether --enable-bindings was given.
5243 if test "${enable_bindings+set}" = set; then
5244   enableval=$enable_bindings;
5245 else
5246   enableval=default
5247 fi
5248
5249 BINDINGS_TO_BUILD=""
5250 case "$enableval" in
5251   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5252   all ) BINDINGS_TO_BUILD="ocaml" ;;
5253   none | no) BINDINGS_TO_BUILD="" ;;
5254   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5255       case "$a_binding" in
5256         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5257         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5258 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5259    { (exit 1); exit 1; }; } ;;
5260       esac
5261   done
5262   ;;
5263 esac
5264
5265
5266 # Check whether --with-ocaml-libdir was given.
5267 if test "${with_ocaml_libdir+set}" = set; then
5268   withval=$with_ocaml_libdir;
5269 else
5270   withval=auto
5271 fi
5272
5273 case "$withval" in
5274   auto) with_ocaml_libdir="$withval" ;;
5275   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5276   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5277 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5278    { (exit 1); exit 1; }; } ;;
5279 esac
5280
5281
5282 # Check whether --with-c-include-dirs was given.
5283 if test "${with_c_include_dirs+set}" = set; then
5284   withval=$with_c_include_dirs;
5285 else
5286   withval=""
5287 fi
5288
5289
5290 cat >>confdefs.h <<_ACEOF
5291 #define C_INCLUDE_DIRS "$withval"
5292 _ACEOF
5293
5294
5295
5296 # Check whether --with-cxx-include-root was given.
5297 if test "${with_cxx_include_root+set}" = set; then
5298   withval=$with_cxx_include_root;
5299 else
5300   withval=""
5301 fi
5302
5303
5304 cat >>confdefs.h <<_ACEOF
5305 #define CXX_INCLUDE_ROOT "$withval"
5306 _ACEOF
5307
5308
5309
5310 # Check whether --with-cxx-include-arch was given.
5311 if test "${with_cxx_include_arch+set}" = set; then
5312   withval=$with_cxx_include_arch;
5313 else
5314   withval=""
5315 fi
5316
5317
5318 cat >>confdefs.h <<_ACEOF
5319 #define CXX_INCLUDE_ARCH "$withval"
5320 _ACEOF
5321
5322
5323
5324 # Check whether --with-cxx-include-32bit-dir was given.
5325 if test "${with_cxx_include_32bit_dir+set}" = set; then
5326   withval=$with_cxx_include_32bit_dir;
5327 else
5328   withval=""
5329 fi
5330
5331
5332 cat >>confdefs.h <<_ACEOF
5333 #define CXX_INCLUDE_32BIT_DIR "$withval"
5334 _ACEOF
5335
5336
5337
5338 # Check whether --with-cxx-include-64bit-dir was given.
5339 if test "${with_cxx_include_64bit_dir+set}" = set; then
5340   withval=$with_cxx_include_64bit_dir;
5341 else
5342   withval=""
5343 fi
5344
5345
5346 cat >>confdefs.h <<_ACEOF
5347 #define CXX_INCLUDE_64BIT_DIR "$withval"
5348 _ACEOF
5349
5350
5351
5352 # Check whether --with-binutils-include was given.
5353 if test "${with_binutils_include+set}" = set; then
5354   withval=$with_binutils_include;
5355 else
5356   withval=default
5357 fi
5358
5359 case "$withval" in
5360   default) WITH_BINUTILS_INCDIR=default ;;
5361   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5362   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5363 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5364    { (exit 1); exit 1; }; } ;;
5365 esac
5366 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5367   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5368
5369   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5370      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5371      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5372 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5373    { (exit 1); exit 1; }; };
5374   fi
5375 fi
5376
5377 # Check whether --enable-libffi was given.
5378 if test "${enable_libffi+set}" = set; then
5379   enableval=$enable_libffi; case "$enableval" in
5380     yes) llvm_cv_enable_libffi="yes" ;;
5381     no)  llvm_cv_enable_libffi="no"  ;;
5382     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5383 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5384    { (exit 1); exit 1; }; } ;;
5385   esac
5386 else
5387   llvm_cv_enable_libffi=no
5388 fi
5389
5390
5391
5392 ac_ext=c
5393 ac_cpp='$CPP $CPPFLAGS'
5394 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5395 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5396 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5397 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5398 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5399 # On Suns, sometimes $CPP names a directory.
5400 if test -n "$CPP" && test -d "$CPP"; then
5401   CPP=
5402 fi
5403 if test -z "$CPP"; then
5404   if test "${ac_cv_prog_CPP+set}" = set; then
5405   echo $ECHO_N "(cached) $ECHO_C" >&6
5406 else
5407       # Double quotes because CPP needs to be expanded
5408     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5409     do
5410       ac_preproc_ok=false
5411 for ac_c_preproc_warn_flag in '' yes
5412 do
5413   # Use a header file that comes with gcc, so configuring glibc
5414   # with a fresh cross-compiler works.
5415   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5416   # <limits.h> exists even on freestanding compilers.
5417   # On the NeXT, cc -E runs the code through the compiler's parser,
5418   # not just through cpp. "Syntax error" is here to catch this case.
5419   cat >conftest.$ac_ext <<_ACEOF
5420 /* confdefs.h.  */
5421 _ACEOF
5422 cat confdefs.h >>conftest.$ac_ext
5423 cat >>conftest.$ac_ext <<_ACEOF
5424 /* end confdefs.h.  */
5425 #ifdef __STDC__
5426 # include <limits.h>
5427 #else
5428 # include <assert.h>
5429 #endif
5430                      Syntax error
5431 _ACEOF
5432 if { (ac_try="$ac_cpp conftest.$ac_ext"
5433 case "(($ac_try" in
5434   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5435   *) ac_try_echo=$ac_try;;
5436 esac
5437 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5438   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5439   ac_status=$?
5440   grep -v '^ *+' conftest.er1 >conftest.err
5441   rm -f conftest.er1
5442   cat conftest.err >&5
5443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5444   (exit $ac_status); } >/dev/null; then
5445   if test -s conftest.err; then
5446     ac_cpp_err=$ac_c_preproc_warn_flag
5447     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5448   else
5449     ac_cpp_err=
5450   fi
5451 else
5452   ac_cpp_err=yes
5453 fi
5454 if test -z "$ac_cpp_err"; then
5455   :
5456 else
5457   echo "$as_me: failed program was:" >&5
5458 sed 's/^/| /' conftest.$ac_ext >&5
5459
5460   # Broken: fails on valid input.
5461 continue
5462 fi
5463
5464 rm -f conftest.err conftest.$ac_ext
5465
5466   # OK, works on sane cases.  Now check whether nonexistent headers
5467   # can be detected and how.
5468   cat >conftest.$ac_ext <<_ACEOF
5469 /* confdefs.h.  */
5470 _ACEOF
5471 cat confdefs.h >>conftest.$ac_ext
5472 cat >>conftest.$ac_ext <<_ACEOF
5473 /* end confdefs.h.  */
5474 #include <ac_nonexistent.h>
5475 _ACEOF
5476 if { (ac_try="$ac_cpp conftest.$ac_ext"
5477 case "(($ac_try" in
5478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5479   *) ac_try_echo=$ac_try;;
5480 esac
5481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5482   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5483   ac_status=$?
5484   grep -v '^ *+' conftest.er1 >conftest.err
5485   rm -f conftest.er1
5486   cat conftest.err >&5
5487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5488   (exit $ac_status); } >/dev/null; then
5489   if test -s conftest.err; then
5490     ac_cpp_err=$ac_c_preproc_warn_flag
5491     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5492   else
5493     ac_cpp_err=
5494   fi
5495 else
5496   ac_cpp_err=yes
5497 fi
5498 if test -z "$ac_cpp_err"; then
5499   # Broken: success on invalid input.
5500 continue
5501 else
5502   echo "$as_me: failed program was:" >&5
5503 sed 's/^/| /' conftest.$ac_ext >&5
5504
5505   # Passes both tests.
5506 ac_preproc_ok=:
5507 break
5508 fi
5509
5510 rm -f conftest.err conftest.$ac_ext
5511
5512 done
5513 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5514 rm -f conftest.err conftest.$ac_ext
5515 if $ac_preproc_ok; then
5516   break
5517 fi
5518
5519     done
5520     ac_cv_prog_CPP=$CPP
5521
5522 fi
5523   CPP=$ac_cv_prog_CPP
5524 else
5525   ac_cv_prog_CPP=$CPP
5526 fi
5527 { echo "$as_me:$LINENO: result: $CPP" >&5
5528 echo "${ECHO_T}$CPP" >&6; }
5529 ac_preproc_ok=false
5530 for ac_c_preproc_warn_flag in '' yes
5531 do
5532   # Use a header file that comes with gcc, so configuring glibc
5533   # with a fresh cross-compiler works.
5534   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5535   # <limits.h> exists even on freestanding compilers.
5536   # On the NeXT, cc -E runs the code through the compiler's parser,
5537   # not just through cpp. "Syntax error" is here to catch this case.
5538   cat >conftest.$ac_ext <<_ACEOF
5539 /* confdefs.h.  */
5540 _ACEOF
5541 cat confdefs.h >>conftest.$ac_ext
5542 cat >>conftest.$ac_ext <<_ACEOF
5543 /* end confdefs.h.  */
5544 #ifdef __STDC__
5545 # include <limits.h>
5546 #else
5547 # include <assert.h>
5548 #endif
5549                      Syntax error
5550 _ACEOF
5551 if { (ac_try="$ac_cpp conftest.$ac_ext"
5552 case "(($ac_try" in
5553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5554   *) ac_try_echo=$ac_try;;
5555 esac
5556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5557   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5558   ac_status=$?
5559   grep -v '^ *+' conftest.er1 >conftest.err
5560   rm -f conftest.er1
5561   cat conftest.err >&5
5562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5563   (exit $ac_status); } >/dev/null; then
5564   if test -s conftest.err; then
5565     ac_cpp_err=$ac_c_preproc_warn_flag
5566     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5567   else
5568     ac_cpp_err=
5569   fi
5570 else
5571   ac_cpp_err=yes
5572 fi
5573 if test -z "$ac_cpp_err"; then
5574   :
5575 else
5576   echo "$as_me: failed program was:" >&5
5577 sed 's/^/| /' conftest.$ac_ext >&5
5578
5579   # Broken: fails on valid input.
5580 continue
5581 fi
5582
5583 rm -f conftest.err conftest.$ac_ext
5584
5585   # OK, works on sane cases.  Now check whether nonexistent headers
5586   # can be detected and how.
5587   cat >conftest.$ac_ext <<_ACEOF
5588 /* confdefs.h.  */
5589 _ACEOF
5590 cat confdefs.h >>conftest.$ac_ext
5591 cat >>conftest.$ac_ext <<_ACEOF
5592 /* end confdefs.h.  */
5593 #include <ac_nonexistent.h>
5594 _ACEOF
5595 if { (ac_try="$ac_cpp conftest.$ac_ext"
5596 case "(($ac_try" in
5597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5598   *) ac_try_echo=$ac_try;;
5599 esac
5600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5601   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5602   ac_status=$?
5603   grep -v '^ *+' conftest.er1 >conftest.err
5604   rm -f conftest.er1
5605   cat conftest.err >&5
5606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5607   (exit $ac_status); } >/dev/null; then
5608   if test -s conftest.err; then
5609     ac_cpp_err=$ac_c_preproc_warn_flag
5610     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5611   else
5612     ac_cpp_err=
5613   fi
5614 else
5615   ac_cpp_err=yes
5616 fi
5617 if test -z "$ac_cpp_err"; then
5618   # Broken: success on invalid input.
5619 continue
5620 else
5621   echo "$as_me: failed program was:" >&5
5622 sed 's/^/| /' conftest.$ac_ext >&5
5623
5624   # Passes both tests.
5625 ac_preproc_ok=:
5626 break
5627 fi
5628
5629 rm -f conftest.err conftest.$ac_ext
5630
5631 done
5632 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5633 rm -f conftest.err conftest.$ac_ext
5634 if $ac_preproc_ok; then
5635   :
5636 else
5637   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5638 See \`config.log' for more details." >&5
5639 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5640 See \`config.log' for more details." >&2;}
5641    { (exit 1); exit 1; }; }
5642 fi
5643
5644 ac_ext=c
5645 ac_cpp='$CPP $CPPFLAGS'
5646 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5647 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5648 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5649
5650 ac_ext=c
5651 ac_cpp='$CPP $CPPFLAGS'
5652 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5653 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5654 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5655 if test -n "$ac_tool_prefix"; then
5656   for ac_prog in gcc
5657   do
5658     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5659 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5660 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5661 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5662 if test "${ac_cv_prog_CC+set}" = set; then
5663   echo $ECHO_N "(cached) $ECHO_C" >&6
5664 else
5665   if test -n "$CC"; then
5666   ac_cv_prog_CC="$CC" # Let the user override the test.
5667 else
5668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5669 for as_dir in $PATH
5670 do
5671   IFS=$as_save_IFS
5672   test -z "$as_dir" && as_dir=.
5673   for ac_exec_ext in '' $ac_executable_extensions; do
5674   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5675     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5676     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5677     break 2
5678   fi
5679 done
5680 done
5681 IFS=$as_save_IFS
5682
5683 fi
5684 fi
5685 CC=$ac_cv_prog_CC
5686 if test -n "$CC"; then
5687   { echo "$as_me:$LINENO: result: $CC" >&5
5688 echo "${ECHO_T}$CC" >&6; }
5689 else
5690   { echo "$as_me:$LINENO: result: no" >&5
5691 echo "${ECHO_T}no" >&6; }
5692 fi
5693
5694
5695     test -n "$CC" && break
5696   done
5697 fi
5698 if test -z "$CC"; then
5699   ac_ct_CC=$CC
5700   for ac_prog in gcc
5701 do
5702   # Extract the first word of "$ac_prog", so it can be a program name with args.
5703 set dummy $ac_prog; ac_word=$2
5704 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5705 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5706 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5707   echo $ECHO_N "(cached) $ECHO_C" >&6
5708 else
5709   if test -n "$ac_ct_CC"; then
5710   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5711 else
5712 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5713 for as_dir in $PATH
5714 do
5715   IFS=$as_save_IFS
5716   test -z "$as_dir" && as_dir=.
5717   for ac_exec_ext in '' $ac_executable_extensions; do
5718   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5719     ac_cv_prog_ac_ct_CC="$ac_prog"
5720     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5721     break 2
5722   fi
5723 done
5724 done
5725 IFS=$as_save_IFS
5726
5727 fi
5728 fi
5729 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5730 if test -n "$ac_ct_CC"; then
5731   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5732 echo "${ECHO_T}$ac_ct_CC" >&6; }
5733 else
5734   { echo "$as_me:$LINENO: result: no" >&5
5735 echo "${ECHO_T}no" >&6; }
5736 fi
5737
5738
5739   test -n "$ac_ct_CC" && break
5740 done
5741
5742   if test "x$ac_ct_CC" = x; then
5743     CC=""
5744   else
5745     case $cross_compiling:$ac_tool_warned in
5746 yes:)
5747 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5748 whose name does not start with the host triplet.  If you think this
5749 configuration is useful to you, please write to autoconf@gnu.org." >&5
5750 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5751 whose name does not start with the host triplet.  If you think this
5752 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5753 ac_tool_warned=yes ;;
5754 esac
5755     CC=$ac_ct_CC
5756   fi
5757 fi
5758
5759
5760 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5761 See \`config.log' for more details." >&5
5762 echo "$as_me: error: no acceptable C compiler found in \$PATH
5763 See \`config.log' for more details." >&2;}
5764    { (exit 1); exit 1; }; }
5765
5766 # Provide some information about the compiler.
5767 echo "$as_me:$LINENO: checking for C compiler version" >&5
5768 ac_compiler=`set X $ac_compile; echo $2`
5769 { (ac_try="$ac_compiler --version >&5"
5770 case "(($ac_try" in
5771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5772   *) ac_try_echo=$ac_try;;
5773 esac
5774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5775   (eval "$ac_compiler --version >&5") 2>&5
5776   ac_status=$?
5777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5778   (exit $ac_status); }
5779 { (ac_try="$ac_compiler -v >&5"
5780 case "(($ac_try" in
5781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5782   *) ac_try_echo=$ac_try;;
5783 esac
5784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5785   (eval "$ac_compiler -v >&5") 2>&5
5786   ac_status=$?
5787   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5788   (exit $ac_status); }
5789 { (ac_try="$ac_compiler -V >&5"
5790 case "(($ac_try" in
5791   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5792   *) ac_try_echo=$ac_try;;
5793 esac
5794 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5795   (eval "$ac_compiler -V >&5") 2>&5
5796   ac_status=$?
5797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5798   (exit $ac_status); }
5799
5800 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5801 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5802 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5803   echo $ECHO_N "(cached) $ECHO_C" >&6
5804 else
5805   cat >conftest.$ac_ext <<_ACEOF
5806 /* confdefs.h.  */
5807 _ACEOF
5808 cat confdefs.h >>conftest.$ac_ext
5809 cat >>conftest.$ac_ext <<_ACEOF
5810 /* end confdefs.h.  */
5811
5812 int
5813 main ()
5814 {
5815 #ifndef __GNUC__
5816        choke me
5817 #endif
5818
5819   ;
5820   return 0;
5821 }
5822 _ACEOF
5823 rm -f conftest.$ac_objext
5824 if { (ac_try="$ac_compile"
5825 case "(($ac_try" in
5826   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5827   *) ac_try_echo=$ac_try;;
5828 esac
5829 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5830   (eval "$ac_compile") 2>conftest.er1
5831   ac_status=$?
5832   grep -v '^ *+' conftest.er1 >conftest.err
5833   rm -f conftest.er1
5834   cat conftest.err >&5
5835   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5836   (exit $ac_status); } &&
5837          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
5844   ac_status=$?
5845   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5846   (exit $ac_status); }; } &&
5847          { ac_try='test -s conftest.$ac_objext'
5848   { (case "(($ac_try" in
5849   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5850   *) ac_try_echo=$ac_try;;
5851 esac
5852 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5853   (eval "$ac_try") 2>&5
5854   ac_status=$?
5855   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5856   (exit $ac_status); }; }; then
5857   ac_compiler_gnu=yes
5858 else
5859   echo "$as_me: failed program was:" >&5
5860 sed 's/^/| /' conftest.$ac_ext >&5
5861
5862         ac_compiler_gnu=no
5863 fi
5864
5865 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5866 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5867
5868 fi
5869 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5870 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5871 GCC=`test $ac_compiler_gnu = yes && echo yes`
5872 ac_test_CFLAGS=${CFLAGS+set}
5873 ac_save_CFLAGS=$CFLAGS
5874 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5875 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5876 if test "${ac_cv_prog_cc_g+set}" = set; then
5877   echo $ECHO_N "(cached) $ECHO_C" >&6
5878 else
5879   ac_save_c_werror_flag=$ac_c_werror_flag
5880    ac_c_werror_flag=yes
5881    ac_cv_prog_cc_g=no
5882    CFLAGS="-g"
5883    cat >conftest.$ac_ext <<_ACEOF
5884 /* confdefs.h.  */
5885 _ACEOF
5886 cat confdefs.h >>conftest.$ac_ext
5887 cat >>conftest.$ac_ext <<_ACEOF
5888 /* end confdefs.h.  */
5889
5890 int
5891 main ()
5892 {
5893
5894   ;
5895   return 0;
5896 }
5897 _ACEOF
5898 rm -f conftest.$ac_objext
5899 if { (ac_try="$ac_compile"
5900 case "(($ac_try" in
5901   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5902   *) ac_try_echo=$ac_try;;
5903 esac
5904 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5905   (eval "$ac_compile") 2>conftest.er1
5906   ac_status=$?
5907   grep -v '^ *+' conftest.er1 >conftest.err
5908   rm -f conftest.er1
5909   cat conftest.err >&5
5910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5911   (exit $ac_status); } &&
5912          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5913   { (case "(($ac_try" in
5914   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5915   *) ac_try_echo=$ac_try;;
5916 esac
5917 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5918   (eval "$ac_try") 2>&5
5919   ac_status=$?
5920   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5921   (exit $ac_status); }; } &&
5922          { ac_try='test -s conftest.$ac_objext'
5923   { (case "(($ac_try" in
5924   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5925   *) ac_try_echo=$ac_try;;
5926 esac
5927 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5928   (eval "$ac_try") 2>&5
5929   ac_status=$?
5930   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5931   (exit $ac_status); }; }; then
5932   ac_cv_prog_cc_g=yes
5933 else
5934   echo "$as_me: failed program was:" >&5
5935 sed 's/^/| /' conftest.$ac_ext >&5
5936
5937         CFLAGS=""
5938       cat >conftest.$ac_ext <<_ACEOF
5939 /* confdefs.h.  */
5940 _ACEOF
5941 cat confdefs.h >>conftest.$ac_ext
5942 cat >>conftest.$ac_ext <<_ACEOF
5943 /* end confdefs.h.  */
5944
5945 int
5946 main ()
5947 {
5948
5949   ;
5950   return 0;
5951 }
5952 _ACEOF
5953 rm -f conftest.$ac_objext
5954 if { (ac_try="$ac_compile"
5955 case "(($ac_try" in
5956   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5957   *) ac_try_echo=$ac_try;;
5958 esac
5959 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5960   (eval "$ac_compile") 2>conftest.er1
5961   ac_status=$?
5962   grep -v '^ *+' conftest.er1 >conftest.err
5963   rm -f conftest.er1
5964   cat conftest.err >&5
5965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5966   (exit $ac_status); } &&
5967          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5968   { (case "(($ac_try" in
5969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5970   *) ac_try_echo=$ac_try;;
5971 esac
5972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5973   (eval "$ac_try") 2>&5
5974   ac_status=$?
5975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5976   (exit $ac_status); }; } &&
5977          { ac_try='test -s conftest.$ac_objext'
5978   { (case "(($ac_try" in
5979   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5980   *) ac_try_echo=$ac_try;;
5981 esac
5982 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5983   (eval "$ac_try") 2>&5
5984   ac_status=$?
5985   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5986   (exit $ac_status); }; }; then
5987   :
5988 else
5989   echo "$as_me: failed program was:" >&5
5990 sed 's/^/| /' conftest.$ac_ext >&5
5991
5992         ac_c_werror_flag=$ac_save_c_werror_flag
5993          CFLAGS="-g"
5994          cat >conftest.$ac_ext <<_ACEOF
5995 /* confdefs.h.  */
5996 _ACEOF
5997 cat confdefs.h >>conftest.$ac_ext
5998 cat >>conftest.$ac_ext <<_ACEOF
5999 /* end confdefs.h.  */
6000
6001 int
6002 main ()
6003 {
6004
6005   ;
6006   return 0;
6007 }
6008 _ACEOF
6009 rm -f conftest.$ac_objext
6010 if { (ac_try="$ac_compile"
6011 case "(($ac_try" in
6012   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6013   *) ac_try_echo=$ac_try;;
6014 esac
6015 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6016   (eval "$ac_compile") 2>conftest.er1
6017   ac_status=$?
6018   grep -v '^ *+' conftest.er1 >conftest.err
6019   rm -f conftest.er1
6020   cat conftest.err >&5
6021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6022   (exit $ac_status); } &&
6023          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6024   { (case "(($ac_try" in
6025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6026   *) ac_try_echo=$ac_try;;
6027 esac
6028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6029   (eval "$ac_try") 2>&5
6030   ac_status=$?
6031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6032   (exit $ac_status); }; } &&
6033          { ac_try='test -s conftest.$ac_objext'
6034   { (case "(($ac_try" in
6035   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6036   *) ac_try_echo=$ac_try;;
6037 esac
6038 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6039   (eval "$ac_try") 2>&5
6040   ac_status=$?
6041   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6042   (exit $ac_status); }; }; then
6043   ac_cv_prog_cc_g=yes
6044 else
6045   echo "$as_me: failed program was:" >&5
6046 sed 's/^/| /' conftest.$ac_ext >&5
6047
6048
6049 fi
6050
6051 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6052 fi
6053
6054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6055 fi
6056
6057 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6058    ac_c_werror_flag=$ac_save_c_werror_flag
6059 fi
6060 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6061 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6062 if test "$ac_test_CFLAGS" = set; then
6063   CFLAGS=$ac_save_CFLAGS
6064 elif test $ac_cv_prog_cc_g = yes; then
6065   if test "$GCC" = yes; then
6066     CFLAGS="-g -O2"
6067   else
6068     CFLAGS="-g"
6069   fi
6070 else
6071   if test "$GCC" = yes; then
6072     CFLAGS="-O2"
6073   else
6074     CFLAGS=
6075   fi
6076 fi
6077 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6078 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6079 if test "${ac_cv_prog_cc_c89+set}" = set; then
6080   echo $ECHO_N "(cached) $ECHO_C" >&6
6081 else
6082   ac_cv_prog_cc_c89=no
6083 ac_save_CC=$CC
6084 cat >conftest.$ac_ext <<_ACEOF
6085 /* confdefs.h.  */
6086 _ACEOF
6087 cat confdefs.h >>conftest.$ac_ext
6088 cat >>conftest.$ac_ext <<_ACEOF
6089 /* end confdefs.h.  */
6090 #include <stdarg.h>
6091 #include <stdio.h>
6092 #include <sys/types.h>
6093 #include <sys/stat.h>
6094 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6095 struct buf { int x; };
6096 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6097 static char *e (p, i)
6098      char **p;
6099      int i;
6100 {
6101   return p[i];
6102 }
6103 static char *f (char * (*g) (char **, int), char **p, ...)
6104 {
6105   char *s;
6106   va_list v;
6107   va_start (v,p);
6108   s = g (p, va_arg (v,int));
6109   va_end (v);
6110   return s;
6111 }
6112
6113 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6114    function prototypes and stuff, but not '\xHH' hex character constants.
6115    These don't provoke an error unfortunately, instead are silently treated
6116    as 'x'.  The following induces an error, until -std is added to get
6117    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6118    array size at least.  It's necessary to write '\x00'==0 to get something
6119    that's true only with -std.  */
6120 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6121
6122 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6123    inside strings and character constants.  */
6124 #define FOO(x) 'x'
6125 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6126
6127 int test (int i, double x);
6128 struct s1 {int (*f) (int a);};
6129 struct s2 {int (*f) (double a);};
6130 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6131 int argc;
6132 char **argv;
6133 int
6134 main ()
6135 {
6136 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6137   ;
6138   return 0;
6139 }
6140 _ACEOF
6141 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6142         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6143 do
6144   CC="$ac_save_CC $ac_arg"
6145   rm -f conftest.$ac_objext
6146 if { (ac_try="$ac_compile"
6147 case "(($ac_try" in
6148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6149   *) ac_try_echo=$ac_try;;
6150 esac
6151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6152   (eval "$ac_compile") 2>conftest.er1
6153   ac_status=$?
6154   grep -v '^ *+' conftest.er1 >conftest.err
6155   rm -f conftest.er1
6156   cat conftest.err >&5
6157   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6158   (exit $ac_status); } &&
6159          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6160   { (case "(($ac_try" in
6161   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6162   *) ac_try_echo=$ac_try;;
6163 esac
6164 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6165   (eval "$ac_try") 2>&5
6166   ac_status=$?
6167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6168   (exit $ac_status); }; } &&
6169          { ac_try='test -s conftest.$ac_objext'
6170   { (case "(($ac_try" in
6171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6172   *) ac_try_echo=$ac_try;;
6173 esac
6174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6175   (eval "$ac_try") 2>&5
6176   ac_status=$?
6177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6178   (exit $ac_status); }; }; then
6179   ac_cv_prog_cc_c89=$ac_arg
6180 else
6181   echo "$as_me: failed program was:" >&5
6182 sed 's/^/| /' conftest.$ac_ext >&5
6183
6184
6185 fi
6186
6187 rm -f core conftest.err conftest.$ac_objext
6188   test "x$ac_cv_prog_cc_c89" != "xno" && break
6189 done
6190 rm -f conftest.$ac_ext
6191 CC=$ac_save_CC
6192
6193 fi
6194 # AC_CACHE_VAL
6195 case "x$ac_cv_prog_cc_c89" in
6196   x)
6197     { echo "$as_me:$LINENO: result: none needed" >&5
6198 echo "${ECHO_T}none needed" >&6; } ;;
6199   xno)
6200     { echo "$as_me:$LINENO: result: unsupported" >&5
6201 echo "${ECHO_T}unsupported" >&6; } ;;
6202   *)
6203     CC="$CC $ac_cv_prog_cc_c89"
6204     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6205 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6206 esac
6207
6208
6209 ac_ext=c
6210 ac_cpp='$CPP $CPPFLAGS'
6211 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6212 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6213 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6214
6215 ac_ext=cpp
6216 ac_cpp='$CXXCPP $CPPFLAGS'
6217 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6218 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6219 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6220 if test -z "$CXX"; then
6221   if test -n "$CCC"; then
6222     CXX=$CCC
6223   else
6224     if test -n "$ac_tool_prefix"; then
6225   for ac_prog in g++
6226   do
6227     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6228 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6229 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6230 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6231 if test "${ac_cv_prog_CXX+set}" = set; then
6232   echo $ECHO_N "(cached) $ECHO_C" >&6
6233 else
6234   if test -n "$CXX"; then
6235   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6236 else
6237 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6238 for as_dir in $PATH
6239 do
6240   IFS=$as_save_IFS
6241   test -z "$as_dir" && as_dir=.
6242   for ac_exec_ext in '' $ac_executable_extensions; do
6243   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6244     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6245     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6246     break 2
6247   fi
6248 done
6249 done
6250 IFS=$as_save_IFS
6251
6252 fi
6253 fi
6254 CXX=$ac_cv_prog_CXX
6255 if test -n "$CXX"; then
6256   { echo "$as_me:$LINENO: result: $CXX" >&5
6257 echo "${ECHO_T}$CXX" >&6; }
6258 else
6259   { echo "$as_me:$LINENO: result: no" >&5
6260 echo "${ECHO_T}no" >&6; }
6261 fi
6262
6263
6264     test -n "$CXX" && break
6265   done
6266 fi
6267 if test -z "$CXX"; then
6268   ac_ct_CXX=$CXX
6269   for ac_prog in g++
6270 do
6271   # Extract the first word of "$ac_prog", so it can be a program name with args.
6272 set dummy $ac_prog; ac_word=$2
6273 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6274 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6275 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6276   echo $ECHO_N "(cached) $ECHO_C" >&6
6277 else
6278   if test -n "$ac_ct_CXX"; then
6279   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6280 else
6281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6282 for as_dir in $PATH
6283 do
6284   IFS=$as_save_IFS
6285   test -z "$as_dir" && as_dir=.
6286   for ac_exec_ext in '' $ac_executable_extensions; do
6287   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6288     ac_cv_prog_ac_ct_CXX="$ac_prog"
6289     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6290     break 2
6291   fi
6292 done
6293 done
6294 IFS=$as_save_IFS
6295
6296 fi
6297 fi
6298 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6299 if test -n "$ac_ct_CXX"; then
6300   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6301 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6302 else
6303   { echo "$as_me:$LINENO: result: no" >&5
6304 echo "${ECHO_T}no" >&6; }
6305 fi
6306
6307
6308   test -n "$ac_ct_CXX" && break
6309 done
6310
6311   if test "x$ac_ct_CXX" = x; then
6312     CXX="g++"
6313   else
6314     case $cross_compiling:$ac_tool_warned in
6315 yes:)
6316 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6317 whose name does not start with the host triplet.  If you think this
6318 configuration is useful to you, please write to autoconf@gnu.org." >&5
6319 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6320 whose name does not start with the host triplet.  If you think this
6321 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6322 ac_tool_warned=yes ;;
6323 esac
6324     CXX=$ac_ct_CXX
6325   fi
6326 fi
6327
6328   fi
6329 fi
6330 # Provide some information about the compiler.
6331 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6332 ac_compiler=`set X $ac_compile; echo $2`
6333 { (ac_try="$ac_compiler --version >&5"
6334 case "(($ac_try" in
6335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6336   *) ac_try_echo=$ac_try;;
6337 esac
6338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6339   (eval "$ac_compiler --version >&5") 2>&5
6340   ac_status=$?
6341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6342   (exit $ac_status); }
6343 { (ac_try="$ac_compiler -v >&5"
6344 case "(($ac_try" in
6345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6346   *) ac_try_echo=$ac_try;;
6347 esac
6348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6349   (eval "$ac_compiler -v >&5") 2>&5
6350   ac_status=$?
6351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6352   (exit $ac_status); }
6353 { (ac_try="$ac_compiler -V >&5"
6354 case "(($ac_try" in
6355   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6356   *) ac_try_echo=$ac_try;;
6357 esac
6358 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6359   (eval "$ac_compiler -V >&5") 2>&5
6360   ac_status=$?
6361   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6362   (exit $ac_status); }
6363
6364 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6365 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6366 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6367   echo $ECHO_N "(cached) $ECHO_C" >&6
6368 else
6369   cat >conftest.$ac_ext <<_ACEOF
6370 /* confdefs.h.  */
6371 _ACEOF
6372 cat confdefs.h >>conftest.$ac_ext
6373 cat >>conftest.$ac_ext <<_ACEOF
6374 /* end confdefs.h.  */
6375
6376 int
6377 main ()
6378 {
6379 #ifndef __GNUC__
6380        choke me
6381 #endif
6382
6383   ;
6384   return 0;
6385 }
6386 _ACEOF
6387 rm -f conftest.$ac_objext
6388 if { (ac_try="$ac_compile"
6389 case "(($ac_try" in
6390   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6391   *) ac_try_echo=$ac_try;;
6392 esac
6393 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6394   (eval "$ac_compile") 2>conftest.er1
6395   ac_status=$?
6396   grep -v '^ *+' conftest.er1 >conftest.err
6397   rm -f conftest.er1
6398   cat conftest.err >&5
6399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6400   (exit $ac_status); } &&
6401          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
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_try") 2>&5
6408   ac_status=$?
6409   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6410   (exit $ac_status); }; } &&
6411          { ac_try='test -s conftest.$ac_objext'
6412   { (case "(($ac_try" in
6413   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6414   *) ac_try_echo=$ac_try;;
6415 esac
6416 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6417   (eval "$ac_try") 2>&5
6418   ac_status=$?
6419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6420   (exit $ac_status); }; }; then
6421   ac_compiler_gnu=yes
6422 else
6423   echo "$as_me: failed program was:" >&5
6424 sed 's/^/| /' conftest.$ac_ext >&5
6425
6426         ac_compiler_gnu=no
6427 fi
6428
6429 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6430 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6431
6432 fi
6433 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6434 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6435 GXX=`test $ac_compiler_gnu = yes && echo yes`
6436 ac_test_CXXFLAGS=${CXXFLAGS+set}
6437 ac_save_CXXFLAGS=$CXXFLAGS
6438 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6439 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6440 if test "${ac_cv_prog_cxx_g+set}" = set; then
6441   echo $ECHO_N "(cached) $ECHO_C" >&6
6442 else
6443   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6444    ac_cxx_werror_flag=yes
6445    ac_cv_prog_cxx_g=no
6446    CXXFLAGS="-g"
6447    cat >conftest.$ac_ext <<_ACEOF
6448 /* confdefs.h.  */
6449 _ACEOF
6450 cat confdefs.h >>conftest.$ac_ext
6451 cat >>conftest.$ac_ext <<_ACEOF
6452 /* end confdefs.h.  */
6453
6454 int
6455 main ()
6456 {
6457
6458   ;
6459   return 0;
6460 }
6461 _ACEOF
6462 rm -f conftest.$ac_objext
6463 if { (ac_try="$ac_compile"
6464 case "(($ac_try" in
6465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6466   *) ac_try_echo=$ac_try;;
6467 esac
6468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6469   (eval "$ac_compile") 2>conftest.er1
6470   ac_status=$?
6471   grep -v '^ *+' conftest.er1 >conftest.err
6472   rm -f conftest.er1
6473   cat conftest.err >&5
6474   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6475   (exit $ac_status); } &&
6476          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6477   { (case "(($ac_try" in
6478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6479   *) ac_try_echo=$ac_try;;
6480 esac
6481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6482   (eval "$ac_try") 2>&5
6483   ac_status=$?
6484   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6485   (exit $ac_status); }; } &&
6486          { ac_try='test -s conftest.$ac_objext'
6487   { (case "(($ac_try" in
6488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6489   *) ac_try_echo=$ac_try;;
6490 esac
6491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6492   (eval "$ac_try") 2>&5
6493   ac_status=$?
6494   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6495   (exit $ac_status); }; }; then
6496   ac_cv_prog_cxx_g=yes
6497 else
6498   echo "$as_me: failed program was:" >&5
6499 sed 's/^/| /' conftest.$ac_ext >&5
6500
6501         CXXFLAGS=""
6502       cat >conftest.$ac_ext <<_ACEOF
6503 /* confdefs.h.  */
6504 _ACEOF
6505 cat confdefs.h >>conftest.$ac_ext
6506 cat >>conftest.$ac_ext <<_ACEOF
6507 /* end confdefs.h.  */
6508
6509 int
6510 main ()
6511 {
6512
6513   ;
6514   return 0;
6515 }
6516 _ACEOF
6517 rm -f conftest.$ac_objext
6518 if { (ac_try="$ac_compile"
6519 case "(($ac_try" in
6520   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6521   *) ac_try_echo=$ac_try;;
6522 esac
6523 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6524   (eval "$ac_compile") 2>conftest.er1
6525   ac_status=$?
6526   grep -v '^ *+' conftest.er1 >conftest.err
6527   rm -f conftest.er1
6528   cat conftest.err >&5
6529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6530   (exit $ac_status); } &&
6531          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6532   { (case "(($ac_try" in
6533   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6534   *) ac_try_echo=$ac_try;;
6535 esac
6536 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6537   (eval "$ac_try") 2>&5
6538   ac_status=$?
6539   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6540   (exit $ac_status); }; } &&
6541          { ac_try='test -s conftest.$ac_objext'
6542   { (case "(($ac_try" in
6543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6544   *) ac_try_echo=$ac_try;;
6545 esac
6546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6547   (eval "$ac_try") 2>&5
6548   ac_status=$?
6549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6550   (exit $ac_status); }; }; then
6551   :
6552 else
6553   echo "$as_me: failed program was:" >&5
6554 sed 's/^/| /' conftest.$ac_ext >&5
6555
6556         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6557          CXXFLAGS="-g"
6558          cat >conftest.$ac_ext <<_ACEOF
6559 /* confdefs.h.  */
6560 _ACEOF
6561 cat confdefs.h >>conftest.$ac_ext
6562 cat >>conftest.$ac_ext <<_ACEOF
6563 /* end confdefs.h.  */
6564
6565 int
6566 main ()
6567 {
6568
6569   ;
6570   return 0;
6571 }
6572 _ACEOF
6573 rm -f conftest.$ac_objext
6574 if { (ac_try="$ac_compile"
6575 case "(($ac_try" in
6576   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6577   *) ac_try_echo=$ac_try;;
6578 esac
6579 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6580   (eval "$ac_compile") 2>conftest.er1
6581   ac_status=$?
6582   grep -v '^ *+' conftest.er1 >conftest.err
6583   rm -f conftest.er1
6584   cat conftest.err >&5
6585   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6586   (exit $ac_status); } &&
6587          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6588   { (case "(($ac_try" in
6589   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6590   *) ac_try_echo=$ac_try;;
6591 esac
6592 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6593   (eval "$ac_try") 2>&5
6594   ac_status=$?
6595   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6596   (exit $ac_status); }; } &&
6597          { ac_try='test -s conftest.$ac_objext'
6598   { (case "(($ac_try" in
6599   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6600   *) ac_try_echo=$ac_try;;
6601 esac
6602 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6603   (eval "$ac_try") 2>&5
6604   ac_status=$?
6605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6606   (exit $ac_status); }; }; then
6607   ac_cv_prog_cxx_g=yes
6608 else
6609   echo "$as_me: failed program was:" >&5
6610 sed 's/^/| /' conftest.$ac_ext >&5
6611
6612
6613 fi
6614
6615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6616 fi
6617
6618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6619 fi
6620
6621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6622    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6623 fi
6624 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6625 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6626 if test "$ac_test_CXXFLAGS" = set; then
6627   CXXFLAGS=$ac_save_CXXFLAGS
6628 elif test $ac_cv_prog_cxx_g = yes; then
6629   if test "$GXX" = yes; then
6630     CXXFLAGS="-g -O2"
6631   else
6632     CXXFLAGS="-g"
6633   fi
6634 else
6635   if test "$GXX" = yes; then
6636     CXXFLAGS="-O2"
6637   else
6638     CXXFLAGS=
6639   fi
6640 fi
6641 ac_ext=c
6642 ac_cpp='$CPP $CPPFLAGS'
6643 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6644 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6645 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6646
6647
6648 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6649 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6650 if test "${lt_cv_path_NM+set}" = set; then
6651   echo $ECHO_N "(cached) $ECHO_C" >&6
6652 else
6653   if test -n "$NM"; then
6654   # Let the user override the test.
6655   lt_cv_path_NM="$NM"
6656 else
6657   lt_nm_to_check="${ac_tool_prefix}nm"
6658   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6659     lt_nm_to_check="$lt_nm_to_check nm"
6660   fi
6661   for lt_tmp_nm in $lt_nm_to_check; do
6662     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6663     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6664       IFS="$lt_save_ifs"
6665       test -z "$ac_dir" && ac_dir=.
6666       tmp_nm="$ac_dir/$lt_tmp_nm"
6667       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6668         # Check to see if the nm accepts a BSD-compat flag.
6669         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6670         #   nm: unknown option "B" ignored
6671         # Tru64's nm complains that /dev/null is an invalid object file
6672         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6673         */dev/null* | *'Invalid file or object type'*)
6674           lt_cv_path_NM="$tmp_nm -B"
6675           break
6676           ;;
6677         *)
6678           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6679           */dev/null*)
6680             lt_cv_path_NM="$tmp_nm -p"
6681             break
6682             ;;
6683           *)
6684             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6685             continue # so that we can try to find one that supports BSD flags
6686             ;;
6687           esac
6688           ;;
6689         esac
6690       fi
6691     done
6692     IFS="$lt_save_ifs"
6693   done
6694   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6695 fi
6696 fi
6697 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6698 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6699 NM="$lt_cv_path_NM"
6700
6701
6702
6703 { echo "$as_me:$LINENO: checking for GNU make" >&5
6704 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6705 if test "${llvm_cv_gnu_make_command+set}" = set; then
6706   echo $ECHO_N "(cached) $ECHO_C" >&6
6707 else
6708   llvm_cv_gnu_make_command=''
6709  for a in "$MAKE" make gmake gnumake ; do
6710   if test -z "$a" ; then continue ; fi ;
6711   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6712   then
6713    llvm_cv_gnu_make_command=$a ;
6714    break;
6715   fi
6716  done
6717 fi
6718 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6719 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6720  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6721    ifGNUmake='' ;
6722  else
6723    ifGNUmake='#' ;
6724    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6725 echo "${ECHO_T}\"Not found\"" >&6; };
6726  fi
6727
6728
6729 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6730 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6731 LN_S=$as_ln_s
6732 if test "$LN_S" = "ln -s"; then
6733   { echo "$as_me:$LINENO: result: yes" >&5
6734 echo "${ECHO_T}yes" >&6; }
6735 else
6736   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6737 echo "${ECHO_T}no, using $LN_S" >&6; }
6738 fi
6739
6740 # Extract the first word of "cmp", so it can be a program name with args.
6741 set dummy cmp; ac_word=$2
6742 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6743 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6744 if test "${ac_cv_path_CMP+set}" = set; then
6745   echo $ECHO_N "(cached) $ECHO_C" >&6
6746 else
6747   case $CMP in
6748   [\\/]* | ?:[\\/]*)
6749   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6750   ;;
6751   *)
6752   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6753 for as_dir in $PATH
6754 do
6755   IFS=$as_save_IFS
6756   test -z "$as_dir" && as_dir=.
6757   for ac_exec_ext in '' $ac_executable_extensions; do
6758   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6759     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6760     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6761     break 2
6762   fi
6763 done
6764 done
6765 IFS=$as_save_IFS
6766
6767   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6768   ;;
6769 esac
6770 fi
6771 CMP=$ac_cv_path_CMP
6772 if test -n "$CMP"; then
6773   { echo "$as_me:$LINENO: result: $CMP" >&5
6774 echo "${ECHO_T}$CMP" >&6; }
6775 else
6776   { echo "$as_me:$LINENO: result: no" >&5
6777 echo "${ECHO_T}no" >&6; }
6778 fi
6779
6780
6781 # Extract the first word of "cp", so it can be a program name with args.
6782 set dummy cp; ac_word=$2
6783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6785 if test "${ac_cv_path_CP+set}" = set; then
6786   echo $ECHO_N "(cached) $ECHO_C" >&6
6787 else
6788   case $CP in
6789   [\\/]* | ?:[\\/]*)
6790   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6791   ;;
6792   *)
6793   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6794 for as_dir in $PATH
6795 do
6796   IFS=$as_save_IFS
6797   test -z "$as_dir" && as_dir=.
6798   for ac_exec_ext in '' $ac_executable_extensions; do
6799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6800     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6801     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6802     break 2
6803   fi
6804 done
6805 done
6806 IFS=$as_save_IFS
6807
6808   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6809   ;;
6810 esac
6811 fi
6812 CP=$ac_cv_path_CP
6813 if test -n "$CP"; then
6814   { echo "$as_me:$LINENO: result: $CP" >&5
6815 echo "${ECHO_T}$CP" >&6; }
6816 else
6817   { echo "$as_me:$LINENO: result: no" >&5
6818 echo "${ECHO_T}no" >&6; }
6819 fi
6820
6821
6822 # Extract the first word of "date", so it can be a program name with args.
6823 set dummy date; ac_word=$2
6824 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6825 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6826 if test "${ac_cv_path_DATE+set}" = set; then
6827   echo $ECHO_N "(cached) $ECHO_C" >&6
6828 else
6829   case $DATE in
6830   [\\/]* | ?:[\\/]*)
6831   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6832   ;;
6833   *)
6834   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6835 for as_dir in $PATH
6836 do
6837   IFS=$as_save_IFS
6838   test -z "$as_dir" && as_dir=.
6839   for ac_exec_ext in '' $ac_executable_extensions; do
6840   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6841     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6842     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6843     break 2
6844   fi
6845 done
6846 done
6847 IFS=$as_save_IFS
6848
6849   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6850   ;;
6851 esac
6852 fi
6853 DATE=$ac_cv_path_DATE
6854 if test -n "$DATE"; then
6855   { echo "$as_me:$LINENO: result: $DATE" >&5
6856 echo "${ECHO_T}$DATE" >&6; }
6857 else
6858   { echo "$as_me:$LINENO: result: no" >&5
6859 echo "${ECHO_T}no" >&6; }
6860 fi
6861
6862
6863 # Extract the first word of "find", so it can be a program name with args.
6864 set dummy find; ac_word=$2
6865 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6866 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6867 if test "${ac_cv_path_FIND+set}" = set; then
6868   echo $ECHO_N "(cached) $ECHO_C" >&6
6869 else
6870   case $FIND in
6871   [\\/]* | ?:[\\/]*)
6872   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6873   ;;
6874   *)
6875   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6876 for as_dir in $PATH
6877 do
6878   IFS=$as_save_IFS
6879   test -z "$as_dir" && as_dir=.
6880   for ac_exec_ext in '' $ac_executable_extensions; do
6881   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6882     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6883     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6884     break 2
6885   fi
6886 done
6887 done
6888 IFS=$as_save_IFS
6889
6890   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6891   ;;
6892 esac
6893 fi
6894 FIND=$ac_cv_path_FIND
6895 if test -n "$FIND"; then
6896   { echo "$as_me:$LINENO: result: $FIND" >&5
6897 echo "${ECHO_T}$FIND" >&6; }
6898 else
6899   { echo "$as_me:$LINENO: result: no" >&5
6900 echo "${ECHO_T}no" >&6; }
6901 fi
6902
6903
6904 # Extract the first word of "grep", so it can be a program name with args.
6905 set dummy grep; ac_word=$2
6906 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6907 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6908 if test "${ac_cv_path_GREP+set}" = set; then
6909   echo $ECHO_N "(cached) $ECHO_C" >&6
6910 else
6911   case $GREP in
6912   [\\/]* | ?:[\\/]*)
6913   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6914   ;;
6915   *)
6916   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6917 for as_dir in $PATH
6918 do
6919   IFS=$as_save_IFS
6920   test -z "$as_dir" && as_dir=.
6921   for ac_exec_ext in '' $ac_executable_extensions; do
6922   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6923     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6924     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6925     break 2
6926   fi
6927 done
6928 done
6929 IFS=$as_save_IFS
6930
6931   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6932   ;;
6933 esac
6934 fi
6935 GREP=$ac_cv_path_GREP
6936 if test -n "$GREP"; then
6937   { echo "$as_me:$LINENO: result: $GREP" >&5
6938 echo "${ECHO_T}$GREP" >&6; }
6939 else
6940   { echo "$as_me:$LINENO: result: no" >&5
6941 echo "${ECHO_T}no" >&6; }
6942 fi
6943
6944
6945 # Extract the first word of "mkdir", so it can be a program name with args.
6946 set dummy mkdir; ac_word=$2
6947 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6948 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6949 if test "${ac_cv_path_MKDIR+set}" = set; then
6950   echo $ECHO_N "(cached) $ECHO_C" >&6
6951 else
6952   case $MKDIR in
6953   [\\/]* | ?:[\\/]*)
6954   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6955   ;;
6956   *)
6957   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6958 for as_dir in $PATH
6959 do
6960   IFS=$as_save_IFS
6961   test -z "$as_dir" && as_dir=.
6962   for ac_exec_ext in '' $ac_executable_extensions; do
6963   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6964     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6965     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6966     break 2
6967   fi
6968 done
6969 done
6970 IFS=$as_save_IFS
6971
6972   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6973   ;;
6974 esac
6975 fi
6976 MKDIR=$ac_cv_path_MKDIR
6977 if test -n "$MKDIR"; then
6978   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6979 echo "${ECHO_T}$MKDIR" >&6; }
6980 else
6981   { echo "$as_me:$LINENO: result: no" >&5
6982 echo "${ECHO_T}no" >&6; }
6983 fi
6984
6985
6986 # Extract the first word of "mv", so it can be a program name with args.
6987 set dummy mv; ac_word=$2
6988 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6989 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6990 if test "${ac_cv_path_MV+set}" = set; then
6991   echo $ECHO_N "(cached) $ECHO_C" >&6
6992 else
6993   case $MV in
6994   [\\/]* | ?:[\\/]*)
6995   ac_cv_path_MV="$MV" # Let the user override the test with a path.
6996   ;;
6997   *)
6998   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6999 for as_dir in $PATH
7000 do
7001   IFS=$as_save_IFS
7002   test -z "$as_dir" && as_dir=.
7003   for ac_exec_ext in '' $ac_executable_extensions; do
7004   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7005     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7006     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7007     break 2
7008   fi
7009 done
7010 done
7011 IFS=$as_save_IFS
7012
7013   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7014   ;;
7015 esac
7016 fi
7017 MV=$ac_cv_path_MV
7018 if test -n "$MV"; then
7019   { echo "$as_me:$LINENO: result: $MV" >&5
7020 echo "${ECHO_T}$MV" >&6; }
7021 else
7022   { echo "$as_me:$LINENO: result: no" >&5
7023 echo "${ECHO_T}no" >&6; }
7024 fi
7025
7026
7027 if test -n "$ac_tool_prefix"; then
7028   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7029 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7030 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7031 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7032 if test "${ac_cv_prog_RANLIB+set}" = set; then
7033   echo $ECHO_N "(cached) $ECHO_C" >&6
7034 else
7035   if test -n "$RANLIB"; then
7036   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7037 else
7038 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7039 for as_dir in $PATH
7040 do
7041   IFS=$as_save_IFS
7042   test -z "$as_dir" && as_dir=.
7043   for ac_exec_ext in '' $ac_executable_extensions; do
7044   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7045     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7046     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7047     break 2
7048   fi
7049 done
7050 done
7051 IFS=$as_save_IFS
7052
7053 fi
7054 fi
7055 RANLIB=$ac_cv_prog_RANLIB
7056 if test -n "$RANLIB"; then
7057   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7058 echo "${ECHO_T}$RANLIB" >&6; }
7059 else
7060   { echo "$as_me:$LINENO: result: no" >&5
7061 echo "${ECHO_T}no" >&6; }
7062 fi
7063
7064
7065 fi
7066 if test -z "$ac_cv_prog_RANLIB"; then
7067   ac_ct_RANLIB=$RANLIB
7068   # Extract the first word of "ranlib", so it can be a program name with args.
7069 set dummy ranlib; ac_word=$2
7070 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7071 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7072 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7073   echo $ECHO_N "(cached) $ECHO_C" >&6
7074 else
7075   if test -n "$ac_ct_RANLIB"; then
7076   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7077 else
7078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7079 for as_dir in $PATH
7080 do
7081   IFS=$as_save_IFS
7082   test -z "$as_dir" && as_dir=.
7083   for ac_exec_ext in '' $ac_executable_extensions; do
7084   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7085     ac_cv_prog_ac_ct_RANLIB="ranlib"
7086     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7087     break 2
7088   fi
7089 done
7090 done
7091 IFS=$as_save_IFS
7092
7093 fi
7094 fi
7095 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7096 if test -n "$ac_ct_RANLIB"; then
7097   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7098 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7099 else
7100   { echo "$as_me:$LINENO: result: no" >&5
7101 echo "${ECHO_T}no" >&6; }
7102 fi
7103
7104   if test "x$ac_ct_RANLIB" = x; then
7105     RANLIB=":"
7106   else
7107     case $cross_compiling:$ac_tool_warned in
7108 yes:)
7109 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7110 whose name does not start with the host triplet.  If you think this
7111 configuration is useful to you, please write to autoconf@gnu.org." >&5
7112 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7113 whose name does not start with the host triplet.  If you think this
7114 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7115 ac_tool_warned=yes ;;
7116 esac
7117     RANLIB=$ac_ct_RANLIB
7118   fi
7119 else
7120   RANLIB="$ac_cv_prog_RANLIB"
7121 fi
7122
7123 if test -n "$ac_tool_prefix"; then
7124   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7125 set dummy ${ac_tool_prefix}ar; ac_word=$2
7126 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7127 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7128 if test "${ac_cv_prog_AR+set}" = set; then
7129   echo $ECHO_N "(cached) $ECHO_C" >&6
7130 else
7131   if test -n "$AR"; then
7132   ac_cv_prog_AR="$AR" # Let the user override the test.
7133 else
7134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7135 for as_dir in $PATH
7136 do
7137   IFS=$as_save_IFS
7138   test -z "$as_dir" && as_dir=.
7139   for ac_exec_ext in '' $ac_executable_extensions; do
7140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7141     ac_cv_prog_AR="${ac_tool_prefix}ar"
7142     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7143     break 2
7144   fi
7145 done
7146 done
7147 IFS=$as_save_IFS
7148
7149 fi
7150 fi
7151 AR=$ac_cv_prog_AR
7152 if test -n "$AR"; then
7153   { echo "$as_me:$LINENO: result: $AR" >&5
7154 echo "${ECHO_T}$AR" >&6; }
7155 else
7156   { echo "$as_me:$LINENO: result: no" >&5
7157 echo "${ECHO_T}no" >&6; }
7158 fi
7159
7160
7161 fi
7162 if test -z "$ac_cv_prog_AR"; then
7163   ac_ct_AR=$AR
7164   # Extract the first word of "ar", so it can be a program name with args.
7165 set dummy ar; ac_word=$2
7166 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7167 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7168 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7169   echo $ECHO_N "(cached) $ECHO_C" >&6
7170 else
7171   if test -n "$ac_ct_AR"; then
7172   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7173 else
7174 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7175 for as_dir in $PATH
7176 do
7177   IFS=$as_save_IFS
7178   test -z "$as_dir" && as_dir=.
7179   for ac_exec_ext in '' $ac_executable_extensions; do
7180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7181     ac_cv_prog_ac_ct_AR="ar"
7182     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7183     break 2
7184   fi
7185 done
7186 done
7187 IFS=$as_save_IFS
7188
7189 fi
7190 fi
7191 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7192 if test -n "$ac_ct_AR"; then
7193   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7194 echo "${ECHO_T}$ac_ct_AR" >&6; }
7195 else
7196   { echo "$as_me:$LINENO: result: no" >&5
7197 echo "${ECHO_T}no" >&6; }
7198 fi
7199
7200   if test "x$ac_ct_AR" = x; then
7201     AR="false"
7202   else
7203     case $cross_compiling:$ac_tool_warned in
7204 yes:)
7205 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7206 whose name does not start with the host triplet.  If you think this
7207 configuration is useful to you, please write to autoconf@gnu.org." >&5
7208 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7209 whose name does not start with the host triplet.  If you think this
7210 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7211 ac_tool_warned=yes ;;
7212 esac
7213     AR=$ac_ct_AR
7214   fi
7215 else
7216   AR="$ac_cv_prog_AR"
7217 fi
7218
7219 # Extract the first word of "rm", so it can be a program name with args.
7220 set dummy rm; ac_word=$2
7221 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7222 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7223 if test "${ac_cv_path_RM+set}" = set; then
7224   echo $ECHO_N "(cached) $ECHO_C" >&6
7225 else
7226   case $RM in
7227   [\\/]* | ?:[\\/]*)
7228   ac_cv_path_RM="$RM" # Let the user override the test with a path.
7229   ;;
7230   *)
7231   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7232 for as_dir in $PATH
7233 do
7234   IFS=$as_save_IFS
7235   test -z "$as_dir" && as_dir=.
7236   for ac_exec_ext in '' $ac_executable_extensions; do
7237   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7238     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7239     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7240     break 2
7241   fi
7242 done
7243 done
7244 IFS=$as_save_IFS
7245
7246   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7247   ;;
7248 esac
7249 fi
7250 RM=$ac_cv_path_RM
7251 if test -n "$RM"; then
7252   { echo "$as_me:$LINENO: result: $RM" >&5
7253 echo "${ECHO_T}$RM" >&6; }
7254 else
7255   { echo "$as_me:$LINENO: result: no" >&5
7256 echo "${ECHO_T}no" >&6; }
7257 fi
7258
7259
7260 # Extract the first word of "sed", so it can be a program name with args.
7261 set dummy sed; ac_word=$2
7262 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7263 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7264 if test "${ac_cv_path_SED+set}" = set; then
7265   echo $ECHO_N "(cached) $ECHO_C" >&6
7266 else
7267   case $SED in
7268   [\\/]* | ?:[\\/]*)
7269   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7270   ;;
7271   *)
7272   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7273 for as_dir in $PATH
7274 do
7275   IFS=$as_save_IFS
7276   test -z "$as_dir" && as_dir=.
7277   for ac_exec_ext in '' $ac_executable_extensions; do
7278   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7279     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7280     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7281     break 2
7282   fi
7283 done
7284 done
7285 IFS=$as_save_IFS
7286
7287   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7288   ;;
7289 esac
7290 fi
7291 SED=$ac_cv_path_SED
7292 if test -n "$SED"; then
7293   { echo "$as_me:$LINENO: result: $SED" >&5
7294 echo "${ECHO_T}$SED" >&6; }
7295 else
7296   { echo "$as_me:$LINENO: result: no" >&5
7297 echo "${ECHO_T}no" >&6; }
7298 fi
7299
7300
7301 # Extract the first word of "tar", so it can be a program name with args.
7302 set dummy tar; ac_word=$2
7303 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7304 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7305 if test "${ac_cv_path_TAR+set}" = set; then
7306   echo $ECHO_N "(cached) $ECHO_C" >&6
7307 else
7308   case $TAR in
7309   [\\/]* | ?:[\\/]*)
7310   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7311   ;;
7312   *)
7313   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7314 for as_dir in $PATH
7315 do
7316   IFS=$as_save_IFS
7317   test -z "$as_dir" && as_dir=.
7318   for ac_exec_ext in '' $ac_executable_extensions; do
7319   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7320     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7321     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7322     break 2
7323   fi
7324 done
7325 done
7326 IFS=$as_save_IFS
7327
7328   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7329   ;;
7330 esac
7331 fi
7332 TAR=$ac_cv_path_TAR
7333 if test -n "$TAR"; then
7334   { echo "$as_me:$LINENO: result: $TAR" >&5
7335 echo "${ECHO_T}$TAR" >&6; }
7336 else
7337   { echo "$as_me:$LINENO: result: no" >&5
7338 echo "${ECHO_T}no" >&6; }
7339 fi
7340
7341
7342 # Extract the first word of "pwd", so it can be a program name with args.
7343 set dummy pwd; ac_word=$2
7344 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7345 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7346 if test "${ac_cv_path_BINPWD+set}" = set; then
7347   echo $ECHO_N "(cached) $ECHO_C" >&6
7348 else
7349   case $BINPWD in
7350   [\\/]* | ?:[\\/]*)
7351   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7352   ;;
7353   *)
7354   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7355 for as_dir in $PATH
7356 do
7357   IFS=$as_save_IFS
7358   test -z "$as_dir" && as_dir=.
7359   for ac_exec_ext in '' $ac_executable_extensions; do
7360   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7361     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7362     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7363     break 2
7364   fi
7365 done
7366 done
7367 IFS=$as_save_IFS
7368
7369   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7370   ;;
7371 esac
7372 fi
7373 BINPWD=$ac_cv_path_BINPWD
7374 if test -n "$BINPWD"; then
7375   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7376 echo "${ECHO_T}$BINPWD" >&6; }
7377 else
7378   { echo "$as_me:$LINENO: result: no" >&5
7379 echo "${ECHO_T}no" >&6; }
7380 fi
7381
7382
7383
7384 # Extract the first word of "Graphviz", so it can be a program name with args.
7385 set dummy Graphviz; ac_word=$2
7386 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7387 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7388 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7389   echo $ECHO_N "(cached) $ECHO_C" >&6
7390 else
7391   case $GRAPHVIZ in
7392   [\\/]* | ?:[\\/]*)
7393   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7394   ;;
7395   *)
7396   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7397 for as_dir in $PATH
7398 do
7399   IFS=$as_save_IFS
7400   test -z "$as_dir" && as_dir=.
7401   for ac_exec_ext in '' $ac_executable_extensions; do
7402   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7403     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7404     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7405     break 2
7406   fi
7407 done
7408 done
7409 IFS=$as_save_IFS
7410
7411   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7412   ;;
7413 esac
7414 fi
7415 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7416 if test -n "$GRAPHVIZ"; then
7417   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7418 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7419 else
7420   { echo "$as_me:$LINENO: result: no" >&5
7421 echo "${ECHO_T}no" >&6; }
7422 fi
7423
7424
7425 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7426
7427 cat >>confdefs.h <<\_ACEOF
7428 #define HAVE_GRAPHVIZ 1
7429 _ACEOF
7430
7431     if test "$llvm_cv_os_type" = "MingW" ; then
7432     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7433   fi
7434
7435 cat >>confdefs.h <<_ACEOF
7436 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7437 _ACEOF
7438
7439 fi
7440 # Extract the first word of "dot", so it can be a program name with args.
7441 set dummy dot; ac_word=$2
7442 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7443 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7444 if test "${ac_cv_path_DOT+set}" = set; then
7445   echo $ECHO_N "(cached) $ECHO_C" >&6
7446 else
7447   case $DOT in
7448   [\\/]* | ?:[\\/]*)
7449   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7450   ;;
7451   *)
7452   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7453 for as_dir in $PATH
7454 do
7455   IFS=$as_save_IFS
7456   test -z "$as_dir" && as_dir=.
7457   for ac_exec_ext in '' $ac_executable_extensions; do
7458   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7459     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7460     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7461     break 2
7462   fi
7463 done
7464 done
7465 IFS=$as_save_IFS
7466
7467   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7468   ;;
7469 esac
7470 fi
7471 DOT=$ac_cv_path_DOT
7472 if test -n "$DOT"; then
7473   { echo "$as_me:$LINENO: result: $DOT" >&5
7474 echo "${ECHO_T}$DOT" >&6; }
7475 else
7476   { echo "$as_me:$LINENO: result: no" >&5
7477 echo "${ECHO_T}no" >&6; }
7478 fi
7479
7480
7481 if test "$DOT" != "echo dot" ; then
7482
7483 cat >>confdefs.h <<\_ACEOF
7484 #define HAVE_DOT 1
7485 _ACEOF
7486
7487     if test "$llvm_cv_os_type" = "MingW" ; then
7488     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7489   fi
7490
7491 cat >>confdefs.h <<_ACEOF
7492 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7493 _ACEOF
7494
7495 fi
7496 # Extract the first word of "fdp", so it can be a program name with args.
7497 set dummy fdp; ac_word=$2
7498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7500 if test "${ac_cv_path_FDP+set}" = set; then
7501   echo $ECHO_N "(cached) $ECHO_C" >&6
7502 else
7503   case $FDP in
7504   [\\/]* | ?:[\\/]*)
7505   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7506   ;;
7507   *)
7508   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7509 for as_dir in $PATH
7510 do
7511   IFS=$as_save_IFS
7512   test -z "$as_dir" && as_dir=.
7513   for ac_exec_ext in '' $ac_executable_extensions; do
7514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7515     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7516     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7517     break 2
7518   fi
7519 done
7520 done
7521 IFS=$as_save_IFS
7522
7523   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7524   ;;
7525 esac
7526 fi
7527 FDP=$ac_cv_path_FDP
7528 if test -n "$FDP"; then
7529   { echo "$as_me:$LINENO: result: $FDP" >&5
7530 echo "${ECHO_T}$FDP" >&6; }
7531 else
7532   { echo "$as_me:$LINENO: result: no" >&5
7533 echo "${ECHO_T}no" >&6; }
7534 fi
7535
7536
7537 if test "$FDP" != "echo fdp" ; then
7538
7539 cat >>confdefs.h <<\_ACEOF
7540 #define HAVE_FDP 1
7541 _ACEOF
7542
7543     if test "$llvm_cv_os_type" = "MingW" ; then
7544     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7545   fi
7546
7547 cat >>confdefs.h <<_ACEOF
7548 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7549 _ACEOF
7550
7551 fi
7552 # Extract the first word of "neato", so it can be a program name with args.
7553 set dummy neato; ac_word=$2
7554 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7555 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7556 if test "${ac_cv_path_NEATO+set}" = set; then
7557   echo $ECHO_N "(cached) $ECHO_C" >&6
7558 else
7559   case $NEATO in
7560   [\\/]* | ?:[\\/]*)
7561   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7562   ;;
7563   *)
7564   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7565 for as_dir in $PATH
7566 do
7567   IFS=$as_save_IFS
7568   test -z "$as_dir" && as_dir=.
7569   for ac_exec_ext in '' $ac_executable_extensions; do
7570   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7571     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7573     break 2
7574   fi
7575 done
7576 done
7577 IFS=$as_save_IFS
7578
7579   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7580   ;;
7581 esac
7582 fi
7583 NEATO=$ac_cv_path_NEATO
7584 if test -n "$NEATO"; then
7585   { echo "$as_me:$LINENO: result: $NEATO" >&5
7586 echo "${ECHO_T}$NEATO" >&6; }
7587 else
7588   { echo "$as_me:$LINENO: result: no" >&5
7589 echo "${ECHO_T}no" >&6; }
7590 fi
7591
7592
7593 if test "$NEATO" != "echo neato" ; then
7594
7595 cat >>confdefs.h <<\_ACEOF
7596 #define HAVE_NEATO 1
7597 _ACEOF
7598
7599     if test "$llvm_cv_os_type" = "MingW" ; then
7600     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7601   fi
7602
7603 cat >>confdefs.h <<_ACEOF
7604 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7605 _ACEOF
7606
7607 fi
7608 # Extract the first word of "twopi", so it can be a program name with args.
7609 set dummy twopi; ac_word=$2
7610 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7611 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7612 if test "${ac_cv_path_TWOPI+set}" = set; then
7613   echo $ECHO_N "(cached) $ECHO_C" >&6
7614 else
7615   case $TWOPI in
7616   [\\/]* | ?:[\\/]*)
7617   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7618   ;;
7619   *)
7620   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621 for as_dir in $PATH
7622 do
7623   IFS=$as_save_IFS
7624   test -z "$as_dir" && as_dir=.
7625   for ac_exec_ext in '' $ac_executable_extensions; do
7626   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7627     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7628     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7629     break 2
7630   fi
7631 done
7632 done
7633 IFS=$as_save_IFS
7634
7635   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7636   ;;
7637 esac
7638 fi
7639 TWOPI=$ac_cv_path_TWOPI
7640 if test -n "$TWOPI"; then
7641   { echo "$as_me:$LINENO: result: $TWOPI" >&5
7642 echo "${ECHO_T}$TWOPI" >&6; }
7643 else
7644   { echo "$as_me:$LINENO: result: no" >&5
7645 echo "${ECHO_T}no" >&6; }
7646 fi
7647
7648
7649 if test "$TWOPI" != "echo twopi" ; then
7650
7651 cat >>confdefs.h <<\_ACEOF
7652 #define HAVE_TWOPI 1
7653 _ACEOF
7654
7655     if test "$llvm_cv_os_type" = "MingW" ; then
7656     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7657   fi
7658
7659 cat >>confdefs.h <<_ACEOF
7660 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7661 _ACEOF
7662
7663 fi
7664 # Extract the first word of "circo", so it can be a program name with args.
7665 set dummy circo; ac_word=$2
7666 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7667 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7668 if test "${ac_cv_path_CIRCO+set}" = set; then
7669   echo $ECHO_N "(cached) $ECHO_C" >&6
7670 else
7671   case $CIRCO in
7672   [\\/]* | ?:[\\/]*)
7673   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7674   ;;
7675   *)
7676   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7677 for as_dir in $PATH
7678 do
7679   IFS=$as_save_IFS
7680   test -z "$as_dir" && as_dir=.
7681   for ac_exec_ext in '' $ac_executable_extensions; do
7682   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7683     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7684     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7685     break 2
7686   fi
7687 done
7688 done
7689 IFS=$as_save_IFS
7690
7691   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7692   ;;
7693 esac
7694 fi
7695 CIRCO=$ac_cv_path_CIRCO
7696 if test -n "$CIRCO"; then
7697   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7698 echo "${ECHO_T}$CIRCO" >&6; }
7699 else
7700   { echo "$as_me:$LINENO: result: no" >&5
7701 echo "${ECHO_T}no" >&6; }
7702 fi
7703
7704
7705 if test "$CIRCO" != "echo circo" ; then
7706
7707 cat >>confdefs.h <<\_ACEOF
7708 #define HAVE_CIRCO 1
7709 _ACEOF
7710
7711     if test "$llvm_cv_os_type" = "MingW" ; then
7712     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7713   fi
7714
7715 cat >>confdefs.h <<_ACEOF
7716 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7717 _ACEOF
7718
7719 fi
7720 for ac_prog in gv gsview32
7721 do
7722   # Extract the first word of "$ac_prog", so it can be a program name with args.
7723 set dummy $ac_prog; ac_word=$2
7724 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7725 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7726 if test "${ac_cv_path_GV+set}" = set; then
7727   echo $ECHO_N "(cached) $ECHO_C" >&6
7728 else
7729   case $GV in
7730   [\\/]* | ?:[\\/]*)
7731   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7732   ;;
7733   *)
7734   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7735 for as_dir in $PATH
7736 do
7737   IFS=$as_save_IFS
7738   test -z "$as_dir" && as_dir=.
7739   for ac_exec_ext in '' $ac_executable_extensions; do
7740   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7741     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7742     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7743     break 2
7744   fi
7745 done
7746 done
7747 IFS=$as_save_IFS
7748
7749   ;;
7750 esac
7751 fi
7752 GV=$ac_cv_path_GV
7753 if test -n "$GV"; then
7754   { echo "$as_me:$LINENO: result: $GV" >&5
7755 echo "${ECHO_T}$GV" >&6; }
7756 else
7757   { echo "$as_me:$LINENO: result: no" >&5
7758 echo "${ECHO_T}no" >&6; }
7759 fi
7760
7761
7762   test -n "$GV" && break
7763 done
7764 test -n "$GV" || GV="echo gv"
7765
7766 if test "$GV" != "echo gv" ; then
7767
7768 cat >>confdefs.h <<\_ACEOF
7769 #define HAVE_GV 1
7770 _ACEOF
7771
7772     if test "$llvm_cv_os_type" = "MingW" ; then
7773     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7774   fi
7775
7776 cat >>confdefs.h <<_ACEOF
7777 #define LLVM_PATH_GV "$GV${EXEEXT}"
7778 _ACEOF
7779
7780 fi
7781 # Extract the first word of "dotty", so it can be a program name with args.
7782 set dummy dotty; ac_word=$2
7783 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7784 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7785 if test "${ac_cv_path_DOTTY+set}" = set; then
7786   echo $ECHO_N "(cached) $ECHO_C" >&6
7787 else
7788   case $DOTTY in
7789   [\\/]* | ?:[\\/]*)
7790   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7791   ;;
7792   *)
7793   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7794 for as_dir in $PATH
7795 do
7796   IFS=$as_save_IFS
7797   test -z "$as_dir" && as_dir=.
7798   for ac_exec_ext in '' $ac_executable_extensions; do
7799   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7800     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7801     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7802     break 2
7803   fi
7804 done
7805 done
7806 IFS=$as_save_IFS
7807
7808   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7809   ;;
7810 esac
7811 fi
7812 DOTTY=$ac_cv_path_DOTTY
7813 if test -n "$DOTTY"; then
7814   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7815 echo "${ECHO_T}$DOTTY" >&6; }
7816 else
7817   { echo "$as_me:$LINENO: result: no" >&5
7818 echo "${ECHO_T}no" >&6; }
7819 fi
7820
7821
7822 if test "$DOTTY" != "echo dotty" ; then
7823
7824 cat >>confdefs.h <<\_ACEOF
7825 #define HAVE_DOTTY 1
7826 _ACEOF
7827
7828     if test "$llvm_cv_os_type" = "MingW" ; then
7829     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7830   fi
7831
7832 cat >>confdefs.h <<_ACEOF
7833 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7834 _ACEOF
7835
7836 fi
7837 # Extract the first word of "xdot.py", so it can be a program name with args.
7838 set dummy xdot.py; ac_word=$2
7839 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7840 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7841 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7842   echo $ECHO_N "(cached) $ECHO_C" >&6
7843 else
7844   case $XDOT_PY in
7845   [\\/]* | ?:[\\/]*)
7846   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7847   ;;
7848   *)
7849   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7850 for as_dir in $PATH
7851 do
7852   IFS=$as_save_IFS
7853   test -z "$as_dir" && as_dir=.
7854   for ac_exec_ext in '' $ac_executable_extensions; do
7855   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7856     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7857     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7858     break 2
7859   fi
7860 done
7861 done
7862 IFS=$as_save_IFS
7863
7864   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7865   ;;
7866 esac
7867 fi
7868 XDOT_PY=$ac_cv_path_XDOT_PY
7869 if test -n "$XDOT_PY"; then
7870   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7871 echo "${ECHO_T}$XDOT_PY" >&6; }
7872 else
7873   { echo "$as_me:$LINENO: result: no" >&5
7874 echo "${ECHO_T}no" >&6; }
7875 fi
7876
7877
7878 if test "$XDOT_PY" != "echo xdot.py" ; then
7879
7880 cat >>confdefs.h <<\_ACEOF
7881 #define HAVE_XDOT_PY 1
7882 _ACEOF
7883
7884     if test "$llvm_cv_os_type" = "MingW" ; then
7885     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7886   fi
7887
7888 cat >>confdefs.h <<_ACEOF
7889 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7890 _ACEOF
7891
7892 fi
7893
7894
7895 # Extract the first word of "perl", so it can be a program name with args.
7896 set dummy perl; ac_word=$2
7897 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7898 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7899 if test "${ac_cv_path_PERL+set}" = set; then
7900   echo $ECHO_N "(cached) $ECHO_C" >&6
7901 else
7902   case $PERL in
7903   [\\/]* | ?:[\\/]*)
7904   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7905   ;;
7906   *)
7907   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7908 for as_dir in $PATH
7909 do
7910   IFS=$as_save_IFS
7911   test -z "$as_dir" && as_dir=.
7912   for ac_exec_ext in '' $ac_executable_extensions; do
7913   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7914     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7915     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7916     break 2
7917   fi
7918 done
7919 done
7920 IFS=$as_save_IFS
7921
7922   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7923   ;;
7924 esac
7925 fi
7926 PERL=$ac_cv_path_PERL
7927 if test -n "$PERL"; then
7928   { echo "$as_me:$LINENO: result: $PERL" >&5
7929 echo "${ECHO_T}$PERL" >&6; }
7930 else
7931   { echo "$as_me:$LINENO: result: no" >&5
7932 echo "${ECHO_T}no" >&6; }
7933 fi
7934
7935
7936 if test "$PERL" != "none"; then
7937   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7938 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7939   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7940     { echo "$as_me:$LINENO: result: yes" >&5
7941 echo "${ECHO_T}yes" >&6; }
7942   else
7943     PERL=none
7944     { echo "$as_me:$LINENO: result: not found" >&5
7945 echo "${ECHO_T}not found" >&6; }
7946   fi
7947 fi
7948
7949
7950 if test x"$PERL" = xnone; then
7951    HAVE_PERL=0
7952
7953    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7954 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7955    { (exit 1); exit 1; }; }
7956 else
7957    HAVE_PERL=1
7958
7959 fi
7960
7961 # Find a good install program.  We prefer a C program (faster),
7962 # so one script is as good as another.  But avoid the broken or
7963 # incompatible versions:
7964 # SysV /etc/install, /usr/sbin/install
7965 # SunOS /usr/etc/install
7966 # IRIX /sbin/install
7967 # AIX /bin/install
7968 # AmigaOS /C/install, which installs bootblocks on floppy discs
7969 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7970 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7971 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7972 # OS/2's system install, which has a completely different semantic
7973 # ./install, which can be erroneously created by make from ./install.sh.
7974 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7975 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7976 if test -z "$INSTALL"; then
7977 if test "${ac_cv_path_install+set}" = set; then
7978   echo $ECHO_N "(cached) $ECHO_C" >&6
7979 else
7980   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7981 for as_dir in $PATH
7982 do
7983   IFS=$as_save_IFS
7984   test -z "$as_dir" && as_dir=.
7985   # Account for people who put trailing slashes in PATH elements.
7986 case $as_dir/ in
7987   ./ | .// | /cC/* | \
7988   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
7989   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
7990   /usr/ucb/* ) ;;
7991   *)
7992     # OSF1 and SCO ODT 3.0 have their own names for install.
7993     # Don't use installbsd from OSF since it installs stuff as root
7994     # by default.
7995     for ac_prog in ginstall scoinst install; do
7996       for ac_exec_ext in '' $ac_executable_extensions; do
7997         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
7998           if test $ac_prog = install &&
7999             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8000             # AIX install.  It has an incompatible calling convention.
8001             :
8002           elif test $ac_prog = install &&
8003             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8004             # program-specific install script used by HP pwplus--don't use.
8005             :
8006           else
8007             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8008             break 3
8009           fi
8010         fi
8011       done
8012     done
8013     ;;
8014 esac
8015 done
8016 IFS=$as_save_IFS
8017
8018
8019 fi
8020   if test "${ac_cv_path_install+set}" = set; then
8021     INSTALL=$ac_cv_path_install
8022   else
8023     # As a last resort, use the slow shell script.  Don't cache a
8024     # value for INSTALL within a source directory, because that will
8025     # break other packages using the cache if that directory is
8026     # removed, or if the value is a relative name.
8027     INSTALL=$ac_install_sh
8028   fi
8029 fi
8030 { echo "$as_me:$LINENO: result: $INSTALL" >&5
8031 echo "${ECHO_T}$INSTALL" >&6; }
8032
8033 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8034 # It thinks the first close brace ends the variable substitution.
8035 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8036
8037 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8038
8039 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8040
8041 case "$INSTALL" in
8042  [\\/$]* | ?:[\\/]* ) ;;
8043  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8044 esac
8045
8046 # Extract the first word of "bzip2", so it can be a program name with args.
8047 set dummy bzip2; ac_word=$2
8048 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8049 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8050 if test "${ac_cv_path_BZIP2+set}" = set; then
8051   echo $ECHO_N "(cached) $ECHO_C" >&6
8052 else
8053   case $BZIP2 in
8054   [\\/]* | ?:[\\/]*)
8055   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8056   ;;
8057   *)
8058   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8059 for as_dir in $PATH
8060 do
8061   IFS=$as_save_IFS
8062   test -z "$as_dir" && as_dir=.
8063   for ac_exec_ext in '' $ac_executable_extensions; do
8064   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8065     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8066     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8067     break 2
8068   fi
8069 done
8070 done
8071 IFS=$as_save_IFS
8072
8073   ;;
8074 esac
8075 fi
8076 BZIP2=$ac_cv_path_BZIP2
8077 if test -n "$BZIP2"; then
8078   { echo "$as_me:$LINENO: result: $BZIP2" >&5
8079 echo "${ECHO_T}$BZIP2" >&6; }
8080 else
8081   { echo "$as_me:$LINENO: result: no" >&5
8082 echo "${ECHO_T}no" >&6; }
8083 fi
8084
8085
8086 # Extract the first word of "cat", so it can be a program name with args.
8087 set dummy cat; ac_word=$2
8088 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8089 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8090 if test "${ac_cv_path_CAT+set}" = set; then
8091   echo $ECHO_N "(cached) $ECHO_C" >&6
8092 else
8093   case $CAT in
8094   [\\/]* | ?:[\\/]*)
8095   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8096   ;;
8097   *)
8098   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8099 for as_dir in $PATH
8100 do
8101   IFS=$as_save_IFS
8102   test -z "$as_dir" && as_dir=.
8103   for ac_exec_ext in '' $ac_executable_extensions; do
8104   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8105     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8106     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8107     break 2
8108   fi
8109 done
8110 done
8111 IFS=$as_save_IFS
8112
8113   ;;
8114 esac
8115 fi
8116 CAT=$ac_cv_path_CAT
8117 if test -n "$CAT"; then
8118   { echo "$as_me:$LINENO: result: $CAT" >&5
8119 echo "${ECHO_T}$CAT" >&6; }
8120 else
8121   { echo "$as_me:$LINENO: result: no" >&5
8122 echo "${ECHO_T}no" >&6; }
8123 fi
8124
8125
8126 # Extract the first word of "doxygen", so it can be a program name with args.
8127 set dummy doxygen; ac_word=$2
8128 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8129 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8130 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8131   echo $ECHO_N "(cached) $ECHO_C" >&6
8132 else
8133   case $DOXYGEN in
8134   [\\/]* | ?:[\\/]*)
8135   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8136   ;;
8137   *)
8138   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8139 for as_dir in $PATH
8140 do
8141   IFS=$as_save_IFS
8142   test -z "$as_dir" && as_dir=.
8143   for ac_exec_ext in '' $ac_executable_extensions; do
8144   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8145     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8146     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8147     break 2
8148   fi
8149 done
8150 done
8151 IFS=$as_save_IFS
8152
8153   ;;
8154 esac
8155 fi
8156 DOXYGEN=$ac_cv_path_DOXYGEN
8157 if test -n "$DOXYGEN"; then
8158   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8159 echo "${ECHO_T}$DOXYGEN" >&6; }
8160 else
8161   { echo "$as_me:$LINENO: result: no" >&5
8162 echo "${ECHO_T}no" >&6; }
8163 fi
8164
8165
8166 # Extract the first word of "groff", so it can be a program name with args.
8167 set dummy groff; ac_word=$2
8168 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8169 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8170 if test "${ac_cv_path_GROFF+set}" = set; then
8171   echo $ECHO_N "(cached) $ECHO_C" >&6
8172 else
8173   case $GROFF in
8174   [\\/]* | ?:[\\/]*)
8175   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8176   ;;
8177   *)
8178   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8179 for as_dir in $PATH
8180 do
8181   IFS=$as_save_IFS
8182   test -z "$as_dir" && as_dir=.
8183   for ac_exec_ext in '' $ac_executable_extensions; do
8184   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8185     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8186     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8187     break 2
8188   fi
8189 done
8190 done
8191 IFS=$as_save_IFS
8192
8193   ;;
8194 esac
8195 fi
8196 GROFF=$ac_cv_path_GROFF
8197 if test -n "$GROFF"; then
8198   { echo "$as_me:$LINENO: result: $GROFF" >&5
8199 echo "${ECHO_T}$GROFF" >&6; }
8200 else
8201   { echo "$as_me:$LINENO: result: no" >&5
8202 echo "${ECHO_T}no" >&6; }
8203 fi
8204
8205
8206 # Extract the first word of "gzip", so it can be a program name with args.
8207 set dummy gzip; ac_word=$2
8208 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8209 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8210 if test "${ac_cv_path_GZIP+set}" = set; then
8211   echo $ECHO_N "(cached) $ECHO_C" >&6
8212 else
8213   case $GZIP in
8214   [\\/]* | ?:[\\/]*)
8215   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8216   ;;
8217   *)
8218   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8219 for as_dir in $PATH
8220 do
8221   IFS=$as_save_IFS
8222   test -z "$as_dir" && as_dir=.
8223   for ac_exec_ext in '' $ac_executable_extensions; do
8224   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8225     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8226     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8227     break 2
8228   fi
8229 done
8230 done
8231 IFS=$as_save_IFS
8232
8233   ;;
8234 esac
8235 fi
8236 GZIP=$ac_cv_path_GZIP
8237 if test -n "$GZIP"; then
8238   { echo "$as_me:$LINENO: result: $GZIP" >&5
8239 echo "${ECHO_T}$GZIP" >&6; }
8240 else
8241   { echo "$as_me:$LINENO: result: no" >&5
8242 echo "${ECHO_T}no" >&6; }
8243 fi
8244
8245
8246 # Extract the first word of "pod2html", so it can be a program name with args.
8247 set dummy pod2html; ac_word=$2
8248 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8249 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8250 if test "${ac_cv_path_POD2HTML+set}" = set; then
8251   echo $ECHO_N "(cached) $ECHO_C" >&6
8252 else
8253   case $POD2HTML in
8254   [\\/]* | ?:[\\/]*)
8255   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8256   ;;
8257   *)
8258   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8259 for as_dir in $PATH
8260 do
8261   IFS=$as_save_IFS
8262   test -z "$as_dir" && as_dir=.
8263   for ac_exec_ext in '' $ac_executable_extensions; do
8264   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8265     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8266     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8267     break 2
8268   fi
8269 done
8270 done
8271 IFS=$as_save_IFS
8272
8273   ;;
8274 esac
8275 fi
8276 POD2HTML=$ac_cv_path_POD2HTML
8277 if test -n "$POD2HTML"; then
8278   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8279 echo "${ECHO_T}$POD2HTML" >&6; }
8280 else
8281   { echo "$as_me:$LINENO: result: no" >&5
8282 echo "${ECHO_T}no" >&6; }
8283 fi
8284
8285
8286 # Extract the first word of "pod2man", so it can be a program name with args.
8287 set dummy pod2man; ac_word=$2
8288 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8289 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8290 if test "${ac_cv_path_POD2MAN+set}" = set; then
8291   echo $ECHO_N "(cached) $ECHO_C" >&6
8292 else
8293   case $POD2MAN in
8294   [\\/]* | ?:[\\/]*)
8295   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8296   ;;
8297   *)
8298   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8299 for as_dir in $PATH
8300 do
8301   IFS=$as_save_IFS
8302   test -z "$as_dir" && as_dir=.
8303   for ac_exec_ext in '' $ac_executable_extensions; do
8304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8305     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8306     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8307     break 2
8308   fi
8309 done
8310 done
8311 IFS=$as_save_IFS
8312
8313   ;;
8314 esac
8315 fi
8316 POD2MAN=$ac_cv_path_POD2MAN
8317 if test -n "$POD2MAN"; then
8318   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8319 echo "${ECHO_T}$POD2MAN" >&6; }
8320 else
8321   { echo "$as_me:$LINENO: result: no" >&5
8322 echo "${ECHO_T}no" >&6; }
8323 fi
8324
8325
8326 # Extract the first word of "pdfroff", so it can be a program name with args.
8327 set dummy pdfroff; ac_word=$2
8328 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8329 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8330 if test "${ac_cv_path_PDFROFF+set}" = set; then
8331   echo $ECHO_N "(cached) $ECHO_C" >&6
8332 else
8333   case $PDFROFF in
8334   [\\/]* | ?:[\\/]*)
8335   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8336   ;;
8337   *)
8338   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8339 for as_dir in $PATH
8340 do
8341   IFS=$as_save_IFS
8342   test -z "$as_dir" && as_dir=.
8343   for ac_exec_ext in '' $ac_executable_extensions; do
8344   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8345     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8346     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8347     break 2
8348   fi
8349 done
8350 done
8351 IFS=$as_save_IFS
8352
8353   ;;
8354 esac
8355 fi
8356 PDFROFF=$ac_cv_path_PDFROFF
8357 if test -n "$PDFROFF"; then
8358   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8359 echo "${ECHO_T}$PDFROFF" >&6; }
8360 else
8361   { echo "$as_me:$LINENO: result: no" >&5
8362 echo "${ECHO_T}no" >&6; }
8363 fi
8364
8365
8366 # Extract the first word of "runtest", so it can be a program name with args.
8367 set dummy runtest; ac_word=$2
8368 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8369 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8370 if test "${ac_cv_path_RUNTEST+set}" = set; then
8371   echo $ECHO_N "(cached) $ECHO_C" >&6
8372 else
8373   case $RUNTEST in
8374   [\\/]* | ?:[\\/]*)
8375   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8376   ;;
8377   *)
8378   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8379 for as_dir in $PATH
8380 do
8381   IFS=$as_save_IFS
8382   test -z "$as_dir" && as_dir=.
8383   for ac_exec_ext in '' $ac_executable_extensions; do
8384   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8385     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8386     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8387     break 2
8388   fi
8389 done
8390 done
8391 IFS=$as_save_IFS
8392
8393   ;;
8394 esac
8395 fi
8396 RUNTEST=$ac_cv_path_RUNTEST
8397 if test -n "$RUNTEST"; then
8398   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8399 echo "${ECHO_T}$RUNTEST" >&6; }
8400 else
8401   { echo "$as_me:$LINENO: result: no" >&5
8402 echo "${ECHO_T}no" >&6; }
8403 fi
8404
8405
8406
8407 no_itcl=true
8408 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8409 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8410
8411 # Check whether --with-tclinclude was given.
8412 if test "${with_tclinclude+set}" = set; then
8413   withval=$with_tclinclude; with_tclinclude=${withval}
8414 else
8415   with_tclinclude=''
8416 fi
8417
8418 if test "${ac_cv_path_tclsh+set}" = set; then
8419   echo $ECHO_N "(cached) $ECHO_C" >&6
8420 else
8421
8422 if test x"${with_tclinclude}" != x ; then
8423   if test -f ${with_tclinclude}/tclsh ; then
8424     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8425   elif test -f ${with_tclinclude}/src/tclsh ; then
8426     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8427   else
8428     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8429 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8430    { (exit 1); exit 1; }; }
8431   fi
8432 fi
8433 fi
8434
8435
8436 if test x"${ac_cv_path_tclsh}" = x ; then
8437   { echo "$as_me:$LINENO: result: none" >&5
8438 echo "${ECHO_T}none" >&6; }
8439   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
8440 do
8441   # Extract the first word of "$ac_prog", so it can be a program name with args.
8442 set dummy $ac_prog; ac_word=$2
8443 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8444 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8445 if test "${ac_cv_path_TCLSH+set}" = set; then
8446   echo $ECHO_N "(cached) $ECHO_C" >&6
8447 else
8448   case $TCLSH in
8449   [\\/]* | ?:[\\/]*)
8450   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8451   ;;
8452   *)
8453   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8454 for as_dir in $PATH
8455 do
8456   IFS=$as_save_IFS
8457   test -z "$as_dir" && as_dir=.
8458   for ac_exec_ext in '' $ac_executable_extensions; do
8459   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8460     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8461     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8462     break 2
8463   fi
8464 done
8465 done
8466 IFS=$as_save_IFS
8467
8468   ;;
8469 esac
8470 fi
8471 TCLSH=$ac_cv_path_TCLSH
8472 if test -n "$TCLSH"; then
8473   { echo "$as_me:$LINENO: result: $TCLSH" >&5
8474 echo "${ECHO_T}$TCLSH" >&6; }
8475 else
8476   { echo "$as_me:$LINENO: result: no" >&5
8477 echo "${ECHO_T}no" >&6; }
8478 fi
8479
8480
8481   test -n "$TCLSH" && break
8482 done
8483
8484   if test x"${TCLSH}" = x ; then
8485     ac_cv_path_tclsh='';
8486   else
8487     ac_cv_path_tclsh="${TCLSH}";
8488   fi
8489 else
8490   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8491 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8492   TCLSH="${ac_cv_path_tclsh}"
8493
8494 fi
8495
8496 # Extract the first word of "zip", so it can be a program name with args.
8497 set dummy zip; ac_word=$2
8498 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8500 if test "${ac_cv_path_ZIP+set}" = set; then
8501   echo $ECHO_N "(cached) $ECHO_C" >&6
8502 else
8503   case $ZIP in
8504   [\\/]* | ?:[\\/]*)
8505   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8506   ;;
8507   *)
8508   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8509 for as_dir in $PATH
8510 do
8511   IFS=$as_save_IFS
8512   test -z "$as_dir" && as_dir=.
8513   for ac_exec_ext in '' $ac_executable_extensions; do
8514   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8515     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8516     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8517     break 2
8518   fi
8519 done
8520 done
8521 IFS=$as_save_IFS
8522
8523   ;;
8524 esac
8525 fi
8526 ZIP=$ac_cv_path_ZIP
8527 if test -n "$ZIP"; then
8528   { echo "$as_me:$LINENO: result: $ZIP" >&5
8529 echo "${ECHO_T}$ZIP" >&6; }
8530 else
8531   { echo "$as_me:$LINENO: result: no" >&5
8532 echo "${ECHO_T}no" >&6; }
8533 fi
8534
8535
8536 for ac_prog in ocamlc
8537 do
8538   # Extract the first word of "$ac_prog", so it can be a program name with args.
8539 set dummy $ac_prog; ac_word=$2
8540 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8541 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8542 if test "${ac_cv_path_OCAMLC+set}" = set; then
8543   echo $ECHO_N "(cached) $ECHO_C" >&6
8544 else
8545   case $OCAMLC in
8546   [\\/]* | ?:[\\/]*)
8547   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8548   ;;
8549   *)
8550   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8551 for as_dir in $PATH
8552 do
8553   IFS=$as_save_IFS
8554   test -z "$as_dir" && as_dir=.
8555   for ac_exec_ext in '' $ac_executable_extensions; do
8556   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8557     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8558     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8559     break 2
8560   fi
8561 done
8562 done
8563 IFS=$as_save_IFS
8564
8565   ;;
8566 esac
8567 fi
8568 OCAMLC=$ac_cv_path_OCAMLC
8569 if test -n "$OCAMLC"; then
8570   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8571 echo "${ECHO_T}$OCAMLC" >&6; }
8572 else
8573   { echo "$as_me:$LINENO: result: no" >&5
8574 echo "${ECHO_T}no" >&6; }
8575 fi
8576
8577
8578   test -n "$OCAMLC" && break
8579 done
8580
8581 for ac_prog in ocamlopt
8582 do
8583   # Extract the first word of "$ac_prog", so it can be a program name with args.
8584 set dummy $ac_prog; ac_word=$2
8585 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8586 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8587 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8588   echo $ECHO_N "(cached) $ECHO_C" >&6
8589 else
8590   case $OCAMLOPT in
8591   [\\/]* | ?:[\\/]*)
8592   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8593   ;;
8594   *)
8595   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8596 for as_dir in $PATH
8597 do
8598   IFS=$as_save_IFS
8599   test -z "$as_dir" && as_dir=.
8600   for ac_exec_ext in '' $ac_executable_extensions; do
8601   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8602     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8603     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8604     break 2
8605   fi
8606 done
8607 done
8608 IFS=$as_save_IFS
8609
8610   ;;
8611 esac
8612 fi
8613 OCAMLOPT=$ac_cv_path_OCAMLOPT
8614 if test -n "$OCAMLOPT"; then
8615   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8616 echo "${ECHO_T}$OCAMLOPT" >&6; }
8617 else
8618   { echo "$as_me:$LINENO: result: no" >&5
8619 echo "${ECHO_T}no" >&6; }
8620 fi
8621
8622
8623   test -n "$OCAMLOPT" && break
8624 done
8625
8626 for ac_prog in ocamldep
8627 do
8628   # Extract the first word of "$ac_prog", so it can be a program name with args.
8629 set dummy $ac_prog; ac_word=$2
8630 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8631 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8632 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8633   echo $ECHO_N "(cached) $ECHO_C" >&6
8634 else
8635   case $OCAMLDEP in
8636   [\\/]* | ?:[\\/]*)
8637   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8638   ;;
8639   *)
8640   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8641 for as_dir in $PATH
8642 do
8643   IFS=$as_save_IFS
8644   test -z "$as_dir" && as_dir=.
8645   for ac_exec_ext in '' $ac_executable_extensions; do
8646   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8647     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8648     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8649     break 2
8650   fi
8651 done
8652 done
8653 IFS=$as_save_IFS
8654
8655   ;;
8656 esac
8657 fi
8658 OCAMLDEP=$ac_cv_path_OCAMLDEP
8659 if test -n "$OCAMLDEP"; then
8660   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8661 echo "${ECHO_T}$OCAMLDEP" >&6; }
8662 else
8663   { echo "$as_me:$LINENO: result: no" >&5
8664 echo "${ECHO_T}no" >&6; }
8665 fi
8666
8667
8668   test -n "$OCAMLDEP" && break
8669 done
8670
8671 for ac_prog in ocamldoc
8672 do
8673   # Extract the first word of "$ac_prog", so it can be a program name with args.
8674 set dummy $ac_prog; ac_word=$2
8675 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8676 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8677 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8678   echo $ECHO_N "(cached) $ECHO_C" >&6
8679 else
8680   case $OCAMLDOC in
8681   [\\/]* | ?:[\\/]*)
8682   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8683   ;;
8684   *)
8685   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8686 for as_dir in $PATH
8687 do
8688   IFS=$as_save_IFS
8689   test -z "$as_dir" && as_dir=.
8690   for ac_exec_ext in '' $ac_executable_extensions; do
8691   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8692     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8693     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8694     break 2
8695   fi
8696 done
8697 done
8698 IFS=$as_save_IFS
8699
8700   ;;
8701 esac
8702 fi
8703 OCAMLDOC=$ac_cv_path_OCAMLDOC
8704 if test -n "$OCAMLDOC"; then
8705   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8706 echo "${ECHO_T}$OCAMLDOC" >&6; }
8707 else
8708   { echo "$as_me:$LINENO: result: no" >&5
8709 echo "${ECHO_T}no" >&6; }
8710 fi
8711
8712
8713   test -n "$OCAMLDOC" && break
8714 done
8715
8716 for ac_prog in gas as
8717 do
8718   # Extract the first word of "$ac_prog", so it can be a program name with args.
8719 set dummy $ac_prog; ac_word=$2
8720 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8721 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8722 if test "${ac_cv_path_GAS+set}" = set; then
8723   echo $ECHO_N "(cached) $ECHO_C" >&6
8724 else
8725   case $GAS in
8726   [\\/]* | ?:[\\/]*)
8727   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8728   ;;
8729   *)
8730   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8731 for as_dir in $PATH
8732 do
8733   IFS=$as_save_IFS
8734   test -z "$as_dir" && as_dir=.
8735   for ac_exec_ext in '' $ac_executable_extensions; do
8736   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8737     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8738     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8739     break 2
8740   fi
8741 done
8742 done
8743 IFS=$as_save_IFS
8744
8745   ;;
8746 esac
8747 fi
8748 GAS=$ac_cv_path_GAS
8749 if test -n "$GAS"; then
8750   { echo "$as_me:$LINENO: result: $GAS" >&5
8751 echo "${ECHO_T}$GAS" >&6; }
8752 else
8753   { echo "$as_me:$LINENO: result: no" >&5
8754 echo "${ECHO_T}no" >&6; }
8755 fi
8756
8757
8758   test -n "$GAS" && break
8759 done
8760
8761
8762 { echo "$as_me:$LINENO: checking for linker version" >&5
8763 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8764 if test "${llvm_cv_link_version+set}" = set; then
8765   echo $ECHO_N "(cached) $ECHO_C" >&6
8766 else
8767
8768    version_string="$(ld -v 2>&1 | head -1)"
8769
8770    # Check for ld64.
8771    if (echo "$version_string" | grep -q "ld64"); then
8772      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8773    else
8774      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8775    fi
8776
8777 fi
8778 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8779 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8780
8781 cat >>confdefs.h <<_ACEOF
8782 #define HOST_LINK_VERSION "$llvm_cv_link_version"
8783 _ACEOF
8784
8785
8786
8787 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8788 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8789 if test "${llvm_cv_link_use_r+set}" = set; then
8790   echo $ECHO_N "(cached) $ECHO_C" >&6
8791 else
8792    ac_ext=c
8793 ac_cpp='$CPP $CPPFLAGS'
8794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8797
8798   oldcflags="$CFLAGS"
8799   CFLAGS="$CFLAGS -Wl,-R."
8800   cat >conftest.$ac_ext <<_ACEOF
8801 /* confdefs.h.  */
8802 _ACEOF
8803 cat confdefs.h >>conftest.$ac_ext
8804 cat >>conftest.$ac_ext <<_ACEOF
8805 /* end confdefs.h.  */
8806
8807 int
8808 main ()
8809 {
8810
8811   ;
8812   return 0;
8813 }
8814 _ACEOF
8815 rm -f conftest.$ac_objext conftest$ac_exeext
8816 if { (ac_try="$ac_link"
8817 case "(($ac_try" in
8818   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8819   *) ac_try_echo=$ac_try;;
8820 esac
8821 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8822   (eval "$ac_link") 2>conftest.er1
8823   ac_status=$?
8824   grep -v '^ *+' conftest.er1 >conftest.err
8825   rm -f conftest.er1
8826   cat conftest.err >&5
8827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8828   (exit $ac_status); } &&
8829          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8830   { (case "(($ac_try" in
8831   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8832   *) ac_try_echo=$ac_try;;
8833 esac
8834 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8835   (eval "$ac_try") 2>&5
8836   ac_status=$?
8837   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8838   (exit $ac_status); }; } &&
8839          { ac_try='test -s conftest$ac_exeext'
8840   { (case "(($ac_try" in
8841   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8842   *) ac_try_echo=$ac_try;;
8843 esac
8844 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8845   (eval "$ac_try") 2>&5
8846   ac_status=$?
8847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8848   (exit $ac_status); }; }; then
8849   llvm_cv_link_use_r=yes
8850 else
8851   echo "$as_me: failed program was:" >&5
8852 sed 's/^/| /' conftest.$ac_ext >&5
8853
8854         llvm_cv_link_use_r=no
8855 fi
8856
8857 rm -f core conftest.err conftest.$ac_objext \
8858       conftest$ac_exeext conftest.$ac_ext
8859   CFLAGS="$oldcflags"
8860   ac_ext=c
8861 ac_cpp='$CPP $CPPFLAGS'
8862 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8863 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8864 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8865
8866
8867 fi
8868 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8869 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8870 if test "$llvm_cv_link_use_r" = yes ; then
8871
8872 cat >>confdefs.h <<\_ACEOF
8873 #define HAVE_LINK_R 1
8874 _ACEOF
8875
8876   fi
8877
8878
8879 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8880 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8881 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8882   echo $ECHO_N "(cached) $ECHO_C" >&6
8883 else
8884    ac_ext=c
8885 ac_cpp='$CPP $CPPFLAGS'
8886 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8887 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8888 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8889
8890   oldcflags="$CFLAGS"
8891   CFLAGS="$CFLAGS -Wl,-export-dynamic"
8892   cat >conftest.$ac_ext <<_ACEOF
8893 /* confdefs.h.  */
8894 _ACEOF
8895 cat confdefs.h >>conftest.$ac_ext
8896 cat >>conftest.$ac_ext <<_ACEOF
8897 /* end confdefs.h.  */
8898
8899 int
8900 main ()
8901 {
8902
8903   ;
8904   return 0;
8905 }
8906 _ACEOF
8907 rm -f conftest.$ac_objext conftest$ac_exeext
8908 if { (ac_try="$ac_link"
8909 case "(($ac_try" in
8910   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8911   *) ac_try_echo=$ac_try;;
8912 esac
8913 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8914   (eval "$ac_link") 2>conftest.er1
8915   ac_status=$?
8916   grep -v '^ *+' conftest.er1 >conftest.err
8917   rm -f conftest.er1
8918   cat conftest.err >&5
8919   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8920   (exit $ac_status); } &&
8921          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8922   { (case "(($ac_try" in
8923   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8924   *) ac_try_echo=$ac_try;;
8925 esac
8926 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8927   (eval "$ac_try") 2>&5
8928   ac_status=$?
8929   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8930   (exit $ac_status); }; } &&
8931          { ac_try='test -s conftest$ac_exeext'
8932   { (case "(($ac_try" in
8933   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8934   *) ac_try_echo=$ac_try;;
8935 esac
8936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8937   (eval "$ac_try") 2>&5
8938   ac_status=$?
8939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8940   (exit $ac_status); }; }; then
8941   llvm_cv_link_use_export_dynamic=yes
8942 else
8943   echo "$as_me: failed program was:" >&5
8944 sed 's/^/| /' conftest.$ac_ext >&5
8945
8946         llvm_cv_link_use_export_dynamic=no
8947 fi
8948
8949 rm -f core conftest.err conftest.$ac_objext \
8950       conftest$ac_exeext conftest.$ac_ext
8951   CFLAGS="$oldcflags"
8952   ac_ext=c
8953 ac_cpp='$CPP $CPPFLAGS'
8954 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8955 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8956 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8957
8958
8959 fi
8960 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8961 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8962 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8963
8964 cat >>confdefs.h <<\_ACEOF
8965 #define HAVE_LINK_EXPORT_DYNAMIC 1
8966 _ACEOF
8967
8968   fi
8969
8970
8971 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8972 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8973 if test "${llvm_cv_link_use_version_script+set}" = set; then
8974   echo $ECHO_N "(cached) $ECHO_C" >&6
8975 else
8976    ac_ext=c
8977 ac_cpp='$CPP $CPPFLAGS'
8978 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8979 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8980 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8981
8982   oldcflags="$CFLAGS"
8983
8984   # The following code is from the autoconf manual,
8985   # "11.13: Limitations of Usual Tools".
8986   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
8987   # Use mktemp if possible; otherwise fall back on mkdir,
8988   # with $RANDOM to make collisions less likely.
8989   : ${TMPDIR=/tmp}
8990   {
8991     tmp=`
8992       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
8993     ` &&
8994     test -n "$tmp" && test -d "$tmp"
8995   } || {
8996     tmp=$TMPDIR/foo$$-$RANDOM
8997     (umask 077 && mkdir "$tmp")
8998   } || exit $?
8999
9000   echo "{" > "$tmp/export.map"
9001   echo "  global: main;" >> "$tmp/export.map"
9002   echo "  local: *;" >> "$tmp/export.map"
9003   echo "};" >> "$tmp/export.map"
9004
9005   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
9006   cat >conftest.$ac_ext <<_ACEOF
9007 /* confdefs.h.  */
9008 _ACEOF
9009 cat confdefs.h >>conftest.$ac_ext
9010 cat >>conftest.$ac_ext <<_ACEOF
9011 /* end confdefs.h.  */
9012
9013 int
9014 main ()
9015 {
9016
9017   ;
9018   return 0;
9019 }
9020 _ACEOF
9021 rm -f conftest.$ac_objext conftest$ac_exeext
9022 if { (ac_try="$ac_link"
9023 case "(($ac_try" in
9024   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9025   *) ac_try_echo=$ac_try;;
9026 esac
9027 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9028   (eval "$ac_link") 2>conftest.er1
9029   ac_status=$?
9030   grep -v '^ *+' conftest.er1 >conftest.err
9031   rm -f conftest.er1
9032   cat conftest.err >&5
9033   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9034   (exit $ac_status); } &&
9035          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9036   { (case "(($ac_try" in
9037   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9038   *) ac_try_echo=$ac_try;;
9039 esac
9040 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9041   (eval "$ac_try") 2>&5
9042   ac_status=$?
9043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9044   (exit $ac_status); }; } &&
9045          { ac_try='test -s conftest$ac_exeext'
9046   { (case "(($ac_try" in
9047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9048   *) ac_try_echo=$ac_try;;
9049 esac
9050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9051   (eval "$ac_try") 2>&5
9052   ac_status=$?
9053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9054   (exit $ac_status); }; }; then
9055   llvm_cv_link_use_version_script=yes
9056 else
9057   echo "$as_me: failed program was:" >&5
9058 sed 's/^/| /' conftest.$ac_ext >&5
9059
9060         llvm_cv_link_use_version_script=no
9061 fi
9062
9063 rm -f core conftest.err conftest.$ac_objext \
9064       conftest$ac_exeext conftest.$ac_ext
9065   rm "$tmp/export.map"
9066   rmdir "$tmp"
9067   CFLAGS="$oldcflags"
9068   ac_ext=c
9069 ac_cpp='$CPP $CPPFLAGS'
9070 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9071 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9072 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9073
9074
9075 fi
9076 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9077 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9078 if test "$llvm_cv_link_use_version_script" = yes ; then
9079   HAVE_LINK_VERSION_SCRIPT=1
9080
9081   fi
9082
9083
9084
9085
9086 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9087 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9088 if test "${ac_cv_c_const+set}" = set; then
9089   echo $ECHO_N "(cached) $ECHO_C" >&6
9090 else
9091   cat >conftest.$ac_ext <<_ACEOF
9092 /* confdefs.h.  */
9093 _ACEOF
9094 cat confdefs.h >>conftest.$ac_ext
9095 cat >>conftest.$ac_ext <<_ACEOF
9096 /* end confdefs.h.  */
9097
9098 int
9099 main ()
9100 {
9101 /* FIXME: Include the comments suggested by Paul. */
9102 #ifndef __cplusplus
9103   /* Ultrix mips cc rejects this.  */
9104   typedef int charset[2];
9105   const charset x;
9106   /* SunOS 4.1.1 cc rejects this.  */
9107   char const *const *ccp;
9108   char **p;
9109   /* NEC SVR4.0.2 mips cc rejects this.  */
9110   struct point {int x, y;};
9111   static struct point const zero = {0,0};
9112   /* AIX XL C 1.02.0.0 rejects this.
9113      It does not let you subtract one const X* pointer from another in
9114      an arm of an if-expression whose if-part is not a constant
9115      expression */
9116   const char *g = "string";
9117   ccp = &g + (g ? g-g : 0);
9118   /* HPUX 7.0 cc rejects these. */
9119   ++ccp;
9120   p = (char**) ccp;
9121   ccp = (char const *const *) p;
9122   { /* SCO 3.2v4 cc rejects this.  */
9123     char *t;
9124     char const *s = 0 ? (char *) 0 : (char const *) 0;
9125
9126     *t++ = 0;
9127     if (s) return 0;
9128   }
9129   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9130     int x[] = {25, 17};
9131     const int *foo = &x[0];
9132     ++foo;
9133   }
9134   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9135     typedef const int *iptr;
9136     iptr p = 0;
9137     ++p;
9138   }
9139   { /* AIX XL C 1.02.0.0 rejects this saying
9140        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9141     struct s { int j; const int *ap[3]; };
9142     struct s *b; b->j = 5;
9143   }
9144   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9145     const int foo = 10;
9146     if (!foo) return 0;
9147   }
9148   return !x[0] && !zero.x;
9149 #endif
9150
9151   ;
9152   return 0;
9153 }
9154 _ACEOF
9155 rm -f conftest.$ac_objext
9156 if { (ac_try="$ac_compile"
9157 case "(($ac_try" in
9158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9159   *) ac_try_echo=$ac_try;;
9160 esac
9161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9162   (eval "$ac_compile") 2>conftest.er1
9163   ac_status=$?
9164   grep -v '^ *+' conftest.er1 >conftest.err
9165   rm -f conftest.er1
9166   cat conftest.err >&5
9167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9168   (exit $ac_status); } &&
9169          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9170   { (case "(($ac_try" in
9171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9172   *) ac_try_echo=$ac_try;;
9173 esac
9174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9175   (eval "$ac_try") 2>&5
9176   ac_status=$?
9177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9178   (exit $ac_status); }; } &&
9179          { ac_try='test -s conftest.$ac_objext'
9180   { (case "(($ac_try" in
9181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9182   *) ac_try_echo=$ac_try;;
9183 esac
9184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9185   (eval "$ac_try") 2>&5
9186   ac_status=$?
9187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9188   (exit $ac_status); }; }; then
9189   ac_cv_c_const=yes
9190 else
9191   echo "$as_me: failed program was:" >&5
9192 sed 's/^/| /' conftest.$ac_ext >&5
9193
9194         ac_cv_c_const=no
9195 fi
9196
9197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9198 fi
9199 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9200 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9201 if test $ac_cv_c_const = no; then
9202
9203 cat >>confdefs.h <<\_ACEOF
9204 #define const
9205 _ACEOF
9206
9207 fi
9208
9209
9210
9211
9212
9213
9214 ac_header_dirent=no
9215 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9216   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9217 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9218 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9220   echo $ECHO_N "(cached) $ECHO_C" >&6
9221 else
9222   cat >conftest.$ac_ext <<_ACEOF
9223 /* confdefs.h.  */
9224 _ACEOF
9225 cat confdefs.h >>conftest.$ac_ext
9226 cat >>conftest.$ac_ext <<_ACEOF
9227 /* end confdefs.h.  */
9228 #include <sys/types.h>
9229 #include <$ac_hdr>
9230
9231 int
9232 main ()
9233 {
9234 if ((DIR *) 0)
9235 return 0;
9236   ;
9237   return 0;
9238 }
9239 _ACEOF
9240 rm -f conftest.$ac_objext
9241 if { (ac_try="$ac_compile"
9242 case "(($ac_try" in
9243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9244   *) ac_try_echo=$ac_try;;
9245 esac
9246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9247   (eval "$ac_compile") 2>conftest.er1
9248   ac_status=$?
9249   grep -v '^ *+' conftest.er1 >conftest.err
9250   rm -f conftest.er1
9251   cat conftest.err >&5
9252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9253   (exit $ac_status); } &&
9254          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9255   { (case "(($ac_try" in
9256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9257   *) ac_try_echo=$ac_try;;
9258 esac
9259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9260   (eval "$ac_try") 2>&5
9261   ac_status=$?
9262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9263   (exit $ac_status); }; } &&
9264          { ac_try='test -s conftest.$ac_objext'
9265   { (case "(($ac_try" in
9266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9267   *) ac_try_echo=$ac_try;;
9268 esac
9269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9270   (eval "$ac_try") 2>&5
9271   ac_status=$?
9272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9273   (exit $ac_status); }; }; then
9274   eval "$as_ac_Header=yes"
9275 else
9276   echo "$as_me: failed program was:" >&5
9277 sed 's/^/| /' conftest.$ac_ext >&5
9278
9279         eval "$as_ac_Header=no"
9280 fi
9281
9282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9283 fi
9284 ac_res=`eval echo '${'$as_ac_Header'}'`
9285                { echo "$as_me:$LINENO: result: $ac_res" >&5
9286 echo "${ECHO_T}$ac_res" >&6; }
9287 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9288   cat >>confdefs.h <<_ACEOF
9289 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9290 _ACEOF
9291
9292 ac_header_dirent=$ac_hdr; break
9293 fi
9294
9295 done
9296 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9297 if test $ac_header_dirent = dirent.h; then
9298   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9299 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9300 if test "${ac_cv_search_opendir+set}" = set; then
9301   echo $ECHO_N "(cached) $ECHO_C" >&6
9302 else
9303   ac_func_search_save_LIBS=$LIBS
9304 cat >conftest.$ac_ext <<_ACEOF
9305 /* confdefs.h.  */
9306 _ACEOF
9307 cat confdefs.h >>conftest.$ac_ext
9308 cat >>conftest.$ac_ext <<_ACEOF
9309 /* end confdefs.h.  */
9310
9311 /* Override any GCC internal prototype to avoid an error.
9312    Use char because int might match the return type of a GCC
9313    builtin and then its argument prototype would still apply.  */
9314 #ifdef __cplusplus
9315 extern "C"
9316 #endif
9317 char opendir ();
9318 int
9319 main ()
9320 {
9321 return opendir ();
9322   ;
9323   return 0;
9324 }
9325 _ACEOF
9326 for ac_lib in '' dir; do
9327   if test -z "$ac_lib"; then
9328     ac_res="none required"
9329   else
9330     ac_res=-l$ac_lib
9331     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9332   fi
9333   rm -f conftest.$ac_objext conftest$ac_exeext
9334 if { (ac_try="$ac_link"
9335 case "(($ac_try" in
9336   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9337   *) ac_try_echo=$ac_try;;
9338 esac
9339 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9340   (eval "$ac_link") 2>conftest.er1
9341   ac_status=$?
9342   grep -v '^ *+' conftest.er1 >conftest.err
9343   rm -f conftest.er1
9344   cat conftest.err >&5
9345   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9346   (exit $ac_status); } &&
9347          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9348   { (case "(($ac_try" in
9349   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9350   *) ac_try_echo=$ac_try;;
9351 esac
9352 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9353   (eval "$ac_try") 2>&5
9354   ac_status=$?
9355   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9356   (exit $ac_status); }; } &&
9357          { ac_try='test -s conftest$ac_exeext'
9358   { (case "(($ac_try" in
9359   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9360   *) ac_try_echo=$ac_try;;
9361 esac
9362 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9363   (eval "$ac_try") 2>&5
9364   ac_status=$?
9365   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9366   (exit $ac_status); }; }; then
9367   ac_cv_search_opendir=$ac_res
9368 else
9369   echo "$as_me: failed program was:" >&5
9370 sed 's/^/| /' conftest.$ac_ext >&5
9371
9372
9373 fi
9374
9375 rm -f core conftest.err conftest.$ac_objext \
9376       conftest$ac_exeext
9377   if test "${ac_cv_search_opendir+set}" = set; then
9378   break
9379 fi
9380 done
9381 if test "${ac_cv_search_opendir+set}" = set; then
9382   :
9383 else
9384   ac_cv_search_opendir=no
9385 fi
9386 rm conftest.$ac_ext
9387 LIBS=$ac_func_search_save_LIBS
9388 fi
9389 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9390 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9391 ac_res=$ac_cv_search_opendir
9392 if test "$ac_res" != no; then
9393   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9394
9395 fi
9396
9397 else
9398   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9399 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9400 if test "${ac_cv_search_opendir+set}" = set; then
9401   echo $ECHO_N "(cached) $ECHO_C" >&6
9402 else
9403   ac_func_search_save_LIBS=$LIBS
9404 cat >conftest.$ac_ext <<_ACEOF
9405 /* confdefs.h.  */
9406 _ACEOF
9407 cat confdefs.h >>conftest.$ac_ext
9408 cat >>conftest.$ac_ext <<_ACEOF
9409 /* end confdefs.h.  */
9410
9411 /* Override any GCC internal prototype to avoid an error.
9412    Use char because int might match the return type of a GCC
9413    builtin and then its argument prototype would still apply.  */
9414 #ifdef __cplusplus
9415 extern "C"
9416 #endif
9417 char opendir ();
9418 int
9419 main ()
9420 {
9421 return opendir ();
9422   ;
9423   return 0;
9424 }
9425 _ACEOF
9426 for ac_lib in '' x; do
9427   if test -z "$ac_lib"; then
9428     ac_res="none required"
9429   else
9430     ac_res=-l$ac_lib
9431     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9432   fi
9433   rm -f conftest.$ac_objext conftest$ac_exeext
9434 if { (ac_try="$ac_link"
9435 case "(($ac_try" in
9436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9437   *) ac_try_echo=$ac_try;;
9438 esac
9439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9440   (eval "$ac_link") 2>conftest.er1
9441   ac_status=$?
9442   grep -v '^ *+' conftest.er1 >conftest.err
9443   rm -f conftest.er1
9444   cat conftest.err >&5
9445   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9446   (exit $ac_status); } &&
9447          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9448   { (case "(($ac_try" in
9449   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9450   *) ac_try_echo=$ac_try;;
9451 esac
9452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9453   (eval "$ac_try") 2>&5
9454   ac_status=$?
9455   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9456   (exit $ac_status); }; } &&
9457          { ac_try='test -s conftest$ac_exeext'
9458   { (case "(($ac_try" in
9459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9460   *) ac_try_echo=$ac_try;;
9461 esac
9462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9463   (eval "$ac_try") 2>&5
9464   ac_status=$?
9465   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9466   (exit $ac_status); }; }; then
9467   ac_cv_search_opendir=$ac_res
9468 else
9469   echo "$as_me: failed program was:" >&5
9470 sed 's/^/| /' conftest.$ac_ext >&5
9471
9472
9473 fi
9474
9475 rm -f core conftest.err conftest.$ac_objext \
9476       conftest$ac_exeext
9477   if test "${ac_cv_search_opendir+set}" = set; then
9478   break
9479 fi
9480 done
9481 if test "${ac_cv_search_opendir+set}" = set; then
9482   :
9483 else
9484   ac_cv_search_opendir=no
9485 fi
9486 rm conftest.$ac_ext
9487 LIBS=$ac_func_search_save_LIBS
9488 fi
9489 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9490 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9491 ac_res=$ac_cv_search_opendir
9492 if test "$ac_res" != no; then
9493   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9494
9495 fi
9496
9497 fi
9498
9499
9500 for ac_header in dlfcn.h
9501 do
9502 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9503 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9504   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9505 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9506 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9507   echo $ECHO_N "(cached) $ECHO_C" >&6
9508 fi
9509 ac_res=`eval echo '${'$as_ac_Header'}'`
9510                { echo "$as_me:$LINENO: result: $ac_res" >&5
9511 echo "${ECHO_T}$ac_res" >&6; }
9512 else
9513   # Is the header compilable?
9514 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9515 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9516 cat >conftest.$ac_ext <<_ACEOF
9517 /* confdefs.h.  */
9518 _ACEOF
9519 cat confdefs.h >>conftest.$ac_ext
9520 cat >>conftest.$ac_ext <<_ACEOF
9521 /* end confdefs.h.  */
9522 $ac_includes_default
9523 #include <$ac_header>
9524 _ACEOF
9525 rm -f conftest.$ac_objext
9526 if { (ac_try="$ac_compile"
9527 case "(($ac_try" in
9528   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9529   *) ac_try_echo=$ac_try;;
9530 esac
9531 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9532   (eval "$ac_compile") 2>conftest.er1
9533   ac_status=$?
9534   grep -v '^ *+' conftest.er1 >conftest.err
9535   rm -f conftest.er1
9536   cat conftest.err >&5
9537   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9538   (exit $ac_status); } &&
9539          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9540   { (case "(($ac_try" in
9541   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9542   *) ac_try_echo=$ac_try;;
9543 esac
9544 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9545   (eval "$ac_try") 2>&5
9546   ac_status=$?
9547   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9548   (exit $ac_status); }; } &&
9549          { ac_try='test -s conftest.$ac_objext'
9550   { (case "(($ac_try" in
9551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9552   *) ac_try_echo=$ac_try;;
9553 esac
9554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9555   (eval "$ac_try") 2>&5
9556   ac_status=$?
9557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9558   (exit $ac_status); }; }; then
9559   ac_header_compiler=yes
9560 else
9561   echo "$as_me: failed program was:" >&5
9562 sed 's/^/| /' conftest.$ac_ext >&5
9563
9564         ac_header_compiler=no
9565 fi
9566
9567 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9568 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9569 echo "${ECHO_T}$ac_header_compiler" >&6; }
9570
9571 # Is the header present?
9572 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9573 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9574 cat >conftest.$ac_ext <<_ACEOF
9575 /* confdefs.h.  */
9576 _ACEOF
9577 cat confdefs.h >>conftest.$ac_ext
9578 cat >>conftest.$ac_ext <<_ACEOF
9579 /* end confdefs.h.  */
9580 #include <$ac_header>
9581 _ACEOF
9582 if { (ac_try="$ac_cpp conftest.$ac_ext"
9583 case "(($ac_try" in
9584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9585   *) ac_try_echo=$ac_try;;
9586 esac
9587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9588   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9589   ac_status=$?
9590   grep -v '^ *+' conftest.er1 >conftest.err
9591   rm -f conftest.er1
9592   cat conftest.err >&5
9593   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9594   (exit $ac_status); } >/dev/null; then
9595   if test -s conftest.err; then
9596     ac_cpp_err=$ac_c_preproc_warn_flag
9597     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9598   else
9599     ac_cpp_err=
9600   fi
9601 else
9602   ac_cpp_err=yes
9603 fi
9604 if test -z "$ac_cpp_err"; then
9605   ac_header_preproc=yes
9606 else
9607   echo "$as_me: failed program was:" >&5
9608 sed 's/^/| /' conftest.$ac_ext >&5
9609
9610   ac_header_preproc=no
9611 fi
9612
9613 rm -f conftest.err conftest.$ac_ext
9614 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9615 echo "${ECHO_T}$ac_header_preproc" >&6; }
9616
9617 # So?  What about this header?
9618 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9619   yes:no: )
9620     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9621 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9622     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9623 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9624     ac_header_preproc=yes
9625     ;;
9626   no:yes:* )
9627     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9628 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9629     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9630 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9631     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9632 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9633     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9634 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9635     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9636 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9637     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9638 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9639     ( cat <<\_ASBOX
9640 ## ----------------------------------- ##
9641 ## Report this to llvmbugs@cs.uiuc.edu ##
9642 ## ----------------------------------- ##
9643 _ASBOX
9644      ) | sed "s/^/$as_me: WARNING:     /" >&2
9645     ;;
9646 esac
9647 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9648 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9649 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9650   echo $ECHO_N "(cached) $ECHO_C" >&6
9651 else
9652   eval "$as_ac_Header=\$ac_header_preproc"
9653 fi
9654 ac_res=`eval echo '${'$as_ac_Header'}'`
9655                { echo "$as_me:$LINENO: result: $ac_res" >&5
9656 echo "${ECHO_T}$ac_res" >&6; }
9657
9658 fi
9659 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9660   cat >>confdefs.h <<_ACEOF
9661 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9662 _ACEOF
9663
9664 fi
9665
9666 done
9667
9668 # Check whether --enable-ltdl-install was given.
9669 if test "${enable_ltdl_install+set}" = set; then
9670   enableval=$enable_ltdl_install;
9671 fi
9672
9673
9674
9675
9676 if test x"${enable_ltdl_install-no}" != xno; then
9677   INSTALL_LTDL_TRUE=
9678   INSTALL_LTDL_FALSE='#'
9679 else
9680   INSTALL_LTDL_TRUE='#'
9681   INSTALL_LTDL_FALSE=
9682 fi
9683
9684
9685
9686 if test x"${enable_ltdl_convenience-no}" != xno; then
9687   CONVENIENCE_LTDL_TRUE=
9688   CONVENIENCE_LTDL_FALSE='#'
9689 else
9690   CONVENIENCE_LTDL_TRUE='#'
9691   CONVENIENCE_LTDL_FALSE=
9692 fi
9693
9694
9695 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9696 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9697 library_names_spec=
9698 libname_spec='lib$name'
9699 soname_spec=
9700 shrext_cmds=".so"
9701 postinstall_cmds=
9702 postuninstall_cmds=
9703 finish_cmds=
9704 finish_eval=
9705 shlibpath_var=
9706 shlibpath_overrides_runpath=unknown
9707 version_type=none
9708 dynamic_linker="$host_os ld.so"
9709 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9710 if test "$GCC" = yes; then
9711   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9712   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9713     # if the path contains ";" then we assume it to be the separator
9714     # otherwise default to the standard path separator (i.e. ":") - it is
9715     # assumed that no part of a normal pathname contains ";" but that should
9716     # okay in the real world where ";" in dirpaths is itself problematic.
9717     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9718   else
9719     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9720   fi
9721 else
9722   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9723 fi
9724 need_lib_prefix=unknown
9725 hardcode_into_libs=no
9726
9727 # when you set need_version to no, make sure it does not cause -set_version
9728 # flags to be left without arguments
9729 need_version=unknown
9730
9731 case $host_os in
9732 aix3*)
9733   version_type=linux
9734   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9735   shlibpath_var=LIBPATH
9736
9737   # AIX 3 has no versioning support, so we append a major version to the name.
9738   soname_spec='${libname}${release}${shared_ext}$major'
9739   ;;
9740
9741 aix4* | aix5*)
9742   version_type=linux
9743   need_lib_prefix=no
9744   need_version=no
9745   hardcode_into_libs=yes
9746   if test "$host_cpu" = ia64; then
9747     # AIX 5 supports IA64
9748     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9749     shlibpath_var=LD_LIBRARY_PATH
9750   else
9751     # With GCC up to 2.95.x, collect2 would create an import file
9752     # for dependence libraries.  The import file would start with
9753     # the line `#! .'.  This would cause the generated library to
9754     # depend on `.', always an invalid library.  This was fixed in
9755     # development snapshots of GCC prior to 3.0.
9756     case $host_os in
9757       aix4 | aix4.[01] | aix4.[01].*)
9758       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9759            echo ' yes '
9760            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9761         :
9762       else
9763         can_build_shared=no
9764       fi
9765       ;;
9766     esac
9767     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9768     # soname into executable. Probably we can add versioning support to
9769     # collect2, so additional links can be useful in future.
9770     if test "$aix_use_runtimelinking" = yes; then
9771       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9772       # instead of lib<name>.a to let people know that these are not
9773       # typical AIX shared libraries.
9774       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9775     else
9776       # We preserve .a as extension for shared libraries through AIX4.2
9777       # and later when we are not doing run time linking.
9778       library_names_spec='${libname}${release}.a $libname.a'
9779       soname_spec='${libname}${release}${shared_ext}$major'
9780     fi
9781     shlibpath_var=LIBPATH
9782   fi
9783   ;;
9784
9785 amigaos*)
9786   library_names_spec='$libname.ixlibrary $libname.a'
9787   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9788   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'
9789   ;;
9790
9791 beos*)
9792   library_names_spec='${libname}${shared_ext}'
9793   dynamic_linker="$host_os ld.so"
9794   shlibpath_var=LIBRARY_PATH
9795   ;;
9796
9797 bsdi[45]*)
9798   version_type=linux
9799   need_version=no
9800   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9801   soname_spec='${libname}${release}${shared_ext}$major'
9802   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9803   shlibpath_var=LD_LIBRARY_PATH
9804   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9805   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9806   # the default ld.so.conf also contains /usr/contrib/lib and
9807   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9808   # libtool to hard-code these into programs
9809   ;;
9810
9811 cygwin* | mingw* | pw32*)
9812   version_type=windows
9813   shrext_cmds=".dll"
9814   need_version=no
9815   need_lib_prefix=no
9816
9817   case $GCC,$host_os in
9818   yes,cygwin* | yes,mingw* | yes,pw32*)
9819     library_names_spec='$libname.dll.a'
9820     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9821     postinstall_cmds='base_file=`basename \${file}`~
9822       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9823       dldir=$destdir/`dirname \$dlpath`~
9824       test -d \$dldir || mkdir -p \$dldir~
9825       $install_prog $dir/$dlname \$dldir/$dlname~
9826       chmod a+x \$dldir/$dlname'
9827     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9828       dlpath=$dir/\$dldll~
9829        $rm \$dlpath'
9830     shlibpath_overrides_runpath=yes
9831
9832     case $host_os in
9833     cygwin*)
9834       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9835       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9836       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9837       ;;
9838     mingw*)
9839       # MinGW DLLs use traditional 'lib' prefix
9840       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9841       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9842       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9843         # It is most probably a Windows format PATH printed by
9844         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9845         # path with ; separators, and with drive letters. We can handle the
9846         # drive letters (cygwin fileutils understands them), so leave them,
9847         # especially as we might pass files found there to a mingw objdump,
9848         # which wouldn't understand a cygwinified path. Ahh.
9849         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9850       else
9851         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9852       fi
9853       ;;
9854     pw32*)
9855       # pw32 DLLs use 'pw' prefix rather than 'lib'
9856       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9857       ;;
9858     esac
9859     ;;
9860
9861   *)
9862     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9863     ;;
9864   esac
9865   dynamic_linker='Win32 ld.exe'
9866   # FIXME: first we should search . and the directory the executable is in
9867   shlibpath_var=PATH
9868   ;;
9869
9870 darwin* | rhapsody*)
9871   dynamic_linker="$host_os dyld"
9872   version_type=darwin
9873   need_lib_prefix=no
9874   need_version=no
9875   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9876   soname_spec='${libname}${release}${major}$shared_ext'
9877   shlibpath_overrides_runpath=yes
9878   shlibpath_var=DYLD_LIBRARY_PATH
9879   shrext_cmds='.dylib'
9880   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9881   if test "$GCC" = yes; then
9882     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"`
9883   else
9884     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9885   fi
9886   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9887   ;;
9888
9889 dgux*)
9890   version_type=linux
9891   need_lib_prefix=no
9892   need_version=no
9893   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9894   soname_spec='${libname}${release}${shared_ext}$major'
9895   shlibpath_var=LD_LIBRARY_PATH
9896   ;;
9897
9898 freebsd1*)
9899   dynamic_linker=no
9900   ;;
9901
9902 kfreebsd*-gnu)
9903   version_type=linux
9904   need_lib_prefix=no
9905   need_version=no
9906   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9907   soname_spec='${libname}${release}${shared_ext}$major'
9908   shlibpath_var=LD_LIBRARY_PATH
9909   shlibpath_overrides_runpath=no
9910   hardcode_into_libs=yes
9911   dynamic_linker='GNU ld.so'
9912   ;;
9913
9914 freebsd* | dragonfly*)
9915   # DragonFly does not have aout.  When/if they implement a new
9916   # versioning mechanism, adjust this.
9917   if test -x /usr/bin/objformat; then
9918     objformat=`/usr/bin/objformat`
9919   else
9920     case $host_os in
9921     freebsd[123]*) objformat=aout ;;
9922     *) objformat=elf ;;
9923     esac
9924   fi
9925   version_type=freebsd-$objformat
9926   case $version_type in
9927     freebsd-elf*)
9928       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9929       need_version=no
9930       need_lib_prefix=no
9931       ;;
9932     freebsd-*)
9933       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9934       need_version=yes
9935       ;;
9936   esac
9937   shlibpath_var=LD_LIBRARY_PATH
9938   case $host_os in
9939   freebsd2*)
9940     shlibpath_overrides_runpath=yes
9941     ;;
9942   freebsd3.[01]* | freebsdelf3.[01]*)
9943     shlibpath_overrides_runpath=yes
9944     hardcode_into_libs=yes
9945     ;;
9946   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9947   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9948     shlibpath_overrides_runpath=no
9949     hardcode_into_libs=yes
9950     ;;
9951   freebsd*) # from 4.6 on
9952     shlibpath_overrides_runpath=yes
9953     hardcode_into_libs=yes
9954     ;;
9955   esac
9956   ;;
9957
9958 gnu*)
9959   version_type=linux
9960   need_lib_prefix=no
9961   need_version=no
9962   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9963   soname_spec='${libname}${release}${shared_ext}$major'
9964   shlibpath_var=LD_LIBRARY_PATH
9965   hardcode_into_libs=yes
9966   ;;
9967
9968 hpux9* | hpux10* | hpux11*)
9969   # Give a soname corresponding to the major version so that dld.sl refuses to
9970   # link against other versions.
9971   version_type=sunos
9972   need_lib_prefix=no
9973   need_version=no
9974   case $host_cpu in
9975   ia64*)
9976     shrext_cmds='.so'
9977     hardcode_into_libs=yes
9978     dynamic_linker="$host_os dld.so"
9979     shlibpath_var=LD_LIBRARY_PATH
9980     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9981     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9982     soname_spec='${libname}${release}${shared_ext}$major'
9983     if test "X$HPUX_IA64_MODE" = X32; then
9984       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
9985     else
9986       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
9987     fi
9988     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
9989     ;;
9990    hppa*64*)
9991      shrext_cmds='.sl'
9992      hardcode_into_libs=yes
9993      dynamic_linker="$host_os dld.sl"
9994      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
9995      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9996      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9997      soname_spec='${libname}${release}${shared_ext}$major'
9998      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
9999      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10000      ;;
10001    *)
10002     shrext_cmds='.sl'
10003     dynamic_linker="$host_os dld.sl"
10004     shlibpath_var=SHLIB_PATH
10005     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10006     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10007     soname_spec='${libname}${release}${shared_ext}$major'
10008     ;;
10009   esac
10010   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10011   postinstall_cmds='chmod 555 $lib'
10012   ;;
10013
10014 interix3*)
10015   version_type=linux
10016   need_lib_prefix=no
10017   need_version=no
10018   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10019   soname_spec='${libname}${release}${shared_ext}$major'
10020   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10021   shlibpath_var=LD_LIBRARY_PATH
10022   shlibpath_overrides_runpath=no
10023   hardcode_into_libs=yes
10024   ;;
10025
10026 irix5* | irix6* | nonstopux*)
10027   case $host_os in
10028     nonstopux*) version_type=nonstopux ;;
10029     *)
10030         if test "$lt_cv_prog_gnu_ld" = yes; then
10031                 version_type=linux
10032         else
10033                 version_type=irix
10034         fi ;;
10035   esac
10036   need_lib_prefix=no
10037   need_version=no
10038   soname_spec='${libname}${release}${shared_ext}$major'
10039   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10040   case $host_os in
10041   irix5* | nonstopux*)
10042     libsuff= shlibsuff=
10043     ;;
10044   *)
10045     case $LD in # libtool.m4 will add one of these switches to LD
10046     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10047       libsuff= shlibsuff= libmagic=32-bit;;
10048     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10049       libsuff=32 shlibsuff=N32 libmagic=N32;;
10050     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10051       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10052     *) libsuff= shlibsuff= libmagic=never-match;;
10053     esac
10054     ;;
10055   esac
10056   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10057   shlibpath_overrides_runpath=no
10058   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10059   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10060   hardcode_into_libs=yes
10061   ;;
10062
10063 # No shared lib support for Linux oldld, aout, or coff.
10064 linux*oldld* | linux*aout* | linux*coff*)
10065   dynamic_linker=no
10066   ;;
10067
10068 # This must be Linux ELF.
10069 linux*)
10070   version_type=linux
10071   need_lib_prefix=no
10072   need_version=no
10073   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10074   soname_spec='${libname}${release}${shared_ext}$major'
10075   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10076   shlibpath_var=LD_LIBRARY_PATH
10077   shlibpath_overrides_runpath=no
10078   # This implies no fast_install, which is unacceptable.
10079   # Some rework will be needed to allow for fast_install
10080   # before this can be enabled.
10081   hardcode_into_libs=yes
10082
10083   # Append ld.so.conf contents to the search path
10084   if test -f /etc/ld.so.conf; then
10085     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' ' '`
10086     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10087   fi
10088
10089   # We used to test for /lib/ld.so.1 and disable shared libraries on
10090   # powerpc, because MkLinux only supported shared libraries with the
10091   # GNU dynamic linker.  Since this was broken with cross compilers,
10092   # most powerpc-linux boxes support dynamic linking these days and
10093   # people can always --disable-shared, the test was removed, and we
10094   # assume the GNU/Linux dynamic linker is in use.
10095   dynamic_linker='GNU/Linux ld.so'
10096   ;;
10097
10098 knetbsd*-gnu)
10099   version_type=linux
10100   need_lib_prefix=no
10101   need_version=no
10102   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10103   soname_spec='${libname}${release}${shared_ext}$major'
10104   shlibpath_var=LD_LIBRARY_PATH
10105   shlibpath_overrides_runpath=no
10106   hardcode_into_libs=yes
10107   dynamic_linker='GNU ld.so'
10108   ;;
10109
10110 netbsd*)
10111   version_type=sunos
10112   need_lib_prefix=no
10113   need_version=no
10114   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10115     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10116     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10117     dynamic_linker='NetBSD (a.out) ld.so'
10118   else
10119     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10120     soname_spec='${libname}${release}${shared_ext}$major'
10121     dynamic_linker='NetBSD ld.elf_so'
10122   fi
10123   shlibpath_var=LD_LIBRARY_PATH
10124   shlibpath_overrides_runpath=yes
10125   hardcode_into_libs=yes
10126   ;;
10127
10128 newsos6)
10129   version_type=linux
10130   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10131   shlibpath_var=LD_LIBRARY_PATH
10132   shlibpath_overrides_runpath=yes
10133   ;;
10134
10135 nto-qnx*)
10136   version_type=linux
10137   need_lib_prefix=no
10138   need_version=no
10139   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10140   soname_spec='${libname}${release}${shared_ext}$major'
10141   shlibpath_var=LD_LIBRARY_PATH
10142   shlibpath_overrides_runpath=yes
10143   ;;
10144
10145 openbsd*)
10146   version_type=sunos
10147   sys_lib_dlsearch_path_spec="/usr/lib"
10148   need_lib_prefix=no
10149   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10150   case $host_os in
10151     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10152     *)                         need_version=no  ;;
10153   esac
10154   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10155   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10156   shlibpath_var=LD_LIBRARY_PATH
10157   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10158     case $host_os in
10159       openbsd2.[89] | openbsd2.[89].*)
10160         shlibpath_overrides_runpath=no
10161         ;;
10162       *)
10163         shlibpath_overrides_runpath=yes
10164         ;;
10165       esac
10166   else
10167     shlibpath_overrides_runpath=yes
10168   fi
10169   ;;
10170
10171 os2*)
10172   libname_spec='$name'
10173   shrext_cmds=".dll"
10174   need_lib_prefix=no
10175   library_names_spec='$libname${shared_ext} $libname.a'
10176   dynamic_linker='OS/2 ld.exe'
10177   shlibpath_var=LIBPATH
10178   ;;
10179
10180 osf3* | osf4* | osf5*)
10181   version_type=osf
10182   need_lib_prefix=no
10183   need_version=no
10184   soname_spec='${libname}${release}${shared_ext}$major'
10185   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10186   shlibpath_var=LD_LIBRARY_PATH
10187   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10188   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10189   ;;
10190
10191 solaris*)
10192   version_type=linux
10193   need_lib_prefix=no
10194   need_version=no
10195   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10196   soname_spec='${libname}${release}${shared_ext}$major'
10197   shlibpath_var=LD_LIBRARY_PATH
10198   shlibpath_overrides_runpath=yes
10199   hardcode_into_libs=yes
10200   # ldd complains unless libraries are executable
10201   postinstall_cmds='chmod +x $lib'
10202   ;;
10203
10204 sunos4*)
10205   version_type=sunos
10206   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10207   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10208   shlibpath_var=LD_LIBRARY_PATH
10209   shlibpath_overrides_runpath=yes
10210   if test "$with_gnu_ld" = yes; then
10211     need_lib_prefix=no
10212   fi
10213   need_version=yes
10214   ;;
10215
10216 sysv4 | sysv4.3*)
10217   version_type=linux
10218   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10219   soname_spec='${libname}${release}${shared_ext}$major'
10220   shlibpath_var=LD_LIBRARY_PATH
10221   case $host_vendor in
10222     sni)
10223       shlibpath_overrides_runpath=no
10224       need_lib_prefix=no
10225       export_dynamic_flag_spec='${wl}-Blargedynsym'
10226       runpath_var=LD_RUN_PATH
10227       ;;
10228     siemens)
10229       need_lib_prefix=no
10230       ;;
10231     motorola)
10232       need_lib_prefix=no
10233       need_version=no
10234       shlibpath_overrides_runpath=no
10235       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10236       ;;
10237   esac
10238   ;;
10239
10240 sysv4*MP*)
10241   if test -d /usr/nec ;then
10242     version_type=linux
10243     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10244     soname_spec='$libname${shared_ext}.$major'
10245     shlibpath_var=LD_LIBRARY_PATH
10246   fi
10247   ;;
10248
10249 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10250   version_type=freebsd-elf
10251   need_lib_prefix=no
10252   need_version=no
10253   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10254   soname_spec='${libname}${release}${shared_ext}$major'
10255   shlibpath_var=LD_LIBRARY_PATH
10256   hardcode_into_libs=yes
10257   if test "$with_gnu_ld" = yes; then
10258     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10259     shlibpath_overrides_runpath=no
10260   else
10261     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10262     shlibpath_overrides_runpath=yes
10263     case $host_os in
10264       sco3.2v5*)
10265         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10266         ;;
10267     esac
10268   fi
10269   sys_lib_dlsearch_path_spec='/usr/lib'
10270   ;;
10271
10272 uts4*)
10273   version_type=linux
10274   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10275   soname_spec='${libname}${release}${shared_ext}$major'
10276   shlibpath_var=LD_LIBRARY_PATH
10277   ;;
10278
10279 *)
10280   dynamic_linker=no
10281   ;;
10282 esac
10283 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10284 echo "${ECHO_T}$dynamic_linker" >&6; }
10285 test "$dynamic_linker" = no && can_build_shared=no
10286
10287 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10288 if test "$GCC" = yes; then
10289   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10290 fi
10291
10292
10293 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10294 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10295 if test "${libltdl_cv_shlibext+set}" = set; then
10296   echo $ECHO_N "(cached) $ECHO_C" >&6
10297 else
10298
10299 module=yes
10300 eval libltdl_cv_shlibext=$shrext_cmds
10301
10302 fi
10303 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10304 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10305 if test -n "$libltdl_cv_shlibext"; then
10306
10307 cat >>confdefs.h <<_ACEOF
10308 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10309 _ACEOF
10310
10311 fi
10312
10313
10314 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10315 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10316 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10317   echo $ECHO_N "(cached) $ECHO_C" >&6
10318 else
10319   libltdl_cv_shlibpath_var="$shlibpath_var"
10320 fi
10321 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10322 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10323 if test -n "$libltdl_cv_shlibpath_var"; then
10324
10325 cat >>confdefs.h <<_ACEOF
10326 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10327 _ACEOF
10328
10329 fi
10330
10331
10332 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10333 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10334 if test "${libltdl_cv_sys_search_path+set}" = set; then
10335   echo $ECHO_N "(cached) $ECHO_C" >&6
10336 else
10337   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10338 fi
10339 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10340 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10341 if test -n "$libltdl_cv_sys_search_path"; then
10342   sys_search_path=
10343   for dir in $libltdl_cv_sys_search_path; do
10344     if test -z "$sys_search_path"; then
10345       sys_search_path="$dir"
10346     else
10347       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10348     fi
10349   done
10350
10351 cat >>confdefs.h <<_ACEOF
10352 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10353 _ACEOF
10354
10355 fi
10356
10357 { echo "$as_me:$LINENO: checking for objdir" >&5
10358 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10359 if test "${libltdl_cv_objdir+set}" = set; then
10360   echo $ECHO_N "(cached) $ECHO_C" >&6
10361 else
10362   libltdl_cv_objdir="$objdir"
10363   if test -n "$objdir"; then
10364     :
10365   else
10366     rm -f .libs 2>/dev/null
10367     mkdir .libs 2>/dev/null
10368     if test -d .libs; then
10369       libltdl_cv_objdir=.libs
10370     else
10371       # MS-DOS does not allow filenames that begin with a dot.
10372       libltdl_cv_objdir=_libs
10373     fi
10374   rmdir .libs 2>/dev/null
10375   fi
10376
10377 fi
10378 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10379 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10380
10381 cat >>confdefs.h <<_ACEOF
10382 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10383 _ACEOF
10384
10385
10386
10387
10388
10389
10390 # Check for command to grab the raw symbol name followed by C symbol from nm.
10391 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10392 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10393 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10394   echo $ECHO_N "(cached) $ECHO_C" >&6
10395 else
10396
10397 # These are sane defaults that work on at least a few old systems.
10398 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10399
10400 # Character class describing NM global symbol codes.
10401 symcode='[BCDEGRST]'
10402
10403 # Regexp to match symbols that can be accessed directly from C.
10404 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10405
10406 # Transform an extracted symbol line into a proper C declaration
10407 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10408
10409 # Transform an extracted symbol line into symbol name and symbol address
10410 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'"
10411
10412 # Define system-specific variables.
10413 case $host_os in
10414 aix*)
10415   symcode='[BCDT]'
10416   ;;
10417 cygwin* | mingw* | pw32*)
10418   symcode='[ABCDGISTW]'
10419   ;;
10420 hpux*) # Its linker distinguishes data from code symbols
10421   if test "$host_cpu" = ia64; then
10422     symcode='[ABCDEGRST]'
10423   fi
10424   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10425   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'"
10426   ;;
10427 linux*)
10428   if test "$host_cpu" = ia64; then
10429     symcode='[ABCDGIRSTW]'
10430     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10431     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'"
10432   fi
10433   ;;
10434 irix* | nonstopux*)
10435   symcode='[BCDEGRST]'
10436   ;;
10437 osf*)
10438   symcode='[BCDEGQRST]'
10439   ;;
10440 solaris*)
10441   symcode='[BDRT]'
10442   ;;
10443 sco3.2v5*)
10444   symcode='[DT]'
10445   ;;
10446 sysv4.2uw2*)
10447   symcode='[DT]'
10448   ;;
10449 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10450   symcode='[ABDT]'
10451   ;;
10452 sysv4)
10453   symcode='[DFNSTU]'
10454   ;;
10455 esac
10456
10457 # Handle CRLF in mingw tool chain
10458 opt_cr=
10459 case $build_os in
10460 mingw*)
10461   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10462   ;;
10463 esac
10464
10465 # If we're using GNU nm, then use its standard symbol codes.
10466 case `$NM -V 2>&1` in
10467 *GNU* | *'with BFD'*)
10468   symcode='[ABCDGIRSTW]' ;;
10469 esac
10470
10471 # Try without a prefix undercore, then with it.
10472 for ac_symprfx in "" "_"; do
10473
10474   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10475   symxfrm="\\1 $ac_symprfx\\2 \\2"
10476
10477   # Write the raw and C identifiers.
10478   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10479
10480   # Check to see that the pipe works correctly.
10481   pipe_works=no
10482
10483   rm -f conftest*
10484   cat > conftest.$ac_ext <<EOF
10485 #ifdef __cplusplus
10486 extern "C" {
10487 #endif
10488 char nm_test_var;
10489 void nm_test_func(){}
10490 #ifdef __cplusplus
10491 }
10492 #endif
10493 int main(){nm_test_var='a';nm_test_func();return(0);}
10494 EOF
10495
10496   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10497   (eval $ac_compile) 2>&5
10498   ac_status=$?
10499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10500   (exit $ac_status); }; then
10501     # Now try to grab the symbols.
10502     nlist=conftest.nm
10503     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10504   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10505   ac_status=$?
10506   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10507   (exit $ac_status); } && test -s "$nlist"; then
10508       # Try sorting and uniquifying the output.
10509       if sort "$nlist" | uniq > "$nlist"T; then
10510         mv -f "$nlist"T "$nlist"
10511       else
10512         rm -f "$nlist"T
10513       fi
10514
10515       # Make sure that we snagged all the symbols we need.
10516       if grep ' nm_test_var$' "$nlist" >/dev/null; then
10517         if grep ' nm_test_func$' "$nlist" >/dev/null; then
10518           cat <<EOF > conftest.$ac_ext
10519 #ifdef __cplusplus
10520 extern "C" {
10521 #endif
10522
10523 EOF
10524           # Now generate the symbol file.
10525           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10526
10527           cat <<EOF >> conftest.$ac_ext
10528 #if defined (__STDC__) && __STDC__
10529 # define lt_ptr_t void *
10530 #else
10531 # define lt_ptr_t char *
10532 # define const
10533 #endif
10534
10535 /* The mapping between symbol names and symbols. */
10536 const struct {
10537   const char *name;
10538   lt_ptr_t address;
10539 }
10540 lt_preloaded_symbols[] =
10541 {
10542 EOF
10543           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10544           cat <<\EOF >> conftest.$ac_ext
10545   {0, (lt_ptr_t) 0}
10546 };
10547
10548 #ifdef __cplusplus
10549 }
10550 #endif
10551 EOF
10552           # Now try linking the two files.
10553           mv conftest.$ac_objext conftstm.$ac_objext
10554           lt_save_LIBS="$LIBS"
10555           lt_save_CFLAGS="$CFLAGS"
10556           LIBS="conftstm.$ac_objext"
10557           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10558           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10559   (eval $ac_link) 2>&5
10560   ac_status=$?
10561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10562   (exit $ac_status); } && test -s conftest${ac_exeext}; then
10563             pipe_works=yes
10564           fi
10565           LIBS="$lt_save_LIBS"
10566           CFLAGS="$lt_save_CFLAGS"
10567         else
10568           echo "cannot find nm_test_func in $nlist" >&5
10569         fi
10570       else
10571         echo "cannot find nm_test_var in $nlist" >&5
10572       fi
10573     else
10574       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10575     fi
10576   else
10577     echo "$progname: failed program was:" >&5
10578     cat conftest.$ac_ext >&5
10579   fi
10580   rm -f conftest* conftst*
10581
10582   # Do not use the global_symbol_pipe unless it works.
10583   if test "$pipe_works" = yes; then
10584     break
10585   else
10586     lt_cv_sys_global_symbol_pipe=
10587   fi
10588 done
10589
10590 fi
10591
10592 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10593   lt_cv_sys_global_symbol_to_cdecl=
10594 fi
10595 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10596   { echo "$as_me:$LINENO: result: failed" >&5
10597 echo "${ECHO_T}failed" >&6; }
10598 else
10599   { echo "$as_me:$LINENO: result: ok" >&5
10600 echo "${ECHO_T}ok" >&6; }
10601 fi
10602
10603
10604 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10605 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10606 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10607   echo $ECHO_N "(cached) $ECHO_C" >&6
10608 else
10609   if test -n "$lt_cv_sys_global_symbol_pipe"; then
10610     libltdl_cv_preloaded_symbols=yes
10611   else
10612     libltdl_cv_preloaded_symbols=no
10613   fi
10614
10615 fi
10616 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10617 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10618 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10619
10620 cat >>confdefs.h <<\_ACEOF
10621 #define HAVE_PRELOADED_SYMBOLS 1
10622 _ACEOF
10623
10624 fi
10625
10626 LIBADD_DL=
10627
10628 ac_ext=c
10629 ac_cpp='$CPP $CPPFLAGS'
10630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10633
10634
10635 { echo "$as_me:$LINENO: checking for shl_load" >&5
10636 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10637 if test "${ac_cv_func_shl_load+set}" = set; then
10638   echo $ECHO_N "(cached) $ECHO_C" >&6
10639 else
10640   cat >conftest.$ac_ext <<_ACEOF
10641 /* confdefs.h.  */
10642 _ACEOF
10643 cat confdefs.h >>conftest.$ac_ext
10644 cat >>conftest.$ac_ext <<_ACEOF
10645 /* end confdefs.h.  */
10646 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10647    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10648 #define shl_load innocuous_shl_load
10649
10650 /* System header to define __stub macros and hopefully few prototypes,
10651     which can conflict with char shl_load (); below.
10652     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10653     <limits.h> exists even on freestanding compilers.  */
10654
10655 #ifdef __STDC__
10656 # include <limits.h>
10657 #else
10658 # include <assert.h>
10659 #endif
10660
10661 #undef shl_load
10662
10663 /* Override any GCC internal prototype to avoid an error.
10664    Use char because int might match the return type of a GCC
10665    builtin and then its argument prototype would still apply.  */
10666 #ifdef __cplusplus
10667 extern "C"
10668 #endif
10669 char shl_load ();
10670 /* The GNU C library defines this for functions which it implements
10671     to always fail with ENOSYS.  Some functions are actually named
10672     something starting with __ and the normal name is an alias.  */
10673 #if defined __stub_shl_load || defined __stub___shl_load
10674 choke me
10675 #endif
10676
10677 int
10678 main ()
10679 {
10680 return shl_load ();
10681   ;
10682   return 0;
10683 }
10684 _ACEOF
10685 rm -f conftest.$ac_objext conftest$ac_exeext
10686 if { (ac_try="$ac_link"
10687 case "(($ac_try" in
10688   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10689   *) ac_try_echo=$ac_try;;
10690 esac
10691 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10692   (eval "$ac_link") 2>conftest.er1
10693   ac_status=$?
10694   grep -v '^ *+' conftest.er1 >conftest.err
10695   rm -f conftest.er1
10696   cat conftest.err >&5
10697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10698   (exit $ac_status); } &&
10699          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10700   { (case "(($ac_try" in
10701   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10702   *) ac_try_echo=$ac_try;;
10703 esac
10704 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10705   (eval "$ac_try") 2>&5
10706   ac_status=$?
10707   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10708   (exit $ac_status); }; } &&
10709          { ac_try='test -s conftest$ac_exeext'
10710   { (case "(($ac_try" in
10711   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10712   *) ac_try_echo=$ac_try;;
10713 esac
10714 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10715   (eval "$ac_try") 2>&5
10716   ac_status=$?
10717   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10718   (exit $ac_status); }; }; then
10719   ac_cv_func_shl_load=yes
10720 else
10721   echo "$as_me: failed program was:" >&5
10722 sed 's/^/| /' conftest.$ac_ext >&5
10723
10724         ac_cv_func_shl_load=no
10725 fi
10726
10727 rm -f core conftest.err conftest.$ac_objext \
10728       conftest$ac_exeext conftest.$ac_ext
10729 fi
10730 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10731 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10732 if test $ac_cv_func_shl_load = yes; then
10733
10734 cat >>confdefs.h <<\_ACEOF
10735 #define HAVE_SHL_LOAD 1
10736 _ACEOF
10737
10738 else
10739   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10740 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10741 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10742   echo $ECHO_N "(cached) $ECHO_C" >&6
10743 else
10744   ac_check_lib_save_LIBS=$LIBS
10745 LIBS="-ldld  $LIBS"
10746 cat >conftest.$ac_ext <<_ACEOF
10747 /* confdefs.h.  */
10748 _ACEOF
10749 cat confdefs.h >>conftest.$ac_ext
10750 cat >>conftest.$ac_ext <<_ACEOF
10751 /* end confdefs.h.  */
10752
10753 /* Override any GCC internal prototype to avoid an error.
10754    Use char because int might match the return type of a GCC
10755    builtin and then its argument prototype would still apply.  */
10756 #ifdef __cplusplus
10757 extern "C"
10758 #endif
10759 char shl_load ();
10760 int
10761 main ()
10762 {
10763 return shl_load ();
10764   ;
10765   return 0;
10766 }
10767 _ACEOF
10768 rm -f conftest.$ac_objext conftest$ac_exeext
10769 if { (ac_try="$ac_link"
10770 case "(($ac_try" in
10771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10772   *) ac_try_echo=$ac_try;;
10773 esac
10774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10775   (eval "$ac_link") 2>conftest.er1
10776   ac_status=$?
10777   grep -v '^ *+' conftest.er1 >conftest.err
10778   rm -f conftest.er1
10779   cat conftest.err >&5
10780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10781   (exit $ac_status); } &&
10782          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10783   { (case "(($ac_try" in
10784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10785   *) ac_try_echo=$ac_try;;
10786 esac
10787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10788   (eval "$ac_try") 2>&5
10789   ac_status=$?
10790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10791   (exit $ac_status); }; } &&
10792          { ac_try='test -s conftest$ac_exeext'
10793   { (case "(($ac_try" in
10794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10795   *) ac_try_echo=$ac_try;;
10796 esac
10797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10798   (eval "$ac_try") 2>&5
10799   ac_status=$?
10800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10801   (exit $ac_status); }; }; then
10802   ac_cv_lib_dld_shl_load=yes
10803 else
10804   echo "$as_me: failed program was:" >&5
10805 sed 's/^/| /' conftest.$ac_ext >&5
10806
10807         ac_cv_lib_dld_shl_load=no
10808 fi
10809
10810 rm -f core conftest.err conftest.$ac_objext \
10811       conftest$ac_exeext conftest.$ac_ext
10812 LIBS=$ac_check_lib_save_LIBS
10813 fi
10814 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10815 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10816 if test $ac_cv_lib_dld_shl_load = yes; then
10817
10818 cat >>confdefs.h <<\_ACEOF
10819 #define HAVE_SHL_LOAD 1
10820 _ACEOF
10821
10822         LIBADD_DL="$LIBADD_DL -ldld"
10823 else
10824   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10825 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10826 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10827   echo $ECHO_N "(cached) $ECHO_C" >&6
10828 else
10829   ac_check_lib_save_LIBS=$LIBS
10830 LIBS="-ldl  $LIBS"
10831 cat >conftest.$ac_ext <<_ACEOF
10832 /* confdefs.h.  */
10833 _ACEOF
10834 cat confdefs.h >>conftest.$ac_ext
10835 cat >>conftest.$ac_ext <<_ACEOF
10836 /* end confdefs.h.  */
10837
10838 /* Override any GCC internal prototype to avoid an error.
10839    Use char because int might match the return type of a GCC
10840    builtin and then its argument prototype would still apply.  */
10841 #ifdef __cplusplus
10842 extern "C"
10843 #endif
10844 char dlopen ();
10845 int
10846 main ()
10847 {
10848 return dlopen ();
10849   ;
10850   return 0;
10851 }
10852 _ACEOF
10853 rm -f conftest.$ac_objext conftest$ac_exeext
10854 if { (ac_try="$ac_link"
10855 case "(($ac_try" in
10856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10857   *) ac_try_echo=$ac_try;;
10858 esac
10859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10860   (eval "$ac_link") 2>conftest.er1
10861   ac_status=$?
10862   grep -v '^ *+' conftest.er1 >conftest.err
10863   rm -f conftest.er1
10864   cat conftest.err >&5
10865   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10866   (exit $ac_status); } &&
10867          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10868   { (case "(($ac_try" in
10869   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10870   *) ac_try_echo=$ac_try;;
10871 esac
10872 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10873   (eval "$ac_try") 2>&5
10874   ac_status=$?
10875   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10876   (exit $ac_status); }; } &&
10877          { ac_try='test -s conftest$ac_exeext'
10878   { (case "(($ac_try" in
10879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10880   *) ac_try_echo=$ac_try;;
10881 esac
10882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10883   (eval "$ac_try") 2>&5
10884   ac_status=$?
10885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10886   (exit $ac_status); }; }; then
10887   ac_cv_lib_dl_dlopen=yes
10888 else
10889   echo "$as_me: failed program was:" >&5
10890 sed 's/^/| /' conftest.$ac_ext >&5
10891
10892         ac_cv_lib_dl_dlopen=no
10893 fi
10894
10895 rm -f core conftest.err conftest.$ac_objext \
10896       conftest$ac_exeext conftest.$ac_ext
10897 LIBS=$ac_check_lib_save_LIBS
10898 fi
10899 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10900 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10901 if test $ac_cv_lib_dl_dlopen = yes; then
10902
10903 cat >>confdefs.h <<\_ACEOF
10904 #define HAVE_LIBDL 1
10905 _ACEOF
10906
10907                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10908 else
10909   cat >conftest.$ac_ext <<_ACEOF
10910 /* confdefs.h.  */
10911 _ACEOF
10912 cat confdefs.h >>conftest.$ac_ext
10913 cat >>conftest.$ac_ext <<_ACEOF
10914 /* end confdefs.h.  */
10915 #if HAVE_DLFCN_H
10916 #  include <dlfcn.h>
10917 #endif
10918
10919 int
10920 main ()
10921 {
10922 dlopen(0, 0);
10923   ;
10924   return 0;
10925 }
10926 _ACEOF
10927 rm -f conftest.$ac_objext conftest$ac_exeext
10928 if { (ac_try="$ac_link"
10929 case "(($ac_try" in
10930   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10931   *) ac_try_echo=$ac_try;;
10932 esac
10933 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10934   (eval "$ac_link") 2>conftest.er1
10935   ac_status=$?
10936   grep -v '^ *+' conftest.er1 >conftest.err
10937   rm -f conftest.er1
10938   cat conftest.err >&5
10939   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10940   (exit $ac_status); } &&
10941          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10942   { (case "(($ac_try" in
10943   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10944   *) ac_try_echo=$ac_try;;
10945 esac
10946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10947   (eval "$ac_try") 2>&5
10948   ac_status=$?
10949   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10950   (exit $ac_status); }; } &&
10951          { ac_try='test -s conftest$ac_exeext'
10952   { (case "(($ac_try" in
10953   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10954   *) ac_try_echo=$ac_try;;
10955 esac
10956 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10957   (eval "$ac_try") 2>&5
10958   ac_status=$?
10959   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10960   (exit $ac_status); }; }; then
10961
10962 cat >>confdefs.h <<\_ACEOF
10963 #define HAVE_LIBDL 1
10964 _ACEOF
10965  libltdl_cv_func_dlopen="yes"
10966 else
10967   echo "$as_me: failed program was:" >&5
10968 sed 's/^/| /' conftest.$ac_ext >&5
10969
10970         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10971 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10972 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10973   echo $ECHO_N "(cached) $ECHO_C" >&6
10974 else
10975   ac_check_lib_save_LIBS=$LIBS
10976 LIBS="-lsvld  $LIBS"
10977 cat >conftest.$ac_ext <<_ACEOF
10978 /* confdefs.h.  */
10979 _ACEOF
10980 cat confdefs.h >>conftest.$ac_ext
10981 cat >>conftest.$ac_ext <<_ACEOF
10982 /* end confdefs.h.  */
10983
10984 /* Override any GCC internal prototype to avoid an error.
10985    Use char because int might match the return type of a GCC
10986    builtin and then its argument prototype would still apply.  */
10987 #ifdef __cplusplus
10988 extern "C"
10989 #endif
10990 char dlopen ();
10991 int
10992 main ()
10993 {
10994 return dlopen ();
10995   ;
10996   return 0;
10997 }
10998 _ACEOF
10999 rm -f conftest.$ac_objext conftest$ac_exeext
11000 if { (ac_try="$ac_link"
11001 case "(($ac_try" in
11002   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11003   *) ac_try_echo=$ac_try;;
11004 esac
11005 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11006   (eval "$ac_link") 2>conftest.er1
11007   ac_status=$?
11008   grep -v '^ *+' conftest.er1 >conftest.err
11009   rm -f conftest.er1
11010   cat conftest.err >&5
11011   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11012   (exit $ac_status); } &&
11013          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11014   { (case "(($ac_try" in
11015   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11016   *) ac_try_echo=$ac_try;;
11017 esac
11018 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11019   (eval "$ac_try") 2>&5
11020   ac_status=$?
11021   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11022   (exit $ac_status); }; } &&
11023          { ac_try='test -s conftest$ac_exeext'
11024   { (case "(($ac_try" in
11025   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11026   *) ac_try_echo=$ac_try;;
11027 esac
11028 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11029   (eval "$ac_try") 2>&5
11030   ac_status=$?
11031   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11032   (exit $ac_status); }; }; then
11033   ac_cv_lib_svld_dlopen=yes
11034 else
11035   echo "$as_me: failed program was:" >&5
11036 sed 's/^/| /' conftest.$ac_ext >&5
11037
11038         ac_cv_lib_svld_dlopen=no
11039 fi
11040
11041 rm -f core conftest.err conftest.$ac_objext \
11042       conftest$ac_exeext conftest.$ac_ext
11043 LIBS=$ac_check_lib_save_LIBS
11044 fi
11045 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11046 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11047 if test $ac_cv_lib_svld_dlopen = yes; then
11048
11049 cat >>confdefs.h <<\_ACEOF
11050 #define HAVE_LIBDL 1
11051 _ACEOF
11052
11053                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11054 else
11055   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11056 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11057 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11058   echo $ECHO_N "(cached) $ECHO_C" >&6
11059 else
11060   ac_check_lib_save_LIBS=$LIBS
11061 LIBS="-ldld  $LIBS"
11062 cat >conftest.$ac_ext <<_ACEOF
11063 /* confdefs.h.  */
11064 _ACEOF
11065 cat confdefs.h >>conftest.$ac_ext
11066 cat >>conftest.$ac_ext <<_ACEOF
11067 /* end confdefs.h.  */
11068
11069 /* Override any GCC internal prototype to avoid an error.
11070    Use char because int might match the return type of a GCC
11071    builtin and then its argument prototype would still apply.  */
11072 #ifdef __cplusplus
11073 extern "C"
11074 #endif
11075 char dld_link ();
11076 int
11077 main ()
11078 {
11079 return dld_link ();
11080   ;
11081   return 0;
11082 }
11083 _ACEOF
11084 rm -f conftest.$ac_objext conftest$ac_exeext
11085 if { (ac_try="$ac_link"
11086 case "(($ac_try" in
11087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11088   *) ac_try_echo=$ac_try;;
11089 esac
11090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11091   (eval "$ac_link") 2>conftest.er1
11092   ac_status=$?
11093   grep -v '^ *+' conftest.er1 >conftest.err
11094   rm -f conftest.er1
11095   cat conftest.err >&5
11096   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11097   (exit $ac_status); } &&
11098          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11099   { (case "(($ac_try" in
11100   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11101   *) ac_try_echo=$ac_try;;
11102 esac
11103 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11104   (eval "$ac_try") 2>&5
11105   ac_status=$?
11106   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11107   (exit $ac_status); }; } &&
11108          { ac_try='test -s conftest$ac_exeext'
11109   { (case "(($ac_try" in
11110   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11111   *) ac_try_echo=$ac_try;;
11112 esac
11113 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11114   (eval "$ac_try") 2>&5
11115   ac_status=$?
11116   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11117   (exit $ac_status); }; }; then
11118   ac_cv_lib_dld_dld_link=yes
11119 else
11120   echo "$as_me: failed program was:" >&5
11121 sed 's/^/| /' conftest.$ac_ext >&5
11122
11123         ac_cv_lib_dld_dld_link=no
11124 fi
11125
11126 rm -f core conftest.err conftest.$ac_objext \
11127       conftest$ac_exeext conftest.$ac_ext
11128 LIBS=$ac_check_lib_save_LIBS
11129 fi
11130 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11131 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11132 if test $ac_cv_lib_dld_dld_link = yes; then
11133
11134 cat >>confdefs.h <<\_ACEOF
11135 #define HAVE_DLD 1
11136 _ACEOF
11137
11138                 LIBADD_DL="$LIBADD_DL -ldld"
11139 else
11140   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11141 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11142 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11143   echo $ECHO_N "(cached) $ECHO_C" >&6
11144 else
11145   cat >conftest.$ac_ext <<_ACEOF
11146 /* confdefs.h.  */
11147 _ACEOF
11148 cat confdefs.h >>conftest.$ac_ext
11149 cat >>conftest.$ac_ext <<_ACEOF
11150 /* end confdefs.h.  */
11151 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11152    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11153 #define _dyld_func_lookup innocuous__dyld_func_lookup
11154
11155 /* System header to define __stub macros and hopefully few prototypes,
11156     which can conflict with char _dyld_func_lookup (); below.
11157     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11158     <limits.h> exists even on freestanding compilers.  */
11159
11160 #ifdef __STDC__
11161 # include <limits.h>
11162 #else
11163 # include <assert.h>
11164 #endif
11165
11166 #undef _dyld_func_lookup
11167
11168 /* Override any GCC internal prototype to avoid an error.
11169    Use char because int might match the return type of a GCC
11170    builtin and then its argument prototype would still apply.  */
11171 #ifdef __cplusplus
11172 extern "C"
11173 #endif
11174 char _dyld_func_lookup ();
11175 /* The GNU C library defines this for functions which it implements
11176     to always fail with ENOSYS.  Some functions are actually named
11177     something starting with __ and the normal name is an alias.  */
11178 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11179 choke me
11180 #endif
11181
11182 int
11183 main ()
11184 {
11185 return _dyld_func_lookup ();
11186   ;
11187   return 0;
11188 }
11189 _ACEOF
11190 rm -f conftest.$ac_objext conftest$ac_exeext
11191 if { (ac_try="$ac_link"
11192 case "(($ac_try" in
11193   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11194   *) ac_try_echo=$ac_try;;
11195 esac
11196 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11197   (eval "$ac_link") 2>conftest.er1
11198   ac_status=$?
11199   grep -v '^ *+' conftest.er1 >conftest.err
11200   rm -f conftest.er1
11201   cat conftest.err >&5
11202   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11203   (exit $ac_status); } &&
11204          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11205   { (case "(($ac_try" in
11206   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11207   *) ac_try_echo=$ac_try;;
11208 esac
11209 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11210   (eval "$ac_try") 2>&5
11211   ac_status=$?
11212   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11213   (exit $ac_status); }; } &&
11214          { ac_try='test -s conftest$ac_exeext'
11215   { (case "(($ac_try" in
11216   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11217   *) ac_try_echo=$ac_try;;
11218 esac
11219 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11220   (eval "$ac_try") 2>&5
11221   ac_status=$?
11222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11223   (exit $ac_status); }; }; then
11224   ac_cv_func__dyld_func_lookup=yes
11225 else
11226   echo "$as_me: failed program was:" >&5
11227 sed 's/^/| /' conftest.$ac_ext >&5
11228
11229         ac_cv_func__dyld_func_lookup=no
11230 fi
11231
11232 rm -f core conftest.err conftest.$ac_objext \
11233       conftest$ac_exeext conftest.$ac_ext
11234 fi
11235 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11236 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11237 if test $ac_cv_func__dyld_func_lookup = yes; then
11238
11239 cat >>confdefs.h <<\_ACEOF
11240 #define HAVE_DYLD 1
11241 _ACEOF
11242
11243 fi
11244
11245
11246 fi
11247
11248
11249 fi
11250
11251
11252 fi
11253
11254 rm -f core conftest.err conftest.$ac_objext \
11255       conftest$ac_exeext conftest.$ac_ext
11256
11257 fi
11258
11259
11260 fi
11261
11262
11263 fi
11264
11265
11266 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11267 then
11268   lt_save_LIBS="$LIBS"
11269   LIBS="$LIBS $LIBADD_DL"
11270
11271 for ac_func in dlerror
11272 do
11273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11274 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11276 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11277   echo $ECHO_N "(cached) $ECHO_C" >&6
11278 else
11279   cat >conftest.$ac_ext <<_ACEOF
11280 /* confdefs.h.  */
11281 _ACEOF
11282 cat confdefs.h >>conftest.$ac_ext
11283 cat >>conftest.$ac_ext <<_ACEOF
11284 /* end confdefs.h.  */
11285 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11286    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11287 #define $ac_func innocuous_$ac_func
11288
11289 /* System header to define __stub macros and hopefully few prototypes,
11290     which can conflict with char $ac_func (); below.
11291     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11292     <limits.h> exists even on freestanding compilers.  */
11293
11294 #ifdef __STDC__
11295 # include <limits.h>
11296 #else
11297 # include <assert.h>
11298 #endif
11299
11300 #undef $ac_func
11301
11302 /* Override any GCC internal prototype to avoid an error.
11303    Use char because int might match the return type of a GCC
11304    builtin and then its argument prototype would still apply.  */
11305 #ifdef __cplusplus
11306 extern "C"
11307 #endif
11308 char $ac_func ();
11309 /* The GNU C library defines this for functions which it implements
11310     to always fail with ENOSYS.  Some functions are actually named
11311     something starting with __ and the normal name is an alias.  */
11312 #if defined __stub_$ac_func || defined __stub___$ac_func
11313 choke me
11314 #endif
11315
11316 int
11317 main ()
11318 {
11319 return $ac_func ();
11320   ;
11321   return 0;
11322 }
11323 _ACEOF
11324 rm -f conftest.$ac_objext conftest$ac_exeext
11325 if { (ac_try="$ac_link"
11326 case "(($ac_try" in
11327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11328   *) ac_try_echo=$ac_try;;
11329 esac
11330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11331   (eval "$ac_link") 2>conftest.er1
11332   ac_status=$?
11333   grep -v '^ *+' conftest.er1 >conftest.err
11334   rm -f conftest.er1
11335   cat conftest.err >&5
11336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11337   (exit $ac_status); } &&
11338          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11339   { (case "(($ac_try" in
11340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11341   *) ac_try_echo=$ac_try;;
11342 esac
11343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11344   (eval "$ac_try") 2>&5
11345   ac_status=$?
11346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11347   (exit $ac_status); }; } &&
11348          { ac_try='test -s conftest$ac_exeext'
11349   { (case "(($ac_try" in
11350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11351   *) ac_try_echo=$ac_try;;
11352 esac
11353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11354   (eval "$ac_try") 2>&5
11355   ac_status=$?
11356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11357   (exit $ac_status); }; }; then
11358   eval "$as_ac_var=yes"
11359 else
11360   echo "$as_me: failed program was:" >&5
11361 sed 's/^/| /' conftest.$ac_ext >&5
11362
11363         eval "$as_ac_var=no"
11364 fi
11365
11366 rm -f core conftest.err conftest.$ac_objext \
11367       conftest$ac_exeext conftest.$ac_ext
11368 fi
11369 ac_res=`eval echo '${'$as_ac_var'}'`
11370                { echo "$as_me:$LINENO: result: $ac_res" >&5
11371 echo "${ECHO_T}$ac_res" >&6; }
11372 if test `eval echo '${'$as_ac_var'}'` = yes; then
11373   cat >>confdefs.h <<_ACEOF
11374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11375 _ACEOF
11376
11377 fi
11378 done
11379
11380   LIBS="$lt_save_LIBS"
11381 fi
11382 ac_ext=c
11383 ac_cpp='$CPP $CPPFLAGS'
11384 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11385 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11386 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11387
11388
11389
11390 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11391 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11392 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11393   echo $ECHO_N "(cached) $ECHO_C" >&6
11394 else
11395   ac_cv_sys_symbol_underscore=no
11396   cat > conftest.$ac_ext <<EOF
11397 void nm_test_func(){}
11398 int main(){nm_test_func;return 0;}
11399 EOF
11400   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11401   (eval $ac_compile) 2>&5
11402   ac_status=$?
11403   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11404   (exit $ac_status); }; then
11405     # Now try to grab the symbols.
11406     ac_nlist=conftest.nm
11407     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11408   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11409   ac_status=$?
11410   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11411   (exit $ac_status); } && test -s "$ac_nlist"; then
11412       # See whether the symbols have a leading underscore.
11413       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11414         ac_cv_sys_symbol_underscore=yes
11415       else
11416         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11417           :
11418         else
11419           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11420         fi
11421       fi
11422     else
11423       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11424     fi
11425   else
11426     echo "configure: failed program was:" >&5
11427     cat conftest.c >&5
11428   fi
11429   rm -rf conftest*
11430
11431 fi
11432 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11433 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11434
11435
11436 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11437   if test x"$libltdl_cv_func_dlopen" = xyes ||
11438      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11439         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11440 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11441 if test "${libltdl_cv_need_uscore+set}" = set; then
11442   echo $ECHO_N "(cached) $ECHO_C" >&6
11443 else
11444   libltdl_cv_need_uscore=unknown
11445           save_LIBS="$LIBS"
11446           LIBS="$LIBS $LIBADD_DL"
11447           if test "$cross_compiling" = yes; then :
11448   libltdl_cv_need_uscore=cross
11449 else
11450   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11451   lt_status=$lt_dlunknown
11452   cat > conftest.$ac_ext <<EOF
11453 #line 11453 "configure"
11454 #include "confdefs.h"
11455
11456 #if HAVE_DLFCN_H
11457 #include <dlfcn.h>
11458 #endif
11459
11460 #include <stdio.h>
11461
11462 #ifdef RTLD_GLOBAL
11463 #  define LT_DLGLOBAL           RTLD_GLOBAL
11464 #else
11465 #  ifdef DL_GLOBAL
11466 #    define LT_DLGLOBAL         DL_GLOBAL
11467 #  else
11468 #    define LT_DLGLOBAL         0
11469 #  endif
11470 #endif
11471
11472 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11473    find out it does not work in some platform. */
11474 #ifndef LT_DLLAZY_OR_NOW
11475 #  ifdef RTLD_LAZY
11476 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11477 #  else
11478 #    ifdef DL_LAZY
11479 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11480 #    else
11481 #      ifdef RTLD_NOW
11482 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11483 #      else
11484 #        ifdef DL_NOW
11485 #          define LT_DLLAZY_OR_NOW      DL_NOW
11486 #        else
11487 #          define LT_DLLAZY_OR_NOW      0
11488 #        endif
11489 #      endif
11490 #    endif
11491 #  endif
11492 #endif
11493
11494 #ifdef __cplusplus
11495 extern "C" void exit (int);
11496 #endif
11497
11498 void fnord() { int i=42;}
11499 int main ()
11500 {
11501   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11502   int status = $lt_dlunknown;
11503
11504   if (self)
11505     {
11506       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11507       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11508       /* dlclose (self); */
11509     }
11510   else
11511     puts (dlerror ());
11512
11513     exit (status);
11514 }
11515 EOF
11516   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11517   (eval $ac_link) 2>&5
11518   ac_status=$?
11519   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11520   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11521     (./conftest; exit; ) >&5 2>/dev/null
11522     lt_status=$?
11523     case x$lt_status in
11524       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11525       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11526       x$lt_dlunknown|x*)  ;;
11527     esac
11528   else :
11529     # compilation failed
11530
11531   fi
11532 fi
11533 rm -fr conftest*
11534
11535           LIBS="$save_LIBS"
11536
11537 fi
11538 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11539 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11540   fi
11541 fi
11542
11543 if test x"$libltdl_cv_need_uscore" = xyes; then
11544
11545 cat >>confdefs.h <<\_ACEOF
11546 #define NEED_USCORE 1
11547 _ACEOF
11548
11549 fi
11550
11551
11552 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11553 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11554 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11555   echo $ECHO_N "(cached) $ECHO_C" >&6
11556 else
11557   # PORTME does your system automatically load deplibs for dlopen?
11558   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11559   # For now, we just catch OSes we know something about -- in the
11560   # future, we'll try test this programmatically.
11561   libltdl_cv_sys_dlopen_deplibs=unknown
11562   case "$host_os" in
11563   aix3*|aix4.1.*|aix4.2.*)
11564     # Unknown whether this is true for these versions of AIX, but
11565     # we want this `case' here to explicitly catch those versions.
11566     libltdl_cv_sys_dlopen_deplibs=unknown
11567     ;;
11568   aix[45]*)
11569     libltdl_cv_sys_dlopen_deplibs=yes
11570     ;;
11571   darwin*)
11572     # Assuming the user has installed a libdl from somewhere, this is true
11573     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11574     libltdl_cv_sys_dlopen_deplibs=yes
11575     ;;
11576   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11577     # GNU and its variants, using gnu ld.so (Glibc)
11578     libltdl_cv_sys_dlopen_deplibs=yes
11579     ;;
11580   hpux10*|hpux11*)
11581     libltdl_cv_sys_dlopen_deplibs=yes
11582     ;;
11583   interix*)
11584     libltdl_cv_sys_dlopen_deplibs=yes
11585     ;;
11586   irix[12345]*|irix6.[01]*)
11587     # Catch all versions of IRIX before 6.2, and indicate that we don't
11588     # know how it worked for any of those versions.
11589     libltdl_cv_sys_dlopen_deplibs=unknown
11590     ;;
11591   irix*)
11592     # The case above catches anything before 6.2, and it's known that
11593     # at 6.2 and later dlopen does load deplibs.
11594     libltdl_cv_sys_dlopen_deplibs=yes
11595     ;;
11596   netbsd*)
11597     libltdl_cv_sys_dlopen_deplibs=yes
11598     ;;
11599   openbsd*)
11600     libltdl_cv_sys_dlopen_deplibs=yes
11601     ;;
11602   osf[1234]*)
11603     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11604     # it did *not* use an RPATH in a shared library to find objects the
11605     # library depends on, so we explictly say `no'.
11606     libltdl_cv_sys_dlopen_deplibs=no
11607     ;;
11608   osf5.0|osf5.0a|osf5.1)
11609     # dlopen *does* load deplibs and with the right loader patch applied
11610     # it even uses RPATH in a shared library to search for shared objects
11611     # that the library depends on, but there's no easy way to know if that
11612     # patch is installed.  Since this is the case, all we can really
11613     # say is unknown -- it depends on the patch being installed.  If
11614     # it is, this changes to `yes'.  Without it, it would be `no'.
11615     libltdl_cv_sys_dlopen_deplibs=unknown
11616     ;;
11617   osf*)
11618     # the two cases above should catch all versions of osf <= 5.1.  Read
11619     # the comments above for what we know about them.
11620     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11621     # is used to find them so we can finally say `yes'.
11622     libltdl_cv_sys_dlopen_deplibs=yes
11623     ;;
11624   solaris*)
11625     libltdl_cv_sys_dlopen_deplibs=yes
11626     ;;
11627   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11628     libltdl_cv_sys_dlopen_deplibs=yes
11629     ;;
11630   esac
11631
11632 fi
11633 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11634 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11635 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11636
11637 cat >>confdefs.h <<\_ACEOF
11638 #define LTDL_DLOPEN_DEPLIBS 1
11639 _ACEOF
11640
11641 fi
11642
11643
11644 for ac_header in argz.h
11645 do
11646 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11647 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11648   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11649 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11650 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11651   echo $ECHO_N "(cached) $ECHO_C" >&6
11652 fi
11653 ac_res=`eval echo '${'$as_ac_Header'}'`
11654                { echo "$as_me:$LINENO: result: $ac_res" >&5
11655 echo "${ECHO_T}$ac_res" >&6; }
11656 else
11657   # Is the header compilable?
11658 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11659 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11660 cat >conftest.$ac_ext <<_ACEOF
11661 /* confdefs.h.  */
11662 _ACEOF
11663 cat confdefs.h >>conftest.$ac_ext
11664 cat >>conftest.$ac_ext <<_ACEOF
11665 /* end confdefs.h.  */
11666 $ac_includes_default
11667 #include <$ac_header>
11668 _ACEOF
11669 rm -f conftest.$ac_objext
11670 if { (ac_try="$ac_compile"
11671 case "(($ac_try" in
11672   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11673   *) ac_try_echo=$ac_try;;
11674 esac
11675 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11676   (eval "$ac_compile") 2>conftest.er1
11677   ac_status=$?
11678   grep -v '^ *+' conftest.er1 >conftest.err
11679   rm -f conftest.er1
11680   cat conftest.err >&5
11681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11682   (exit $ac_status); } &&
11683          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11684   { (case "(($ac_try" in
11685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11686   *) ac_try_echo=$ac_try;;
11687 esac
11688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11689   (eval "$ac_try") 2>&5
11690   ac_status=$?
11691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11692   (exit $ac_status); }; } &&
11693          { ac_try='test -s conftest.$ac_objext'
11694   { (case "(($ac_try" in
11695   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11696   *) ac_try_echo=$ac_try;;
11697 esac
11698 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11699   (eval "$ac_try") 2>&5
11700   ac_status=$?
11701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11702   (exit $ac_status); }; }; then
11703   ac_header_compiler=yes
11704 else
11705   echo "$as_me: failed program was:" >&5
11706 sed 's/^/| /' conftest.$ac_ext >&5
11707
11708         ac_header_compiler=no
11709 fi
11710
11711 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11712 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11713 echo "${ECHO_T}$ac_header_compiler" >&6; }
11714
11715 # Is the header present?
11716 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11717 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11718 cat >conftest.$ac_ext <<_ACEOF
11719 /* confdefs.h.  */
11720 _ACEOF
11721 cat confdefs.h >>conftest.$ac_ext
11722 cat >>conftest.$ac_ext <<_ACEOF
11723 /* end confdefs.h.  */
11724 #include <$ac_header>
11725 _ACEOF
11726 if { (ac_try="$ac_cpp conftest.$ac_ext"
11727 case "(($ac_try" in
11728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11729   *) ac_try_echo=$ac_try;;
11730 esac
11731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11732   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11733   ac_status=$?
11734   grep -v '^ *+' conftest.er1 >conftest.err
11735   rm -f conftest.er1
11736   cat conftest.err >&5
11737   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11738   (exit $ac_status); } >/dev/null; then
11739   if test -s conftest.err; then
11740     ac_cpp_err=$ac_c_preproc_warn_flag
11741     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11742   else
11743     ac_cpp_err=
11744   fi
11745 else
11746   ac_cpp_err=yes
11747 fi
11748 if test -z "$ac_cpp_err"; then
11749   ac_header_preproc=yes
11750 else
11751   echo "$as_me: failed program was:" >&5
11752 sed 's/^/| /' conftest.$ac_ext >&5
11753
11754   ac_header_preproc=no
11755 fi
11756
11757 rm -f conftest.err conftest.$ac_ext
11758 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11759 echo "${ECHO_T}$ac_header_preproc" >&6; }
11760
11761 # So?  What about this header?
11762 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11763   yes:no: )
11764     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11765 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11766     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11767 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11768     ac_header_preproc=yes
11769     ;;
11770   no:yes:* )
11771     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11772 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11773     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11774 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11775     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11776 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11777     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11778 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11779     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11780 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11781     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11782 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11783     ( cat <<\_ASBOX
11784 ## ----------------------------------- ##
11785 ## Report this to llvmbugs@cs.uiuc.edu ##
11786 ## ----------------------------------- ##
11787 _ASBOX
11788      ) | sed "s/^/$as_me: WARNING:     /" >&2
11789     ;;
11790 esac
11791 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11792 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11793 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11794   echo $ECHO_N "(cached) $ECHO_C" >&6
11795 else
11796   eval "$as_ac_Header=\$ac_header_preproc"
11797 fi
11798 ac_res=`eval echo '${'$as_ac_Header'}'`
11799                { echo "$as_me:$LINENO: result: $ac_res" >&5
11800 echo "${ECHO_T}$ac_res" >&6; }
11801
11802 fi
11803 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11804   cat >>confdefs.h <<_ACEOF
11805 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11806 _ACEOF
11807
11808 fi
11809
11810 done
11811
11812
11813 { echo "$as_me:$LINENO: checking for error_t" >&5
11814 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11815 if test "${ac_cv_type_error_t+set}" = set; then
11816   echo $ECHO_N "(cached) $ECHO_C" >&6
11817 else
11818   cat >conftest.$ac_ext <<_ACEOF
11819 /* confdefs.h.  */
11820 _ACEOF
11821 cat confdefs.h >>conftest.$ac_ext
11822 cat >>conftest.$ac_ext <<_ACEOF
11823 /* end confdefs.h.  */
11824 #if HAVE_ARGZ_H
11825 #  include <argz.h>
11826 #endif
11827
11828 typedef error_t ac__type_new_;
11829 int
11830 main ()
11831 {
11832 if ((ac__type_new_ *) 0)
11833   return 0;
11834 if (sizeof (ac__type_new_))
11835   return 0;
11836   ;
11837   return 0;
11838 }
11839 _ACEOF
11840 rm -f conftest.$ac_objext
11841 if { (ac_try="$ac_compile"
11842 case "(($ac_try" in
11843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11844   *) ac_try_echo=$ac_try;;
11845 esac
11846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11847   (eval "$ac_compile") 2>conftest.er1
11848   ac_status=$?
11849   grep -v '^ *+' conftest.er1 >conftest.err
11850   rm -f conftest.er1
11851   cat conftest.err >&5
11852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11853   (exit $ac_status); } &&
11854          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11855   { (case "(($ac_try" in
11856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11857   *) ac_try_echo=$ac_try;;
11858 esac
11859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11860   (eval "$ac_try") 2>&5
11861   ac_status=$?
11862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11863   (exit $ac_status); }; } &&
11864          { ac_try='test -s conftest.$ac_objext'
11865   { (case "(($ac_try" in
11866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11867   *) ac_try_echo=$ac_try;;
11868 esac
11869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11870   (eval "$ac_try") 2>&5
11871   ac_status=$?
11872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11873   (exit $ac_status); }; }; then
11874   ac_cv_type_error_t=yes
11875 else
11876   echo "$as_me: failed program was:" >&5
11877 sed 's/^/| /' conftest.$ac_ext >&5
11878
11879         ac_cv_type_error_t=no
11880 fi
11881
11882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11883 fi
11884 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11885 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11886 if test $ac_cv_type_error_t = yes; then
11887
11888 cat >>confdefs.h <<_ACEOF
11889 #define HAVE_ERROR_T 1
11890 _ACEOF
11891
11892
11893 else
11894
11895 cat >>confdefs.h <<\_ACEOF
11896 #define error_t int
11897 _ACEOF
11898
11899 fi
11900
11901
11902
11903
11904
11905
11906
11907 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11908 do
11909 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11910 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11911 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11912 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11913   echo $ECHO_N "(cached) $ECHO_C" >&6
11914 else
11915   cat >conftest.$ac_ext <<_ACEOF
11916 /* confdefs.h.  */
11917 _ACEOF
11918 cat confdefs.h >>conftest.$ac_ext
11919 cat >>conftest.$ac_ext <<_ACEOF
11920 /* end confdefs.h.  */
11921 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11922    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11923 #define $ac_func innocuous_$ac_func
11924
11925 /* System header to define __stub macros and hopefully few prototypes,
11926     which can conflict with char $ac_func (); below.
11927     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11928     <limits.h> exists even on freestanding compilers.  */
11929
11930 #ifdef __STDC__
11931 # include <limits.h>
11932 #else
11933 # include <assert.h>
11934 #endif
11935
11936 #undef $ac_func
11937
11938 /* Override any GCC internal prototype to avoid an error.
11939    Use char because int might match the return type of a GCC
11940    builtin and then its argument prototype would still apply.  */
11941 #ifdef __cplusplus
11942 extern "C"
11943 #endif
11944 char $ac_func ();
11945 /* The GNU C library defines this for functions which it implements
11946     to always fail with ENOSYS.  Some functions are actually named
11947     something starting with __ and the normal name is an alias.  */
11948 #if defined __stub_$ac_func || defined __stub___$ac_func
11949 choke me
11950 #endif
11951
11952 int
11953 main ()
11954 {
11955 return $ac_func ();
11956   ;
11957   return 0;
11958 }
11959 _ACEOF
11960 rm -f conftest.$ac_objext conftest$ac_exeext
11961 if { (ac_try="$ac_link"
11962 case "(($ac_try" in
11963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11964   *) ac_try_echo=$ac_try;;
11965 esac
11966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11967   (eval "$ac_link") 2>conftest.er1
11968   ac_status=$?
11969   grep -v '^ *+' conftest.er1 >conftest.err
11970   rm -f conftest.er1
11971   cat conftest.err >&5
11972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11973   (exit $ac_status); } &&
11974          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11975   { (case "(($ac_try" in
11976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11977   *) ac_try_echo=$ac_try;;
11978 esac
11979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11980   (eval "$ac_try") 2>&5
11981   ac_status=$?
11982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11983   (exit $ac_status); }; } &&
11984          { ac_try='test -s conftest$ac_exeext'
11985   { (case "(($ac_try" in
11986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11987   *) ac_try_echo=$ac_try;;
11988 esac
11989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11990   (eval "$ac_try") 2>&5
11991   ac_status=$?
11992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11993   (exit $ac_status); }; }; then
11994   eval "$as_ac_var=yes"
11995 else
11996   echo "$as_me: failed program was:" >&5
11997 sed 's/^/| /' conftest.$ac_ext >&5
11998
11999         eval "$as_ac_var=no"
12000 fi
12001
12002 rm -f core conftest.err conftest.$ac_objext \
12003       conftest$ac_exeext conftest.$ac_ext
12004 fi
12005 ac_res=`eval echo '${'$as_ac_var'}'`
12006                { echo "$as_me:$LINENO: result: $ac_res" >&5
12007 echo "${ECHO_T}$ac_res" >&6; }
12008 if test `eval echo '${'$as_ac_var'}'` = yes; then
12009   cat >>confdefs.h <<_ACEOF
12010 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12011 _ACEOF
12012
12013 fi
12014 done
12015
12016
12017
12018
12019
12020
12021
12022
12023
12024
12025
12026
12027
12028
12029
12030
12031
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12044                   stdio.h unistd.h
12045 do
12046 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12047 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12048   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12049 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12050 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12051   echo $ECHO_N "(cached) $ECHO_C" >&6
12052 fi
12053 ac_res=`eval echo '${'$as_ac_Header'}'`
12054                { echo "$as_me:$LINENO: result: $ac_res" >&5
12055 echo "${ECHO_T}$ac_res" >&6; }
12056 else
12057   # Is the header compilable?
12058 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12059 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12060 cat >conftest.$ac_ext <<_ACEOF
12061 /* confdefs.h.  */
12062 _ACEOF
12063 cat confdefs.h >>conftest.$ac_ext
12064 cat >>conftest.$ac_ext <<_ACEOF
12065 /* end confdefs.h.  */
12066 $ac_includes_default
12067 #include <$ac_header>
12068 _ACEOF
12069 rm -f conftest.$ac_objext
12070 if { (ac_try="$ac_compile"
12071 case "(($ac_try" in
12072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12073   *) ac_try_echo=$ac_try;;
12074 esac
12075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12076   (eval "$ac_compile") 2>conftest.er1
12077   ac_status=$?
12078   grep -v '^ *+' conftest.er1 >conftest.err
12079   rm -f conftest.er1
12080   cat conftest.err >&5
12081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12082   (exit $ac_status); } &&
12083          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12084   { (case "(($ac_try" in
12085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12086   *) ac_try_echo=$ac_try;;
12087 esac
12088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12089   (eval "$ac_try") 2>&5
12090   ac_status=$?
12091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12092   (exit $ac_status); }; } &&
12093          { ac_try='test -s conftest.$ac_objext'
12094   { (case "(($ac_try" in
12095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12096   *) ac_try_echo=$ac_try;;
12097 esac
12098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12099   (eval "$ac_try") 2>&5
12100   ac_status=$?
12101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12102   (exit $ac_status); }; }; then
12103   ac_header_compiler=yes
12104 else
12105   echo "$as_me: failed program was:" >&5
12106 sed 's/^/| /' conftest.$ac_ext >&5
12107
12108         ac_header_compiler=no
12109 fi
12110
12111 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12112 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12113 echo "${ECHO_T}$ac_header_compiler" >&6; }
12114
12115 # Is the header present?
12116 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12117 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12118 cat >conftest.$ac_ext <<_ACEOF
12119 /* confdefs.h.  */
12120 _ACEOF
12121 cat confdefs.h >>conftest.$ac_ext
12122 cat >>conftest.$ac_ext <<_ACEOF
12123 /* end confdefs.h.  */
12124 #include <$ac_header>
12125 _ACEOF
12126 if { (ac_try="$ac_cpp conftest.$ac_ext"
12127 case "(($ac_try" in
12128   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12129   *) ac_try_echo=$ac_try;;
12130 esac
12131 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12132   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12133   ac_status=$?
12134   grep -v '^ *+' conftest.er1 >conftest.err
12135   rm -f conftest.er1
12136   cat conftest.err >&5
12137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12138   (exit $ac_status); } >/dev/null; then
12139   if test -s conftest.err; then
12140     ac_cpp_err=$ac_c_preproc_warn_flag
12141     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12142   else
12143     ac_cpp_err=
12144   fi
12145 else
12146   ac_cpp_err=yes
12147 fi
12148 if test -z "$ac_cpp_err"; then
12149   ac_header_preproc=yes
12150 else
12151   echo "$as_me: failed program was:" >&5
12152 sed 's/^/| /' conftest.$ac_ext >&5
12153
12154   ac_header_preproc=no
12155 fi
12156
12157 rm -f conftest.err conftest.$ac_ext
12158 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12159 echo "${ECHO_T}$ac_header_preproc" >&6; }
12160
12161 # So?  What about this header?
12162 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12163   yes:no: )
12164     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12165 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12166     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12167 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12168     ac_header_preproc=yes
12169     ;;
12170   no:yes:* )
12171     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12172 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12173     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12174 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12175     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12176 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12177     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12178 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12179     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12180 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12181     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12182 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12183     ( cat <<\_ASBOX
12184 ## ----------------------------------- ##
12185 ## Report this to llvmbugs@cs.uiuc.edu ##
12186 ## ----------------------------------- ##
12187 _ASBOX
12188      ) | sed "s/^/$as_me: WARNING:     /" >&2
12189     ;;
12190 esac
12191 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12192 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12193 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12194   echo $ECHO_N "(cached) $ECHO_C" >&6
12195 else
12196   eval "$as_ac_Header=\$ac_header_preproc"
12197 fi
12198 ac_res=`eval echo '${'$as_ac_Header'}'`
12199                { echo "$as_me:$LINENO: result: $ac_res" >&5
12200 echo "${ECHO_T}$ac_res" >&6; }
12201
12202 fi
12203 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12204   cat >>confdefs.h <<_ACEOF
12205 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12206 _ACEOF
12207
12208 fi
12209
12210 done
12211
12212
12213
12214
12215
12216 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12217 do
12218 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12219 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12220   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12221 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12222 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12223   echo $ECHO_N "(cached) $ECHO_C" >&6
12224 fi
12225 ac_res=`eval echo '${'$as_ac_Header'}'`
12226                { echo "$as_me:$LINENO: result: $ac_res" >&5
12227 echo "${ECHO_T}$ac_res" >&6; }
12228 else
12229   # Is the header compilable?
12230 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12231 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12232 cat >conftest.$ac_ext <<_ACEOF
12233 /* confdefs.h.  */
12234 _ACEOF
12235 cat confdefs.h >>conftest.$ac_ext
12236 cat >>conftest.$ac_ext <<_ACEOF
12237 /* end confdefs.h.  */
12238 $ac_includes_default
12239 #include <$ac_header>
12240 _ACEOF
12241 rm -f conftest.$ac_objext
12242 if { (ac_try="$ac_compile"
12243 case "(($ac_try" in
12244   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12245   *) ac_try_echo=$ac_try;;
12246 esac
12247 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12248   (eval "$ac_compile") 2>conftest.er1
12249   ac_status=$?
12250   grep -v '^ *+' conftest.er1 >conftest.err
12251   rm -f conftest.er1
12252   cat conftest.err >&5
12253   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12254   (exit $ac_status); } &&
12255          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12256   { (case "(($ac_try" in
12257   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12258   *) ac_try_echo=$ac_try;;
12259 esac
12260 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12261   (eval "$ac_try") 2>&5
12262   ac_status=$?
12263   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12264   (exit $ac_status); }; } &&
12265          { ac_try='test -s conftest.$ac_objext'
12266   { (case "(($ac_try" in
12267   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12268   *) ac_try_echo=$ac_try;;
12269 esac
12270 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12271   (eval "$ac_try") 2>&5
12272   ac_status=$?
12273   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12274   (exit $ac_status); }; }; then
12275   ac_header_compiler=yes
12276 else
12277   echo "$as_me: failed program was:" >&5
12278 sed 's/^/| /' conftest.$ac_ext >&5
12279
12280         ac_header_compiler=no
12281 fi
12282
12283 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12284 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12285 echo "${ECHO_T}$ac_header_compiler" >&6; }
12286
12287 # Is the header present?
12288 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12289 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12290 cat >conftest.$ac_ext <<_ACEOF
12291 /* confdefs.h.  */
12292 _ACEOF
12293 cat confdefs.h >>conftest.$ac_ext
12294 cat >>conftest.$ac_ext <<_ACEOF
12295 /* end confdefs.h.  */
12296 #include <$ac_header>
12297 _ACEOF
12298 if { (ac_try="$ac_cpp conftest.$ac_ext"
12299 case "(($ac_try" in
12300   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12301   *) ac_try_echo=$ac_try;;
12302 esac
12303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12304   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12305   ac_status=$?
12306   grep -v '^ *+' conftest.er1 >conftest.err
12307   rm -f conftest.er1
12308   cat conftest.err >&5
12309   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12310   (exit $ac_status); } >/dev/null; then
12311   if test -s conftest.err; then
12312     ac_cpp_err=$ac_c_preproc_warn_flag
12313     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12314   else
12315     ac_cpp_err=
12316   fi
12317 else
12318   ac_cpp_err=yes
12319 fi
12320 if test -z "$ac_cpp_err"; then
12321   ac_header_preproc=yes
12322 else
12323   echo "$as_me: failed program was:" >&5
12324 sed 's/^/| /' conftest.$ac_ext >&5
12325
12326   ac_header_preproc=no
12327 fi
12328
12329 rm -f conftest.err conftest.$ac_ext
12330 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12331 echo "${ECHO_T}$ac_header_preproc" >&6; }
12332
12333 # So?  What about this header?
12334 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12335   yes:no: )
12336     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12337 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12338     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12339 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12340     ac_header_preproc=yes
12341     ;;
12342   no:yes:* )
12343     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12344 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12345     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12346 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12347     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12348 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12349     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12350 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12351     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12352 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12353     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12354 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12355     ( cat <<\_ASBOX
12356 ## ----------------------------------- ##
12357 ## Report this to llvmbugs@cs.uiuc.edu ##
12358 ## ----------------------------------- ##
12359 _ASBOX
12360      ) | sed "s/^/$as_me: WARNING:     /" >&2
12361     ;;
12362 esac
12363 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12364 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12365 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12366   echo $ECHO_N "(cached) $ECHO_C" >&6
12367 else
12368   eval "$as_ac_Header=\$ac_header_preproc"
12369 fi
12370 ac_res=`eval echo '${'$as_ac_Header'}'`
12371                { echo "$as_me:$LINENO: result: $ac_res" >&5
12372 echo "${ECHO_T}$ac_res" >&6; }
12373
12374 fi
12375 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12376   cat >>confdefs.h <<_ACEOF
12377 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12378 _ACEOF
12379
12380 fi
12381
12382 done
12383
12384
12385
12386 for ac_header in string.h strings.h
12387 do
12388 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12389 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12390   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12391 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12392 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12393   echo $ECHO_N "(cached) $ECHO_C" >&6
12394 fi
12395 ac_res=`eval echo '${'$as_ac_Header'}'`
12396                { echo "$as_me:$LINENO: result: $ac_res" >&5
12397 echo "${ECHO_T}$ac_res" >&6; }
12398 else
12399   # Is the header compilable?
12400 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12401 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12402 cat >conftest.$ac_ext <<_ACEOF
12403 /* confdefs.h.  */
12404 _ACEOF
12405 cat confdefs.h >>conftest.$ac_ext
12406 cat >>conftest.$ac_ext <<_ACEOF
12407 /* end confdefs.h.  */
12408 $ac_includes_default
12409 #include <$ac_header>
12410 _ACEOF
12411 rm -f conftest.$ac_objext
12412 if { (ac_try="$ac_compile"
12413 case "(($ac_try" in
12414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12415   *) ac_try_echo=$ac_try;;
12416 esac
12417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12418   (eval "$ac_compile") 2>conftest.er1
12419   ac_status=$?
12420   grep -v '^ *+' conftest.er1 >conftest.err
12421   rm -f conftest.er1
12422   cat conftest.err >&5
12423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12424   (exit $ac_status); } &&
12425          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12426   { (case "(($ac_try" in
12427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12428   *) ac_try_echo=$ac_try;;
12429 esac
12430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12431   (eval "$ac_try") 2>&5
12432   ac_status=$?
12433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12434   (exit $ac_status); }; } &&
12435          { ac_try='test -s conftest.$ac_objext'
12436   { (case "(($ac_try" in
12437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12438   *) ac_try_echo=$ac_try;;
12439 esac
12440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12441   (eval "$ac_try") 2>&5
12442   ac_status=$?
12443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12444   (exit $ac_status); }; }; then
12445   ac_header_compiler=yes
12446 else
12447   echo "$as_me: failed program was:" >&5
12448 sed 's/^/| /' conftest.$ac_ext >&5
12449
12450         ac_header_compiler=no
12451 fi
12452
12453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12454 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12455 echo "${ECHO_T}$ac_header_compiler" >&6; }
12456
12457 # Is the header present?
12458 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12459 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12460 cat >conftest.$ac_ext <<_ACEOF
12461 /* confdefs.h.  */
12462 _ACEOF
12463 cat confdefs.h >>conftest.$ac_ext
12464 cat >>conftest.$ac_ext <<_ACEOF
12465 /* end confdefs.h.  */
12466 #include <$ac_header>
12467 _ACEOF
12468 if { (ac_try="$ac_cpp conftest.$ac_ext"
12469 case "(($ac_try" in
12470   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12471   *) ac_try_echo=$ac_try;;
12472 esac
12473 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12474   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12475   ac_status=$?
12476   grep -v '^ *+' conftest.er1 >conftest.err
12477   rm -f conftest.er1
12478   cat conftest.err >&5
12479   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12480   (exit $ac_status); } >/dev/null; then
12481   if test -s conftest.err; then
12482     ac_cpp_err=$ac_c_preproc_warn_flag
12483     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12484   else
12485     ac_cpp_err=
12486   fi
12487 else
12488   ac_cpp_err=yes
12489 fi
12490 if test -z "$ac_cpp_err"; then
12491   ac_header_preproc=yes
12492 else
12493   echo "$as_me: failed program was:" >&5
12494 sed 's/^/| /' conftest.$ac_ext >&5
12495
12496   ac_header_preproc=no
12497 fi
12498
12499 rm -f conftest.err conftest.$ac_ext
12500 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12501 echo "${ECHO_T}$ac_header_preproc" >&6; }
12502
12503 # So?  What about this header?
12504 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12505   yes:no: )
12506     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12507 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12508     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12509 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12510     ac_header_preproc=yes
12511     ;;
12512   no:yes:* )
12513     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12514 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12515     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12516 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12517     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12518 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12519     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12520 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12521     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12522 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12523     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12524 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12525     ( cat <<\_ASBOX
12526 ## ----------------------------------- ##
12527 ## Report this to llvmbugs@cs.uiuc.edu ##
12528 ## ----------------------------------- ##
12529 _ASBOX
12530      ) | sed "s/^/$as_me: WARNING:     /" >&2
12531     ;;
12532 esac
12533 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12534 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12535 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12536   echo $ECHO_N "(cached) $ECHO_C" >&6
12537 else
12538   eval "$as_ac_Header=\$ac_header_preproc"
12539 fi
12540 ac_res=`eval echo '${'$as_ac_Header'}'`
12541                { echo "$as_me:$LINENO: result: $ac_res" >&5
12542 echo "${ECHO_T}$ac_res" >&6; }
12543
12544 fi
12545 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12546   cat >>confdefs.h <<_ACEOF
12547 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12548 _ACEOF
12549  break
12550 fi
12551
12552 done
12553
12554
12555
12556
12557 for ac_func in strchr index
12558 do
12559 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12560 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12561 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12562 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12563   echo $ECHO_N "(cached) $ECHO_C" >&6
12564 else
12565   cat >conftest.$ac_ext <<_ACEOF
12566 /* confdefs.h.  */
12567 _ACEOF
12568 cat confdefs.h >>conftest.$ac_ext
12569 cat >>conftest.$ac_ext <<_ACEOF
12570 /* end confdefs.h.  */
12571 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12572    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12573 #define $ac_func innocuous_$ac_func
12574
12575 /* System header to define __stub macros and hopefully few prototypes,
12576     which can conflict with char $ac_func (); below.
12577     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12578     <limits.h> exists even on freestanding compilers.  */
12579
12580 #ifdef __STDC__
12581 # include <limits.h>
12582 #else
12583 # include <assert.h>
12584 #endif
12585
12586 #undef $ac_func
12587
12588 /* Override any GCC internal prototype to avoid an error.
12589    Use char because int might match the return type of a GCC
12590    builtin and then its argument prototype would still apply.  */
12591 #ifdef __cplusplus
12592 extern "C"
12593 #endif
12594 char $ac_func ();
12595 /* The GNU C library defines this for functions which it implements
12596     to always fail with ENOSYS.  Some functions are actually named
12597     something starting with __ and the normal name is an alias.  */
12598 #if defined __stub_$ac_func || defined __stub___$ac_func
12599 choke me
12600 #endif
12601
12602 int
12603 main ()
12604 {
12605 return $ac_func ();
12606   ;
12607   return 0;
12608 }
12609 _ACEOF
12610 rm -f conftest.$ac_objext conftest$ac_exeext
12611 if { (ac_try="$ac_link"
12612 case "(($ac_try" in
12613   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12614   *) ac_try_echo=$ac_try;;
12615 esac
12616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12617   (eval "$ac_link") 2>conftest.er1
12618   ac_status=$?
12619   grep -v '^ *+' conftest.er1 >conftest.err
12620   rm -f conftest.er1
12621   cat conftest.err >&5
12622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12623   (exit $ac_status); } &&
12624          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12625   { (case "(($ac_try" in
12626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12627   *) ac_try_echo=$ac_try;;
12628 esac
12629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12630   (eval "$ac_try") 2>&5
12631   ac_status=$?
12632   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12633   (exit $ac_status); }; } &&
12634          { ac_try='test -s conftest$ac_exeext'
12635   { (case "(($ac_try" in
12636   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12637   *) ac_try_echo=$ac_try;;
12638 esac
12639 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12640   (eval "$ac_try") 2>&5
12641   ac_status=$?
12642   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12643   (exit $ac_status); }; }; then
12644   eval "$as_ac_var=yes"
12645 else
12646   echo "$as_me: failed program was:" >&5
12647 sed 's/^/| /' conftest.$ac_ext >&5
12648
12649         eval "$as_ac_var=no"
12650 fi
12651
12652 rm -f core conftest.err conftest.$ac_objext \
12653       conftest$ac_exeext conftest.$ac_ext
12654 fi
12655 ac_res=`eval echo '${'$as_ac_var'}'`
12656                { echo "$as_me:$LINENO: result: $ac_res" >&5
12657 echo "${ECHO_T}$ac_res" >&6; }
12658 if test `eval echo '${'$as_ac_var'}'` = yes; then
12659   cat >>confdefs.h <<_ACEOF
12660 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12661 _ACEOF
12662  break
12663 fi
12664 done
12665
12666
12667
12668 for ac_func in strrchr rindex
12669 do
12670 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12671 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12672 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12673 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12674   echo $ECHO_N "(cached) $ECHO_C" >&6
12675 else
12676   cat >conftest.$ac_ext <<_ACEOF
12677 /* confdefs.h.  */
12678 _ACEOF
12679 cat confdefs.h >>conftest.$ac_ext
12680 cat >>conftest.$ac_ext <<_ACEOF
12681 /* end confdefs.h.  */
12682 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12683    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12684 #define $ac_func innocuous_$ac_func
12685
12686 /* System header to define __stub macros and hopefully few prototypes,
12687     which can conflict with char $ac_func (); below.
12688     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12689     <limits.h> exists even on freestanding compilers.  */
12690
12691 #ifdef __STDC__
12692 # include <limits.h>
12693 #else
12694 # include <assert.h>
12695 #endif
12696
12697 #undef $ac_func
12698
12699 /* Override any GCC internal prototype to avoid an error.
12700    Use char because int might match the return type of a GCC
12701    builtin and then its argument prototype would still apply.  */
12702 #ifdef __cplusplus
12703 extern "C"
12704 #endif
12705 char $ac_func ();
12706 /* The GNU C library defines this for functions which it implements
12707     to always fail with ENOSYS.  Some functions are actually named
12708     something starting with __ and the normal name is an alias.  */
12709 #if defined __stub_$ac_func || defined __stub___$ac_func
12710 choke me
12711 #endif
12712
12713 int
12714 main ()
12715 {
12716 return $ac_func ();
12717   ;
12718   return 0;
12719 }
12720 _ACEOF
12721 rm -f conftest.$ac_objext conftest$ac_exeext
12722 if { (ac_try="$ac_link"
12723 case "(($ac_try" in
12724   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12725   *) ac_try_echo=$ac_try;;
12726 esac
12727 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12728   (eval "$ac_link") 2>conftest.er1
12729   ac_status=$?
12730   grep -v '^ *+' conftest.er1 >conftest.err
12731   rm -f conftest.er1
12732   cat conftest.err >&5
12733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12734   (exit $ac_status); } &&
12735          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12736   { (case "(($ac_try" in
12737   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12738   *) ac_try_echo=$ac_try;;
12739 esac
12740 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12741   (eval "$ac_try") 2>&5
12742   ac_status=$?
12743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12744   (exit $ac_status); }; } &&
12745          { ac_try='test -s conftest$ac_exeext'
12746   { (case "(($ac_try" in
12747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12748   *) ac_try_echo=$ac_try;;
12749 esac
12750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12751   (eval "$ac_try") 2>&5
12752   ac_status=$?
12753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12754   (exit $ac_status); }; }; then
12755   eval "$as_ac_var=yes"
12756 else
12757   echo "$as_me: failed program was:" >&5
12758 sed 's/^/| /' conftest.$ac_ext >&5
12759
12760         eval "$as_ac_var=no"
12761 fi
12762
12763 rm -f core conftest.err conftest.$ac_objext \
12764       conftest$ac_exeext conftest.$ac_ext
12765 fi
12766 ac_res=`eval echo '${'$as_ac_var'}'`
12767                { echo "$as_me:$LINENO: result: $ac_res" >&5
12768 echo "${ECHO_T}$ac_res" >&6; }
12769 if test `eval echo '${'$as_ac_var'}'` = yes; then
12770   cat >>confdefs.h <<_ACEOF
12771 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12772 _ACEOF
12773  break
12774 fi
12775 done
12776
12777
12778
12779 for ac_func in memcpy bcopy
12780 do
12781 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12782 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12783 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12784 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12785   echo $ECHO_N "(cached) $ECHO_C" >&6
12786 else
12787   cat >conftest.$ac_ext <<_ACEOF
12788 /* confdefs.h.  */
12789 _ACEOF
12790 cat confdefs.h >>conftest.$ac_ext
12791 cat >>conftest.$ac_ext <<_ACEOF
12792 /* end confdefs.h.  */
12793 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12794    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12795 #define $ac_func innocuous_$ac_func
12796
12797 /* System header to define __stub macros and hopefully few prototypes,
12798     which can conflict with char $ac_func (); below.
12799     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12800     <limits.h> exists even on freestanding compilers.  */
12801
12802 #ifdef __STDC__
12803 # include <limits.h>
12804 #else
12805 # include <assert.h>
12806 #endif
12807
12808 #undef $ac_func
12809
12810 /* Override any GCC internal prototype to avoid an error.
12811    Use char because int might match the return type of a GCC
12812    builtin and then its argument prototype would still apply.  */
12813 #ifdef __cplusplus
12814 extern "C"
12815 #endif
12816 char $ac_func ();
12817 /* The GNU C library defines this for functions which it implements
12818     to always fail with ENOSYS.  Some functions are actually named
12819     something starting with __ and the normal name is an alias.  */
12820 #if defined __stub_$ac_func || defined __stub___$ac_func
12821 choke me
12822 #endif
12823
12824 int
12825 main ()
12826 {
12827 return $ac_func ();
12828   ;
12829   return 0;
12830 }
12831 _ACEOF
12832 rm -f conftest.$ac_objext conftest$ac_exeext
12833 if { (ac_try="$ac_link"
12834 case "(($ac_try" in
12835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12836   *) ac_try_echo=$ac_try;;
12837 esac
12838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12839   (eval "$ac_link") 2>conftest.er1
12840   ac_status=$?
12841   grep -v '^ *+' conftest.er1 >conftest.err
12842   rm -f conftest.er1
12843   cat conftest.err >&5
12844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12845   (exit $ac_status); } &&
12846          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12847   { (case "(($ac_try" in
12848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12849   *) ac_try_echo=$ac_try;;
12850 esac
12851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12852   (eval "$ac_try") 2>&5
12853   ac_status=$?
12854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12855   (exit $ac_status); }; } &&
12856          { ac_try='test -s conftest$ac_exeext'
12857   { (case "(($ac_try" in
12858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12859   *) ac_try_echo=$ac_try;;
12860 esac
12861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12862   (eval "$ac_try") 2>&5
12863   ac_status=$?
12864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12865   (exit $ac_status); }; }; then
12866   eval "$as_ac_var=yes"
12867 else
12868   echo "$as_me: failed program was:" >&5
12869 sed 's/^/| /' conftest.$ac_ext >&5
12870
12871         eval "$as_ac_var=no"
12872 fi
12873
12874 rm -f core conftest.err conftest.$ac_objext \
12875       conftest$ac_exeext conftest.$ac_ext
12876 fi
12877 ac_res=`eval echo '${'$as_ac_var'}'`
12878                { echo "$as_me:$LINENO: result: $ac_res" >&5
12879 echo "${ECHO_T}$ac_res" >&6; }
12880 if test `eval echo '${'$as_ac_var'}'` = yes; then
12881   cat >>confdefs.h <<_ACEOF
12882 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12883 _ACEOF
12884  break
12885 fi
12886 done
12887
12888
12889
12890 for ac_func in memmove strcmp
12891 do
12892 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12893 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12894 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12895 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12896   echo $ECHO_N "(cached) $ECHO_C" >&6
12897 else
12898   cat >conftest.$ac_ext <<_ACEOF
12899 /* confdefs.h.  */
12900 _ACEOF
12901 cat confdefs.h >>conftest.$ac_ext
12902 cat >>conftest.$ac_ext <<_ACEOF
12903 /* end confdefs.h.  */
12904 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12905    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12906 #define $ac_func innocuous_$ac_func
12907
12908 /* System header to define __stub macros and hopefully few prototypes,
12909     which can conflict with char $ac_func (); below.
12910     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12911     <limits.h> exists even on freestanding compilers.  */
12912
12913 #ifdef __STDC__
12914 # include <limits.h>
12915 #else
12916 # include <assert.h>
12917 #endif
12918
12919 #undef $ac_func
12920
12921 /* Override any GCC internal prototype to avoid an error.
12922    Use char because int might match the return type of a GCC
12923    builtin and then its argument prototype would still apply.  */
12924 #ifdef __cplusplus
12925 extern "C"
12926 #endif
12927 char $ac_func ();
12928 /* The GNU C library defines this for functions which it implements
12929     to always fail with ENOSYS.  Some functions are actually named
12930     something starting with __ and the normal name is an alias.  */
12931 #if defined __stub_$ac_func || defined __stub___$ac_func
12932 choke me
12933 #endif
12934
12935 int
12936 main ()
12937 {
12938 return $ac_func ();
12939   ;
12940   return 0;
12941 }
12942 _ACEOF
12943 rm -f conftest.$ac_objext conftest$ac_exeext
12944 if { (ac_try="$ac_link"
12945 case "(($ac_try" in
12946   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12947   *) ac_try_echo=$ac_try;;
12948 esac
12949 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12950   (eval "$ac_link") 2>conftest.er1
12951   ac_status=$?
12952   grep -v '^ *+' conftest.er1 >conftest.err
12953   rm -f conftest.er1
12954   cat conftest.err >&5
12955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12956   (exit $ac_status); } &&
12957          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12958   { (case "(($ac_try" in
12959   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12960   *) ac_try_echo=$ac_try;;
12961 esac
12962 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12963   (eval "$ac_try") 2>&5
12964   ac_status=$?
12965   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12966   (exit $ac_status); }; } &&
12967          { ac_try='test -s conftest$ac_exeext'
12968   { (case "(($ac_try" in
12969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12970   *) ac_try_echo=$ac_try;;
12971 esac
12972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12973   (eval "$ac_try") 2>&5
12974   ac_status=$?
12975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12976   (exit $ac_status); }; }; then
12977   eval "$as_ac_var=yes"
12978 else
12979   echo "$as_me: failed program was:" >&5
12980 sed 's/^/| /' conftest.$ac_ext >&5
12981
12982         eval "$as_ac_var=no"
12983 fi
12984
12985 rm -f core conftest.err conftest.$ac_objext \
12986       conftest$ac_exeext conftest.$ac_ext
12987 fi
12988 ac_res=`eval echo '${'$as_ac_var'}'`
12989                { echo "$as_me:$LINENO: result: $ac_res" >&5
12990 echo "${ECHO_T}$ac_res" >&6; }
12991 if test `eval echo '${'$as_ac_var'}'` = yes; then
12992   cat >>confdefs.h <<_ACEOF
12993 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12994 _ACEOF
12995
12996 fi
12997 done
12998
12999
13000
13001
13002 for ac_func in closedir opendir readdir
13003 do
13004 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13005 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13006 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13007 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13008   echo $ECHO_N "(cached) $ECHO_C" >&6
13009 else
13010   cat >conftest.$ac_ext <<_ACEOF
13011 /* confdefs.h.  */
13012 _ACEOF
13013 cat confdefs.h >>conftest.$ac_ext
13014 cat >>conftest.$ac_ext <<_ACEOF
13015 /* end confdefs.h.  */
13016 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13017    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13018 #define $ac_func innocuous_$ac_func
13019
13020 /* System header to define __stub macros and hopefully few prototypes,
13021     which can conflict with char $ac_func (); below.
13022     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13023     <limits.h> exists even on freestanding compilers.  */
13024
13025 #ifdef __STDC__
13026 # include <limits.h>
13027 #else
13028 # include <assert.h>
13029 #endif
13030
13031 #undef $ac_func
13032
13033 /* Override any GCC internal prototype to avoid an error.
13034    Use char because int might match the return type of a GCC
13035    builtin and then its argument prototype would still apply.  */
13036 #ifdef __cplusplus
13037 extern "C"
13038 #endif
13039 char $ac_func ();
13040 /* The GNU C library defines this for functions which it implements
13041     to always fail with ENOSYS.  Some functions are actually named
13042     something starting with __ and the normal name is an alias.  */
13043 #if defined __stub_$ac_func || defined __stub___$ac_func
13044 choke me
13045 #endif
13046
13047 int
13048 main ()
13049 {
13050 return $ac_func ();
13051   ;
13052   return 0;
13053 }
13054 _ACEOF
13055 rm -f conftest.$ac_objext conftest$ac_exeext
13056 if { (ac_try="$ac_link"
13057 case "(($ac_try" in
13058   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13059   *) ac_try_echo=$ac_try;;
13060 esac
13061 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13062   (eval "$ac_link") 2>conftest.er1
13063   ac_status=$?
13064   grep -v '^ *+' conftest.er1 >conftest.err
13065   rm -f conftest.er1
13066   cat conftest.err >&5
13067   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13068   (exit $ac_status); } &&
13069          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13070   { (case "(($ac_try" in
13071   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13072   *) ac_try_echo=$ac_try;;
13073 esac
13074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13075   (eval "$ac_try") 2>&5
13076   ac_status=$?
13077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13078   (exit $ac_status); }; } &&
13079          { ac_try='test -s conftest$ac_exeext'
13080   { (case "(($ac_try" in
13081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13082   *) ac_try_echo=$ac_try;;
13083 esac
13084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13085   (eval "$ac_try") 2>&5
13086   ac_status=$?
13087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13088   (exit $ac_status); }; }; then
13089   eval "$as_ac_var=yes"
13090 else
13091   echo "$as_me: failed program was:" >&5
13092 sed 's/^/| /' conftest.$ac_ext >&5
13093
13094         eval "$as_ac_var=no"
13095 fi
13096
13097 rm -f core conftest.err conftest.$ac_objext \
13098       conftest$ac_exeext conftest.$ac_ext
13099 fi
13100 ac_res=`eval echo '${'$as_ac_var'}'`
13101                { echo "$as_me:$LINENO: result: $ac_res" >&5
13102 echo "${ECHO_T}$ac_res" >&6; }
13103 if test `eval echo '${'$as_ac_var'}'` = yes; then
13104   cat >>confdefs.h <<_ACEOF
13105 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13106 _ACEOF
13107
13108 fi
13109 done
13110
13111
13112
13113 if test "$WITH_LLVMGCCDIR" = "default" ; then
13114   LLVMGCC="llvm-gcc${EXEEXT}"
13115   LLVMGXX="llvm-g++${EXEEXT}"
13116   LLVMGCCCOMMAND="$LLVMGCC"
13117   LLVMGXXCOMMAND="$LLVMGXX"
13118   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13119
13120   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13121
13122   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13123 set dummy $LLVMGCC; ac_word=$2
13124 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13125 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13126 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13127   echo $ECHO_N "(cached) $ECHO_C" >&6
13128 else
13129   case $LLVMGCC in
13130   [\\/]* | ?:[\\/]*)
13131   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13132   ;;
13133   *)
13134   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13135 for as_dir in $PATH
13136 do
13137   IFS=$as_save_IFS
13138   test -z "$as_dir" && as_dir=.
13139   for ac_exec_ext in '' $ac_executable_extensions; do
13140   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13141     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13142     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13143     break 2
13144   fi
13145 done
13146 done
13147 IFS=$as_save_IFS
13148
13149   ;;
13150 esac
13151 fi
13152 LLVMGCC=$ac_cv_path_LLVMGCC
13153 if test -n "$LLVMGCC"; then
13154   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13155 echo "${ECHO_T}$LLVMGCC" >&6; }
13156 else
13157   { echo "$as_me:$LINENO: result: no" >&5
13158 echo "${ECHO_T}no" >&6; }
13159 fi
13160
13161
13162   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13163 set dummy $LLVMGXX; ac_word=$2
13164 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13165 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13166 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13167   echo $ECHO_N "(cached) $ECHO_C" >&6
13168 else
13169   case $LLVMGXX in
13170   [\\/]* | ?:[\\/]*)
13171   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13172   ;;
13173   *)
13174   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13175 for as_dir in $PATH
13176 do
13177   IFS=$as_save_IFS
13178   test -z "$as_dir" && as_dir=.
13179   for ac_exec_ext in '' $ac_executable_extensions; do
13180   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13181     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13182     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13183     break 2
13184   fi
13185 done
13186 done
13187 IFS=$as_save_IFS
13188
13189   ;;
13190 esac
13191 fi
13192 LLVMGXX=$ac_cv_path_LLVMGXX
13193 if test -n "$LLVMGXX"; then
13194   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13195 echo "${ECHO_T}$LLVMGXX" >&6; }
13196 else
13197   { echo "$as_me:$LINENO: result: no" >&5
13198 echo "${ECHO_T}no" >&6; }
13199 fi
13200
13201
13202 else
13203   if test -z "$LLVMGCC"; then
13204     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13205     LLVMGCCCOMMAND="$LLVMGCC"
13206   fi
13207   if test -z "$LLVMGXX"; then
13208     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13209     LLVMGXXCOMMAND="$LLVMGXX"
13210   fi
13211
13212   LLVMGCC=$LLVMGCC
13213
13214   LLVMGXX=$LLVMGXX
13215
13216   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13217
13218   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13219
13220 fi
13221
13222
13223 # Check whether --with-llvmcc was given.
13224 if test "${with_llvmcc+set}" = set; then
13225   withval=$with_llvmcc;
13226 else
13227   with_llvmcc=check
13228 fi
13229
13230 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13231 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13232 if test "$with_llvmcc" != "check"; then
13233    if (test "$with_llvmcc" != "llvm-gcc" &&
13234        test "$with_llvmcc" != "clang" &&
13235        test "$with_llvmcc" != "none"); then
13236       { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13237 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13238    { (exit 1); exit 1; }; }
13239    fi
13240    WITH_LLVMCC="$with_llvmcc"
13241 elif test -n "$LLVMGCC"; then
13242    WITH_LLVMCC=llvm-gcc
13243 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13244    WITH_LLVMCC=clang
13245 else
13246    WITH_LLVMCC=none
13247 fi
13248 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13249 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13250 LLVMCC_OPTION=$WITH_LLVMCC
13251
13252
13253 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13254 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13255
13256 ICC=no
13257 IXX=no
13258 case $CC in
13259   icc*|icpc*)
13260     ICC=yes
13261     IXX=yes
13262     ;;
13263    *)
13264     ;;
13265 esac
13266
13267 if test "$GCC" != "yes" && test "$ICC" != "yes"
13268 then
13269   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13270 echo "$as_me: error: gcc|icc required but not found" >&2;}
13271    { (exit 1); exit 1; }; }
13272 fi
13273
13274 if test "$GXX" != "yes" && test "$IXX" != "yes"
13275 then
13276   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13277 echo "$as_me: error: g++|icc required but not found" >&2;}
13278    { (exit 1); exit 1; }; }
13279 fi
13280
13281 if test "$GCC" = "yes"
13282 then
13283   cat >conftest.$ac_ext <<_ACEOF
13284 #if !defined(__GNUC__) || __GNUC__ < 3
13285 #error Unsupported GCC version
13286 #endif
13287
13288 _ACEOF
13289 rm -f conftest.$ac_objext
13290 if { (ac_try="$ac_compile"
13291 case "(($ac_try" in
13292   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13293   *) ac_try_echo=$ac_try;;
13294 esac
13295 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13296   (eval "$ac_compile") 2>conftest.er1
13297   ac_status=$?
13298   grep -v '^ *+' conftest.er1 >conftest.err
13299   rm -f conftest.er1
13300   cat conftest.err >&5
13301   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13302   (exit $ac_status); } &&
13303          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13304   { (case "(($ac_try" in
13305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13306   *) ac_try_echo=$ac_try;;
13307 esac
13308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13309   (eval "$ac_try") 2>&5
13310   ac_status=$?
13311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13312   (exit $ac_status); }; } &&
13313          { ac_try='test -s conftest.$ac_objext'
13314   { (case "(($ac_try" in
13315   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13316   *) ac_try_echo=$ac_try;;
13317 esac
13318 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13319   (eval "$ac_try") 2>&5
13320   ac_status=$?
13321   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13322   (exit $ac_status); }; }; then
13323   :
13324 else
13325   echo "$as_me: failed program was:" >&5
13326 sed 's/^/| /' conftest.$ac_ext >&5
13327
13328         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13329 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13330    { (exit 1); exit 1; }; }
13331 fi
13332
13333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13334 fi
13335
13336 if test -z "$llvm_cv_gnu_make_command"
13337 then
13338   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13339 echo "$as_me: error: GNU Make required but not found" >&2;}
13340    { (exit 1); exit 1; }; }
13341 fi
13342
13343 { echo "$as_me:$LINENO: result: ok" >&5
13344 echo "${ECHO_T}ok" >&6; }
13345
13346 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13347 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13348 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13349
13350 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13351
13352 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13353 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13354
13355
13356
13357 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13358 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13359 if test "${ac_cv_lib_m_sin+set}" = set; then
13360   echo $ECHO_N "(cached) $ECHO_C" >&6
13361 else
13362   ac_check_lib_save_LIBS=$LIBS
13363 LIBS="-lm  $LIBS"
13364 cat >conftest.$ac_ext <<_ACEOF
13365 /* confdefs.h.  */
13366 _ACEOF
13367 cat confdefs.h >>conftest.$ac_ext
13368 cat >>conftest.$ac_ext <<_ACEOF
13369 /* end confdefs.h.  */
13370
13371 /* Override any GCC internal prototype to avoid an error.
13372    Use char because int might match the return type of a GCC
13373    builtin and then its argument prototype would still apply.  */
13374 #ifdef __cplusplus
13375 extern "C"
13376 #endif
13377 char sin ();
13378 int
13379 main ()
13380 {
13381 return sin ();
13382   ;
13383   return 0;
13384 }
13385 _ACEOF
13386 rm -f conftest.$ac_objext conftest$ac_exeext
13387 if { (ac_try="$ac_link"
13388 case "(($ac_try" in
13389   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13390   *) ac_try_echo=$ac_try;;
13391 esac
13392 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13393   (eval "$ac_link") 2>conftest.er1
13394   ac_status=$?
13395   grep -v '^ *+' conftest.er1 >conftest.err
13396   rm -f conftest.er1
13397   cat conftest.err >&5
13398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13399   (exit $ac_status); } &&
13400          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13401   { (case "(($ac_try" in
13402   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13403   *) ac_try_echo=$ac_try;;
13404 esac
13405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13406   (eval "$ac_try") 2>&5
13407   ac_status=$?
13408   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13409   (exit $ac_status); }; } &&
13410          { ac_try='test -s conftest$ac_exeext'
13411   { (case "(($ac_try" in
13412   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13413   *) ac_try_echo=$ac_try;;
13414 esac
13415 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13416   (eval "$ac_try") 2>&5
13417   ac_status=$?
13418   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13419   (exit $ac_status); }; }; then
13420   ac_cv_lib_m_sin=yes
13421 else
13422   echo "$as_me: failed program was:" >&5
13423 sed 's/^/| /' conftest.$ac_ext >&5
13424
13425         ac_cv_lib_m_sin=no
13426 fi
13427
13428 rm -f core conftest.err conftest.$ac_objext \
13429       conftest$ac_exeext conftest.$ac_ext
13430 LIBS=$ac_check_lib_save_LIBS
13431 fi
13432 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13433 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13434 if test $ac_cv_lib_m_sin = yes; then
13435   cat >>confdefs.h <<_ACEOF
13436 #define HAVE_LIBM 1
13437 _ACEOF
13438
13439   LIBS="-lm $LIBS"
13440
13441 fi
13442
13443 if test "$llvm_cv_os_type" = "MingW" ; then
13444
13445 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13446 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13447 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13448   echo $ECHO_N "(cached) $ECHO_C" >&6
13449 else
13450   ac_check_lib_save_LIBS=$LIBS
13451 LIBS="-limagehlp  $LIBS"
13452 cat >conftest.$ac_ext <<_ACEOF
13453 /* confdefs.h.  */
13454 _ACEOF
13455 cat confdefs.h >>conftest.$ac_ext
13456 cat >>conftest.$ac_ext <<_ACEOF
13457 /* end confdefs.h.  */
13458
13459
13460 int
13461 main ()
13462 {
13463 return main ();
13464   ;
13465   return 0;
13466 }
13467 _ACEOF
13468 rm -f conftest.$ac_objext conftest$ac_exeext
13469 if { (ac_try="$ac_link"
13470 case "(($ac_try" in
13471   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13472   *) ac_try_echo=$ac_try;;
13473 esac
13474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13475   (eval "$ac_link") 2>conftest.er1
13476   ac_status=$?
13477   grep -v '^ *+' conftest.er1 >conftest.err
13478   rm -f conftest.er1
13479   cat conftest.err >&5
13480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13481   (exit $ac_status); } &&
13482          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13483   { (case "(($ac_try" in
13484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13485   *) ac_try_echo=$ac_try;;
13486 esac
13487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13488   (eval "$ac_try") 2>&5
13489   ac_status=$?
13490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13491   (exit $ac_status); }; } &&
13492          { ac_try='test -s conftest$ac_exeext'
13493   { (case "(($ac_try" in
13494   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13495   *) ac_try_echo=$ac_try;;
13496 esac
13497 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13498   (eval "$ac_try") 2>&5
13499   ac_status=$?
13500   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13501   (exit $ac_status); }; }; then
13502   ac_cv_lib_imagehlp_main=yes
13503 else
13504   echo "$as_me: failed program was:" >&5
13505 sed 's/^/| /' conftest.$ac_ext >&5
13506
13507         ac_cv_lib_imagehlp_main=no
13508 fi
13509
13510 rm -f core conftest.err conftest.$ac_objext \
13511       conftest$ac_exeext conftest.$ac_ext
13512 LIBS=$ac_check_lib_save_LIBS
13513 fi
13514 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13515 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13516 if test $ac_cv_lib_imagehlp_main = yes; then
13517   cat >>confdefs.h <<_ACEOF
13518 #define HAVE_LIBIMAGEHLP 1
13519 _ACEOF
13520
13521   LIBS="-limagehlp $LIBS"
13522
13523 fi
13524
13525
13526 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13527 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13528 if test "${ac_cv_lib_psapi_main+set}" = set; then
13529   echo $ECHO_N "(cached) $ECHO_C" >&6
13530 else
13531   ac_check_lib_save_LIBS=$LIBS
13532 LIBS="-lpsapi  $LIBS"
13533 cat >conftest.$ac_ext <<_ACEOF
13534 /* confdefs.h.  */
13535 _ACEOF
13536 cat confdefs.h >>conftest.$ac_ext
13537 cat >>conftest.$ac_ext <<_ACEOF
13538 /* end confdefs.h.  */
13539
13540
13541 int
13542 main ()
13543 {
13544 return main ();
13545   ;
13546   return 0;
13547 }
13548 _ACEOF
13549 rm -f conftest.$ac_objext conftest$ac_exeext
13550 if { (ac_try="$ac_link"
13551 case "(($ac_try" in
13552   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13553   *) ac_try_echo=$ac_try;;
13554 esac
13555 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13556   (eval "$ac_link") 2>conftest.er1
13557   ac_status=$?
13558   grep -v '^ *+' conftest.er1 >conftest.err
13559   rm -f conftest.er1
13560   cat conftest.err >&5
13561   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13562   (exit $ac_status); } &&
13563          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13564   { (case "(($ac_try" in
13565   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13566   *) ac_try_echo=$ac_try;;
13567 esac
13568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13569   (eval "$ac_try") 2>&5
13570   ac_status=$?
13571   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13572   (exit $ac_status); }; } &&
13573          { ac_try='test -s conftest$ac_exeext'
13574   { (case "(($ac_try" in
13575   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13576   *) ac_try_echo=$ac_try;;
13577 esac
13578 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13579   (eval "$ac_try") 2>&5
13580   ac_status=$?
13581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13582   (exit $ac_status); }; }; then
13583   ac_cv_lib_psapi_main=yes
13584 else
13585   echo "$as_me: failed program was:" >&5
13586 sed 's/^/| /' conftest.$ac_ext >&5
13587
13588         ac_cv_lib_psapi_main=no
13589 fi
13590
13591 rm -f core conftest.err conftest.$ac_objext \
13592       conftest$ac_exeext conftest.$ac_ext
13593 LIBS=$ac_check_lib_save_LIBS
13594 fi
13595 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13596 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13597 if test $ac_cv_lib_psapi_main = yes; then
13598   cat >>confdefs.h <<_ACEOF
13599 #define HAVE_LIBPSAPI 1
13600 _ACEOF
13601
13602   LIBS="-lpsapi $LIBS"
13603
13604 fi
13605
13606 fi
13607
13608 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13609 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13610 if test "${ac_cv_search_dlopen+set}" = set; then
13611   echo $ECHO_N "(cached) $ECHO_C" >&6
13612 else
13613   ac_func_search_save_LIBS=$LIBS
13614 cat >conftest.$ac_ext <<_ACEOF
13615 /* confdefs.h.  */
13616 _ACEOF
13617 cat confdefs.h >>conftest.$ac_ext
13618 cat >>conftest.$ac_ext <<_ACEOF
13619 /* end confdefs.h.  */
13620
13621 /* Override any GCC internal prototype to avoid an error.
13622    Use char because int might match the return type of a GCC
13623    builtin and then its argument prototype would still apply.  */
13624 #ifdef __cplusplus
13625 extern "C"
13626 #endif
13627 char dlopen ();
13628 int
13629 main ()
13630 {
13631 return dlopen ();
13632   ;
13633   return 0;
13634 }
13635 _ACEOF
13636 for ac_lib in '' dl; do
13637   if test -z "$ac_lib"; then
13638     ac_res="none required"
13639   else
13640     ac_res=-l$ac_lib
13641     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13642   fi
13643   rm -f conftest.$ac_objext conftest$ac_exeext
13644 if { (ac_try="$ac_link"
13645 case "(($ac_try" in
13646   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13647   *) ac_try_echo=$ac_try;;
13648 esac
13649 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13650   (eval "$ac_link") 2>conftest.er1
13651   ac_status=$?
13652   grep -v '^ *+' conftest.er1 >conftest.err
13653   rm -f conftest.er1
13654   cat conftest.err >&5
13655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13656   (exit $ac_status); } &&
13657          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13658   { (case "(($ac_try" in
13659   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13660   *) ac_try_echo=$ac_try;;
13661 esac
13662 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13663   (eval "$ac_try") 2>&5
13664   ac_status=$?
13665   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13666   (exit $ac_status); }; } &&
13667          { ac_try='test -s conftest$ac_exeext'
13668   { (case "(($ac_try" in
13669   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13670   *) ac_try_echo=$ac_try;;
13671 esac
13672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13673   (eval "$ac_try") 2>&5
13674   ac_status=$?
13675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13676   (exit $ac_status); }; }; then
13677   ac_cv_search_dlopen=$ac_res
13678 else
13679   echo "$as_me: failed program was:" >&5
13680 sed 's/^/| /' conftest.$ac_ext >&5
13681
13682
13683 fi
13684
13685 rm -f core conftest.err conftest.$ac_objext \
13686       conftest$ac_exeext
13687   if test "${ac_cv_search_dlopen+set}" = set; then
13688   break
13689 fi
13690 done
13691 if test "${ac_cv_search_dlopen+set}" = set; then
13692   :
13693 else
13694   ac_cv_search_dlopen=no
13695 fi
13696 rm conftest.$ac_ext
13697 LIBS=$ac_func_search_save_LIBS
13698 fi
13699 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13700 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13701 ac_res=$ac_cv_search_dlopen
13702 if test "$ac_res" != no; then
13703   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13704
13705 cat >>confdefs.h <<\_ACEOF
13706 #define HAVE_DLOPEN 1
13707 _ACEOF
13708
13709 else
13710   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13711 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13712 fi
13713
13714
13715 if test "$llvm_cv_enable_libffi" = "yes" ; then
13716   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13717 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13718 if test "${ac_cv_search_ffi_call+set}" = set; then
13719   echo $ECHO_N "(cached) $ECHO_C" >&6
13720 else
13721   ac_func_search_save_LIBS=$LIBS
13722 cat >conftest.$ac_ext <<_ACEOF
13723 /* confdefs.h.  */
13724 _ACEOF
13725 cat confdefs.h >>conftest.$ac_ext
13726 cat >>conftest.$ac_ext <<_ACEOF
13727 /* end confdefs.h.  */
13728
13729 /* Override any GCC internal prototype to avoid an error.
13730    Use char because int might match the return type of a GCC
13731    builtin and then its argument prototype would still apply.  */
13732 #ifdef __cplusplus
13733 extern "C"
13734 #endif
13735 char ffi_call ();
13736 int
13737 main ()
13738 {
13739 return ffi_call ();
13740   ;
13741   return 0;
13742 }
13743 _ACEOF
13744 for ac_lib in '' ffi; do
13745   if test -z "$ac_lib"; then
13746     ac_res="none required"
13747   else
13748     ac_res=-l$ac_lib
13749     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13750   fi
13751   rm -f conftest.$ac_objext conftest$ac_exeext
13752 if { (ac_try="$ac_link"
13753 case "(($ac_try" in
13754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13755   *) ac_try_echo=$ac_try;;
13756 esac
13757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13758   (eval "$ac_link") 2>conftest.er1
13759   ac_status=$?
13760   grep -v '^ *+' conftest.er1 >conftest.err
13761   rm -f conftest.er1
13762   cat conftest.err >&5
13763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13764   (exit $ac_status); } &&
13765          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13766   { (case "(($ac_try" in
13767   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13768   *) ac_try_echo=$ac_try;;
13769 esac
13770 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13771   (eval "$ac_try") 2>&5
13772   ac_status=$?
13773   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13774   (exit $ac_status); }; } &&
13775          { ac_try='test -s conftest$ac_exeext'
13776   { (case "(($ac_try" in
13777   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13778   *) ac_try_echo=$ac_try;;
13779 esac
13780 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13781   (eval "$ac_try") 2>&5
13782   ac_status=$?
13783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13784   (exit $ac_status); }; }; then
13785   ac_cv_search_ffi_call=$ac_res
13786 else
13787   echo "$as_me: failed program was:" >&5
13788 sed 's/^/| /' conftest.$ac_ext >&5
13789
13790
13791 fi
13792
13793 rm -f core conftest.err conftest.$ac_objext \
13794       conftest$ac_exeext
13795   if test "${ac_cv_search_ffi_call+set}" = set; then
13796   break
13797 fi
13798 done
13799 if test "${ac_cv_search_ffi_call+set}" = set; then
13800   :
13801 else
13802   ac_cv_search_ffi_call=no
13803 fi
13804 rm conftest.$ac_ext
13805 LIBS=$ac_func_search_save_LIBS
13806 fi
13807 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13808 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13809 ac_res=$ac_cv_search_ffi_call
13810 if test "$ac_res" != no; then
13811   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13812
13813 cat >>confdefs.h <<\_ACEOF
13814 #define HAVE_FFI_CALL 1
13815 _ACEOF
13816
13817 else
13818   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13819 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13820    { (exit 1); exit 1; }; }
13821 fi
13822
13823 fi
13824
13825 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13826 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13827 if test "${ac_cv_search_mallinfo+set}" = set; then
13828   echo $ECHO_N "(cached) $ECHO_C" >&6
13829 else
13830   ac_func_search_save_LIBS=$LIBS
13831 cat >conftest.$ac_ext <<_ACEOF
13832 /* confdefs.h.  */
13833 _ACEOF
13834 cat confdefs.h >>conftest.$ac_ext
13835 cat >>conftest.$ac_ext <<_ACEOF
13836 /* end confdefs.h.  */
13837
13838 /* Override any GCC internal prototype to avoid an error.
13839    Use char because int might match the return type of a GCC
13840    builtin and then its argument prototype would still apply.  */
13841 #ifdef __cplusplus
13842 extern "C"
13843 #endif
13844 char mallinfo ();
13845 int
13846 main ()
13847 {
13848 return mallinfo ();
13849   ;
13850   return 0;
13851 }
13852 _ACEOF
13853 for ac_lib in '' malloc; do
13854   if test -z "$ac_lib"; then
13855     ac_res="none required"
13856   else
13857     ac_res=-l$ac_lib
13858     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13859   fi
13860   rm -f conftest.$ac_objext conftest$ac_exeext
13861 if { (ac_try="$ac_link"
13862 case "(($ac_try" in
13863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13864   *) ac_try_echo=$ac_try;;
13865 esac
13866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13867   (eval "$ac_link") 2>conftest.er1
13868   ac_status=$?
13869   grep -v '^ *+' conftest.er1 >conftest.err
13870   rm -f conftest.er1
13871   cat conftest.err >&5
13872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13873   (exit $ac_status); } &&
13874          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13875   { (case "(($ac_try" in
13876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13877   *) ac_try_echo=$ac_try;;
13878 esac
13879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13880   (eval "$ac_try") 2>&5
13881   ac_status=$?
13882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13883   (exit $ac_status); }; } &&
13884          { ac_try='test -s conftest$ac_exeext'
13885   { (case "(($ac_try" in
13886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13887   *) ac_try_echo=$ac_try;;
13888 esac
13889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13890   (eval "$ac_try") 2>&5
13891   ac_status=$?
13892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13893   (exit $ac_status); }; }; then
13894   ac_cv_search_mallinfo=$ac_res
13895 else
13896   echo "$as_me: failed program was:" >&5
13897 sed 's/^/| /' conftest.$ac_ext >&5
13898
13899
13900 fi
13901
13902 rm -f core conftest.err conftest.$ac_objext \
13903       conftest$ac_exeext
13904   if test "${ac_cv_search_mallinfo+set}" = set; then
13905   break
13906 fi
13907 done
13908 if test "${ac_cv_search_mallinfo+set}" = set; then
13909   :
13910 else
13911   ac_cv_search_mallinfo=no
13912 fi
13913 rm conftest.$ac_ext
13914 LIBS=$ac_func_search_save_LIBS
13915 fi
13916 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13917 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13918 ac_res=$ac_cv_search_mallinfo
13919 if test "$ac_res" != no; then
13920   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13921
13922 cat >>confdefs.h <<\_ACEOF
13923 #define HAVE_MALLINFO 1
13924 _ACEOF
13925
13926 fi
13927
13928
13929 if test "$ENABLE_THREADS" -eq 1 ; then
13930
13931 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13932 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13933 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13934   echo $ECHO_N "(cached) $ECHO_C" >&6
13935 else
13936   ac_check_lib_save_LIBS=$LIBS
13937 LIBS="-lpthread  $LIBS"
13938 cat >conftest.$ac_ext <<_ACEOF
13939 /* confdefs.h.  */
13940 _ACEOF
13941 cat confdefs.h >>conftest.$ac_ext
13942 cat >>conftest.$ac_ext <<_ACEOF
13943 /* end confdefs.h.  */
13944
13945 /* Override any GCC internal prototype to avoid an error.
13946    Use char because int might match the return type of a GCC
13947    builtin and then its argument prototype would still apply.  */
13948 #ifdef __cplusplus
13949 extern "C"
13950 #endif
13951 char pthread_mutex_init ();
13952 int
13953 main ()
13954 {
13955 return pthread_mutex_init ();
13956   ;
13957   return 0;
13958 }
13959 _ACEOF
13960 rm -f conftest.$ac_objext conftest$ac_exeext
13961 if { (ac_try="$ac_link"
13962 case "(($ac_try" in
13963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13964   *) ac_try_echo=$ac_try;;
13965 esac
13966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13967   (eval "$ac_link") 2>conftest.er1
13968   ac_status=$?
13969   grep -v '^ *+' conftest.er1 >conftest.err
13970   rm -f conftest.er1
13971   cat conftest.err >&5
13972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13973   (exit $ac_status); } &&
13974          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13975   { (case "(($ac_try" in
13976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13977   *) ac_try_echo=$ac_try;;
13978 esac
13979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13980   (eval "$ac_try") 2>&5
13981   ac_status=$?
13982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13983   (exit $ac_status); }; } &&
13984          { ac_try='test -s conftest$ac_exeext'
13985   { (case "(($ac_try" in
13986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13987   *) ac_try_echo=$ac_try;;
13988 esac
13989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13990   (eval "$ac_try") 2>&5
13991   ac_status=$?
13992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13993   (exit $ac_status); }; }; then
13994   ac_cv_lib_pthread_pthread_mutex_init=yes
13995 else
13996   echo "$as_me: failed program was:" >&5
13997 sed 's/^/| /' conftest.$ac_ext >&5
13998
13999         ac_cv_lib_pthread_pthread_mutex_init=no
14000 fi
14001
14002 rm -f core conftest.err conftest.$ac_objext \
14003       conftest$ac_exeext conftest.$ac_ext
14004 LIBS=$ac_check_lib_save_LIBS
14005 fi
14006 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14007 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14008 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
14009   cat >>confdefs.h <<_ACEOF
14010 #define HAVE_LIBPTHREAD 1
14011 _ACEOF
14012
14013   LIBS="-lpthread $LIBS"
14014
14015 fi
14016
14017   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14018 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14019 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14020   echo $ECHO_N "(cached) $ECHO_C" >&6
14021 else
14022   ac_func_search_save_LIBS=$LIBS
14023 cat >conftest.$ac_ext <<_ACEOF
14024 /* confdefs.h.  */
14025 _ACEOF
14026 cat confdefs.h >>conftest.$ac_ext
14027 cat >>conftest.$ac_ext <<_ACEOF
14028 /* end confdefs.h.  */
14029
14030 /* Override any GCC internal prototype to avoid an error.
14031    Use char because int might match the return type of a GCC
14032    builtin and then its argument prototype would still apply.  */
14033 #ifdef __cplusplus
14034 extern "C"
14035 #endif
14036 char pthread_mutex_lock ();
14037 int
14038 main ()
14039 {
14040 return pthread_mutex_lock ();
14041   ;
14042   return 0;
14043 }
14044 _ACEOF
14045 for ac_lib in '' pthread; do
14046   if test -z "$ac_lib"; then
14047     ac_res="none required"
14048   else
14049     ac_res=-l$ac_lib
14050     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14051   fi
14052   rm -f conftest.$ac_objext conftest$ac_exeext
14053 if { (ac_try="$ac_link"
14054 case "(($ac_try" in
14055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14056   *) ac_try_echo=$ac_try;;
14057 esac
14058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14059   (eval "$ac_link") 2>conftest.er1
14060   ac_status=$?
14061   grep -v '^ *+' conftest.er1 >conftest.err
14062   rm -f conftest.er1
14063   cat conftest.err >&5
14064   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14065   (exit $ac_status); } &&
14066          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14067   { (case "(($ac_try" in
14068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14069   *) ac_try_echo=$ac_try;;
14070 esac
14071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14072   (eval "$ac_try") 2>&5
14073   ac_status=$?
14074   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14075   (exit $ac_status); }; } &&
14076          { ac_try='test -s conftest$ac_exeext'
14077   { (case "(($ac_try" in
14078   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14079   *) ac_try_echo=$ac_try;;
14080 esac
14081 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14082   (eval "$ac_try") 2>&5
14083   ac_status=$?
14084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14085   (exit $ac_status); }; }; then
14086   ac_cv_search_pthread_mutex_lock=$ac_res
14087 else
14088   echo "$as_me: failed program was:" >&5
14089 sed 's/^/| /' conftest.$ac_ext >&5
14090
14091
14092 fi
14093
14094 rm -f core conftest.err conftest.$ac_objext \
14095       conftest$ac_exeext
14096   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14097   break
14098 fi
14099 done
14100 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14101   :
14102 else
14103   ac_cv_search_pthread_mutex_lock=no
14104 fi
14105 rm conftest.$ac_ext
14106 LIBS=$ac_func_search_save_LIBS
14107 fi
14108 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14109 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14110 ac_res=$ac_cv_search_pthread_mutex_lock
14111 if test "$ac_res" != no; then
14112   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14113
14114 cat >>confdefs.h <<\_ACEOF
14115 #define HAVE_PTHREAD_MUTEX_LOCK 1
14116 _ACEOF
14117
14118 fi
14119
14120   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14121 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14122 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14123   echo $ECHO_N "(cached) $ECHO_C" >&6
14124 else
14125   ac_func_search_save_LIBS=$LIBS
14126 cat >conftest.$ac_ext <<_ACEOF
14127 /* confdefs.h.  */
14128 _ACEOF
14129 cat confdefs.h >>conftest.$ac_ext
14130 cat >>conftest.$ac_ext <<_ACEOF
14131 /* end confdefs.h.  */
14132
14133 /* Override any GCC internal prototype to avoid an error.
14134    Use char because int might match the return type of a GCC
14135    builtin and then its argument prototype would still apply.  */
14136 #ifdef __cplusplus
14137 extern "C"
14138 #endif
14139 char pthread_rwlock_init ();
14140 int
14141 main ()
14142 {
14143 return pthread_rwlock_init ();
14144   ;
14145   return 0;
14146 }
14147 _ACEOF
14148 for ac_lib in '' pthread; do
14149   if test -z "$ac_lib"; then
14150     ac_res="none required"
14151   else
14152     ac_res=-l$ac_lib
14153     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14154   fi
14155   rm -f conftest.$ac_objext conftest$ac_exeext
14156 if { (ac_try="$ac_link"
14157 case "(($ac_try" in
14158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14159   *) ac_try_echo=$ac_try;;
14160 esac
14161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14162   (eval "$ac_link") 2>conftest.er1
14163   ac_status=$?
14164   grep -v '^ *+' conftest.er1 >conftest.err
14165   rm -f conftest.er1
14166   cat conftest.err >&5
14167   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14168   (exit $ac_status); } &&
14169          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14170   { (case "(($ac_try" in
14171   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14172   *) ac_try_echo=$ac_try;;
14173 esac
14174 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14175   (eval "$ac_try") 2>&5
14176   ac_status=$?
14177   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14178   (exit $ac_status); }; } &&
14179          { ac_try='test -s conftest$ac_exeext'
14180   { (case "(($ac_try" in
14181   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14182   *) ac_try_echo=$ac_try;;
14183 esac
14184 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14185   (eval "$ac_try") 2>&5
14186   ac_status=$?
14187   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14188   (exit $ac_status); }; }; then
14189   ac_cv_search_pthread_rwlock_init=$ac_res
14190 else
14191   echo "$as_me: failed program was:" >&5
14192 sed 's/^/| /' conftest.$ac_ext >&5
14193
14194
14195 fi
14196
14197 rm -f core conftest.err conftest.$ac_objext \
14198       conftest$ac_exeext
14199   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14200   break
14201 fi
14202 done
14203 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14204   :
14205 else
14206   ac_cv_search_pthread_rwlock_init=no
14207 fi
14208 rm conftest.$ac_ext
14209 LIBS=$ac_func_search_save_LIBS
14210 fi
14211 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14212 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14213 ac_res=$ac_cv_search_pthread_rwlock_init
14214 if test "$ac_res" != no; then
14215   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14216
14217 cat >>confdefs.h <<\_ACEOF
14218 #define HAVE_PTHREAD_RWLOCK_INIT 1
14219 _ACEOF
14220
14221 fi
14222
14223   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14224 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14225 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14226   echo $ECHO_N "(cached) $ECHO_C" >&6
14227 else
14228   ac_func_search_save_LIBS=$LIBS
14229 cat >conftest.$ac_ext <<_ACEOF
14230 /* confdefs.h.  */
14231 _ACEOF
14232 cat confdefs.h >>conftest.$ac_ext
14233 cat >>conftest.$ac_ext <<_ACEOF
14234 /* end confdefs.h.  */
14235
14236 /* Override any GCC internal prototype to avoid an error.
14237    Use char because int might match the return type of a GCC
14238    builtin and then its argument prototype would still apply.  */
14239 #ifdef __cplusplus
14240 extern "C"
14241 #endif
14242 char pthread_getspecific ();
14243 int
14244 main ()
14245 {
14246 return pthread_getspecific ();
14247   ;
14248   return 0;
14249 }
14250 _ACEOF
14251 for ac_lib in '' pthread; do
14252   if test -z "$ac_lib"; then
14253     ac_res="none required"
14254   else
14255     ac_res=-l$ac_lib
14256     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14257   fi
14258   rm -f conftest.$ac_objext conftest$ac_exeext
14259 if { (ac_try="$ac_link"
14260 case "(($ac_try" in
14261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14262   *) ac_try_echo=$ac_try;;
14263 esac
14264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14265   (eval "$ac_link") 2>conftest.er1
14266   ac_status=$?
14267   grep -v '^ *+' conftest.er1 >conftest.err
14268   rm -f conftest.er1
14269   cat conftest.err >&5
14270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14271   (exit $ac_status); } &&
14272          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14273   { (case "(($ac_try" in
14274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14275   *) ac_try_echo=$ac_try;;
14276 esac
14277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14278   (eval "$ac_try") 2>&5
14279   ac_status=$?
14280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14281   (exit $ac_status); }; } &&
14282          { ac_try='test -s conftest$ac_exeext'
14283   { (case "(($ac_try" in
14284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14285   *) ac_try_echo=$ac_try;;
14286 esac
14287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14288   (eval "$ac_try") 2>&5
14289   ac_status=$?
14290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14291   (exit $ac_status); }; }; then
14292   ac_cv_search_pthread_getspecific=$ac_res
14293 else
14294   echo "$as_me: failed program was:" >&5
14295 sed 's/^/| /' conftest.$ac_ext >&5
14296
14297
14298 fi
14299
14300 rm -f core conftest.err conftest.$ac_objext \
14301       conftest$ac_exeext
14302   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14303   break
14304 fi
14305 done
14306 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14307   :
14308 else
14309   ac_cv_search_pthread_getspecific=no
14310 fi
14311 rm conftest.$ac_ext
14312 LIBS=$ac_func_search_save_LIBS
14313 fi
14314 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14315 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14316 ac_res=$ac_cv_search_pthread_getspecific
14317 if test "$ac_res" != no; then
14318   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14319
14320 cat >>confdefs.h <<\_ACEOF
14321 #define HAVE_PTHREAD_GETSPECIFIC 1
14322 _ACEOF
14323
14324 fi
14325
14326 fi
14327
14328
14329 # Check whether --with-udis86 was given.
14330 if test "${with_udis86+set}" = set; then
14331   withval=$with_udis86;
14332       USE_UDIS86=1
14333
14334       case "$withval" in
14335         /usr/lib|yes) ;;
14336         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14337       esac
14338
14339 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14340 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14341 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14342   echo $ECHO_N "(cached) $ECHO_C" >&6
14343 else
14344   ac_check_lib_save_LIBS=$LIBS
14345 LIBS="-ludis86  $LIBS"
14346 cat >conftest.$ac_ext <<_ACEOF
14347 /* confdefs.h.  */
14348 _ACEOF
14349 cat confdefs.h >>conftest.$ac_ext
14350 cat >>conftest.$ac_ext <<_ACEOF
14351 /* end confdefs.h.  */
14352
14353 /* Override any GCC internal prototype to avoid an error.
14354    Use char because int might match the return type of a GCC
14355    builtin and then its argument prototype would still apply.  */
14356 #ifdef __cplusplus
14357 extern "C"
14358 #endif
14359 char ud_init ();
14360 int
14361 main ()
14362 {
14363 return ud_init ();
14364   ;
14365   return 0;
14366 }
14367 _ACEOF
14368 rm -f conftest.$ac_objext conftest$ac_exeext
14369 if { (ac_try="$ac_link"
14370 case "(($ac_try" in
14371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14372   *) ac_try_echo=$ac_try;;
14373 esac
14374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14375   (eval "$ac_link") 2>conftest.er1
14376   ac_status=$?
14377   grep -v '^ *+' conftest.er1 >conftest.err
14378   rm -f conftest.er1
14379   cat conftest.err >&5
14380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14381   (exit $ac_status); } &&
14382          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14383   { (case "(($ac_try" in
14384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14385   *) ac_try_echo=$ac_try;;
14386 esac
14387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14388   (eval "$ac_try") 2>&5
14389   ac_status=$?
14390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14391   (exit $ac_status); }; } &&
14392          { ac_try='test -s conftest$ac_exeext'
14393   { (case "(($ac_try" in
14394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14395   *) ac_try_echo=$ac_try;;
14396 esac
14397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14398   (eval "$ac_try") 2>&5
14399   ac_status=$?
14400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14401   (exit $ac_status); }; }; then
14402   ac_cv_lib_udis86_ud_init=yes
14403 else
14404   echo "$as_me: failed program was:" >&5
14405 sed 's/^/| /' conftest.$ac_ext >&5
14406
14407         ac_cv_lib_udis86_ud_init=no
14408 fi
14409
14410 rm -f core conftest.err conftest.$ac_objext \
14411       conftest$ac_exeext conftest.$ac_ext
14412 LIBS=$ac_check_lib_save_LIBS
14413 fi
14414 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14415 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14416 if test $ac_cv_lib_udis86_ud_init = yes; then
14417   cat >>confdefs.h <<_ACEOF
14418 #define HAVE_LIBUDIS86 1
14419 _ACEOF
14420
14421   LIBS="-ludis86 $LIBS"
14422
14423 else
14424
14425         echo "Error! You need to have libudis86 around."
14426         exit -1
14427
14428 fi
14429
14430
14431 else
14432   USE_UDIS86=0
14433
14434 fi
14435
14436
14437 cat >>confdefs.h <<_ACEOF
14438 #define USE_UDIS86 $USE_UDIS86
14439 _ACEOF
14440
14441
14442
14443 # Check whether --with-oprofile was given.
14444 if test "${with_oprofile+set}" = set; then
14445   withval=$with_oprofile;
14446       USE_OPROFILE=1
14447
14448       case "$withval" in
14449         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14450         no) llvm_cv_oppath=
14451             USE_OPROFILE=0
14452  ;;
14453         *) llvm_cv_oppath="${withval}/lib/oprofile"
14454            CPPFLAGS="-I${withval}/include";;
14455       esac
14456       if test -n "$llvm_cv_oppath" ; then
14457         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14458                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14459 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14460 if test "${ac_cv_search_bfd_init+set}" = set; then
14461   echo $ECHO_N "(cached) $ECHO_C" >&6
14462 else
14463   ac_func_search_save_LIBS=$LIBS
14464 cat >conftest.$ac_ext <<_ACEOF
14465 /* confdefs.h.  */
14466 _ACEOF
14467 cat confdefs.h >>conftest.$ac_ext
14468 cat >>conftest.$ac_ext <<_ACEOF
14469 /* end confdefs.h.  */
14470
14471 /* Override any GCC internal prototype to avoid an error.
14472    Use char because int might match the return type of a GCC
14473    builtin and then its argument prototype would still apply.  */
14474 #ifdef __cplusplus
14475 extern "C"
14476 #endif
14477 char bfd_init ();
14478 int
14479 main ()
14480 {
14481 return bfd_init ();
14482   ;
14483   return 0;
14484 }
14485 _ACEOF
14486 for ac_lib in '' bfd; do
14487   if test -z "$ac_lib"; then
14488     ac_res="none required"
14489   else
14490     ac_res=-l$ac_lib
14491     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14492   fi
14493   rm -f conftest.$ac_objext conftest$ac_exeext
14494 if { (ac_try="$ac_link"
14495 case "(($ac_try" in
14496   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14497   *) ac_try_echo=$ac_try;;
14498 esac
14499 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14500   (eval "$ac_link") 2>conftest.er1
14501   ac_status=$?
14502   grep -v '^ *+' conftest.er1 >conftest.err
14503   rm -f conftest.er1
14504   cat conftest.err >&5
14505   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14506   (exit $ac_status); } &&
14507          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14508   { (case "(($ac_try" in
14509   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14510   *) ac_try_echo=$ac_try;;
14511 esac
14512 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14513   (eval "$ac_try") 2>&5
14514   ac_status=$?
14515   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14516   (exit $ac_status); }; } &&
14517          { ac_try='test -s conftest$ac_exeext'
14518   { (case "(($ac_try" in
14519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14520   *) ac_try_echo=$ac_try;;
14521 esac
14522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14523   (eval "$ac_try") 2>&5
14524   ac_status=$?
14525   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14526   (exit $ac_status); }; }; then
14527   ac_cv_search_bfd_init=$ac_res
14528 else
14529   echo "$as_me: failed program was:" >&5
14530 sed 's/^/| /' conftest.$ac_ext >&5
14531
14532
14533 fi
14534
14535 rm -f core conftest.err conftest.$ac_objext \
14536       conftest$ac_exeext
14537   if test "${ac_cv_search_bfd_init+set}" = set; then
14538   break
14539 fi
14540 done
14541 if test "${ac_cv_search_bfd_init+set}" = set; then
14542   :
14543 else
14544   ac_cv_search_bfd_init=no
14545 fi
14546 rm conftest.$ac_ext
14547 LIBS=$ac_func_search_save_LIBS
14548 fi
14549 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14550 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14551 ac_res=$ac_cv_search_bfd_init
14552 if test "$ac_res" != no; then
14553   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14554
14555 fi
14556
14557         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14558 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14559 if test "${ac_cv_search_op_open_agent+set}" = set; then
14560   echo $ECHO_N "(cached) $ECHO_C" >&6
14561 else
14562   ac_func_search_save_LIBS=$LIBS
14563 cat >conftest.$ac_ext <<_ACEOF
14564 /* confdefs.h.  */
14565 _ACEOF
14566 cat confdefs.h >>conftest.$ac_ext
14567 cat >>conftest.$ac_ext <<_ACEOF
14568 /* end confdefs.h.  */
14569
14570 /* Override any GCC internal prototype to avoid an error.
14571    Use char because int might match the return type of a GCC
14572    builtin and then its argument prototype would still apply.  */
14573 #ifdef __cplusplus
14574 extern "C"
14575 #endif
14576 char op_open_agent ();
14577 int
14578 main ()
14579 {
14580 return op_open_agent ();
14581   ;
14582   return 0;
14583 }
14584 _ACEOF
14585 for ac_lib in '' opagent; do
14586   if test -z "$ac_lib"; then
14587     ac_res="none required"
14588   else
14589     ac_res=-l$ac_lib
14590     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14591   fi
14592   rm -f conftest.$ac_objext conftest$ac_exeext
14593 if { (ac_try="$ac_link"
14594 case "(($ac_try" in
14595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14596   *) ac_try_echo=$ac_try;;
14597 esac
14598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14599   (eval "$ac_link") 2>conftest.er1
14600   ac_status=$?
14601   grep -v '^ *+' conftest.er1 >conftest.err
14602   rm -f conftest.er1
14603   cat conftest.err >&5
14604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14605   (exit $ac_status); } &&
14606          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14607   { (case "(($ac_try" in
14608   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14609   *) ac_try_echo=$ac_try;;
14610 esac
14611 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14612   (eval "$ac_try") 2>&5
14613   ac_status=$?
14614   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14615   (exit $ac_status); }; } &&
14616          { ac_try='test -s conftest$ac_exeext'
14617   { (case "(($ac_try" in
14618   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14619   *) ac_try_echo=$ac_try;;
14620 esac
14621 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14622   (eval "$ac_try") 2>&5
14623   ac_status=$?
14624   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14625   (exit $ac_status); }; }; then
14626   ac_cv_search_op_open_agent=$ac_res
14627 else
14628   echo "$as_me: failed program was:" >&5
14629 sed 's/^/| /' conftest.$ac_ext >&5
14630
14631
14632 fi
14633
14634 rm -f core conftest.err conftest.$ac_objext \
14635       conftest$ac_exeext
14636   if test "${ac_cv_search_op_open_agent+set}" = set; then
14637   break
14638 fi
14639 done
14640 if test "${ac_cv_search_op_open_agent+set}" = set; then
14641   :
14642 else
14643   ac_cv_search_op_open_agent=no
14644 fi
14645 rm conftest.$ac_ext
14646 LIBS=$ac_func_search_save_LIBS
14647 fi
14648 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14649 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14650 ac_res=$ac_cv_search_op_open_agent
14651 if test "$ac_res" != no; then
14652   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14653
14654 else
14655
14656           echo "Error! You need to have libopagent around."
14657           exit -1
14658
14659 fi
14660
14661         if test "${ac_cv_header_opagent_h+set}" = set; then
14662   { echo "$as_me:$LINENO: checking for opagent.h" >&5
14663 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14664 if test "${ac_cv_header_opagent_h+set}" = set; then
14665   echo $ECHO_N "(cached) $ECHO_C" >&6
14666 fi
14667 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14668 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14669 else
14670   # Is the header compilable?
14671 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14672 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14673 cat >conftest.$ac_ext <<_ACEOF
14674 /* confdefs.h.  */
14675 _ACEOF
14676 cat confdefs.h >>conftest.$ac_ext
14677 cat >>conftest.$ac_ext <<_ACEOF
14678 /* end confdefs.h.  */
14679 $ac_includes_default
14680 #include <opagent.h>
14681 _ACEOF
14682 rm -f conftest.$ac_objext
14683 if { (ac_try="$ac_compile"
14684 case "(($ac_try" in
14685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14686   *) ac_try_echo=$ac_try;;
14687 esac
14688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14689   (eval "$ac_compile") 2>conftest.er1
14690   ac_status=$?
14691   grep -v '^ *+' conftest.er1 >conftest.err
14692   rm -f conftest.er1
14693   cat conftest.err >&5
14694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14695   (exit $ac_status); } &&
14696          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14697   { (case "(($ac_try" in
14698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14699   *) ac_try_echo=$ac_try;;
14700 esac
14701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14702   (eval "$ac_try") 2>&5
14703   ac_status=$?
14704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14705   (exit $ac_status); }; } &&
14706          { ac_try='test -s conftest.$ac_objext'
14707   { (case "(($ac_try" in
14708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14709   *) ac_try_echo=$ac_try;;
14710 esac
14711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14712   (eval "$ac_try") 2>&5
14713   ac_status=$?
14714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14715   (exit $ac_status); }; }; then
14716   ac_header_compiler=yes
14717 else
14718   echo "$as_me: failed program was:" >&5
14719 sed 's/^/| /' conftest.$ac_ext >&5
14720
14721         ac_header_compiler=no
14722 fi
14723
14724 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14725 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14726 echo "${ECHO_T}$ac_header_compiler" >&6; }
14727
14728 # Is the header present?
14729 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14730 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14731 cat >conftest.$ac_ext <<_ACEOF
14732 /* confdefs.h.  */
14733 _ACEOF
14734 cat confdefs.h >>conftest.$ac_ext
14735 cat >>conftest.$ac_ext <<_ACEOF
14736 /* end confdefs.h.  */
14737 #include <opagent.h>
14738 _ACEOF
14739 if { (ac_try="$ac_cpp conftest.$ac_ext"
14740 case "(($ac_try" in
14741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14742   *) ac_try_echo=$ac_try;;
14743 esac
14744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14745   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14746   ac_status=$?
14747   grep -v '^ *+' conftest.er1 >conftest.err
14748   rm -f conftest.er1
14749   cat conftest.err >&5
14750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14751   (exit $ac_status); } >/dev/null; then
14752   if test -s conftest.err; then
14753     ac_cpp_err=$ac_c_preproc_warn_flag
14754     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14755   else
14756     ac_cpp_err=
14757   fi
14758 else
14759   ac_cpp_err=yes
14760 fi
14761 if test -z "$ac_cpp_err"; then
14762   ac_header_preproc=yes
14763 else
14764   echo "$as_me: failed program was:" >&5
14765 sed 's/^/| /' conftest.$ac_ext >&5
14766
14767   ac_header_preproc=no
14768 fi
14769
14770 rm -f conftest.err conftest.$ac_ext
14771 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14772 echo "${ECHO_T}$ac_header_preproc" >&6; }
14773
14774 # So?  What about this header?
14775 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14776   yes:no: )
14777     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14778 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14779     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14780 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14781     ac_header_preproc=yes
14782     ;;
14783   no:yes:* )
14784     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14785 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14786     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
14787 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
14788     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14789 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14790     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
14791 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14792     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14793 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14794     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14795 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14796     ( cat <<\_ASBOX
14797 ## ----------------------------------- ##
14798 ## Report this to llvmbugs@cs.uiuc.edu ##
14799 ## ----------------------------------- ##
14800 _ASBOX
14801      ) | sed "s/^/$as_me: WARNING:     /" >&2
14802     ;;
14803 esac
14804 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14805 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14806 if test "${ac_cv_header_opagent_h+set}" = set; then
14807   echo $ECHO_N "(cached) $ECHO_C" >&6
14808 else
14809   ac_cv_header_opagent_h=$ac_header_preproc
14810 fi
14811 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14812 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14813
14814 fi
14815 if test $ac_cv_header_opagent_h = yes; then
14816   :
14817 else
14818
14819           echo "Error! You need to have opagent.h around."
14820           exit -1
14821
14822 fi
14823
14824
14825       fi
14826
14827 else
14828
14829       USE_OPROFILE=0
14830
14831
14832 fi
14833
14834
14835 cat >>confdefs.h <<_ACEOF
14836 #define USE_OPROFILE $USE_OPROFILE
14837 _ACEOF
14838
14839
14840
14841
14842
14843
14844
14845
14846 ac_header_dirent=no
14847 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14848   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14849 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14850 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14851 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14852   echo $ECHO_N "(cached) $ECHO_C" >&6
14853 else
14854   cat >conftest.$ac_ext <<_ACEOF
14855 /* confdefs.h.  */
14856 _ACEOF
14857 cat confdefs.h >>conftest.$ac_ext
14858 cat >>conftest.$ac_ext <<_ACEOF
14859 /* end confdefs.h.  */
14860 #include <sys/types.h>
14861 #include <$ac_hdr>
14862
14863 int
14864 main ()
14865 {
14866 if ((DIR *) 0)
14867 return 0;
14868   ;
14869   return 0;
14870 }
14871 _ACEOF
14872 rm -f conftest.$ac_objext
14873 if { (ac_try="$ac_compile"
14874 case "(($ac_try" in
14875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14876   *) ac_try_echo=$ac_try;;
14877 esac
14878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14879   (eval "$ac_compile") 2>conftest.er1
14880   ac_status=$?
14881   grep -v '^ *+' conftest.er1 >conftest.err
14882   rm -f conftest.er1
14883   cat conftest.err >&5
14884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14885   (exit $ac_status); } &&
14886          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14887   { (case "(($ac_try" in
14888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14889   *) ac_try_echo=$ac_try;;
14890 esac
14891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14892   (eval "$ac_try") 2>&5
14893   ac_status=$?
14894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14895   (exit $ac_status); }; } &&
14896          { ac_try='test -s conftest.$ac_objext'
14897   { (case "(($ac_try" in
14898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14899   *) ac_try_echo=$ac_try;;
14900 esac
14901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14902   (eval "$ac_try") 2>&5
14903   ac_status=$?
14904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14905   (exit $ac_status); }; }; then
14906   eval "$as_ac_Header=yes"
14907 else
14908   echo "$as_me: failed program was:" >&5
14909 sed 's/^/| /' conftest.$ac_ext >&5
14910
14911         eval "$as_ac_Header=no"
14912 fi
14913
14914 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14915 fi
14916 ac_res=`eval echo '${'$as_ac_Header'}'`
14917                { echo "$as_me:$LINENO: result: $ac_res" >&5
14918 echo "${ECHO_T}$ac_res" >&6; }
14919 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14920   cat >>confdefs.h <<_ACEOF
14921 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14922 _ACEOF
14923
14924 ac_header_dirent=$ac_hdr; break
14925 fi
14926
14927 done
14928 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14929 if test $ac_header_dirent = dirent.h; then
14930   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14931 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14932 if test "${ac_cv_search_opendir+set}" = set; then
14933   echo $ECHO_N "(cached) $ECHO_C" >&6
14934 else
14935   ac_func_search_save_LIBS=$LIBS
14936 cat >conftest.$ac_ext <<_ACEOF
14937 /* confdefs.h.  */
14938 _ACEOF
14939 cat confdefs.h >>conftest.$ac_ext
14940 cat >>conftest.$ac_ext <<_ACEOF
14941 /* end confdefs.h.  */
14942
14943 /* Override any GCC internal prototype to avoid an error.
14944    Use char because int might match the return type of a GCC
14945    builtin and then its argument prototype would still apply.  */
14946 #ifdef __cplusplus
14947 extern "C"
14948 #endif
14949 char opendir ();
14950 int
14951 main ()
14952 {
14953 return opendir ();
14954   ;
14955   return 0;
14956 }
14957 _ACEOF
14958 for ac_lib in '' dir; do
14959   if test -z "$ac_lib"; then
14960     ac_res="none required"
14961   else
14962     ac_res=-l$ac_lib
14963     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14964   fi
14965   rm -f conftest.$ac_objext conftest$ac_exeext
14966 if { (ac_try="$ac_link"
14967 case "(($ac_try" in
14968   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14969   *) ac_try_echo=$ac_try;;
14970 esac
14971 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14972   (eval "$ac_link") 2>conftest.er1
14973   ac_status=$?
14974   grep -v '^ *+' conftest.er1 >conftest.err
14975   rm -f conftest.er1
14976   cat conftest.err >&5
14977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14978   (exit $ac_status); } &&
14979          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14980   { (case "(($ac_try" in
14981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14982   *) ac_try_echo=$ac_try;;
14983 esac
14984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14985   (eval "$ac_try") 2>&5
14986   ac_status=$?
14987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14988   (exit $ac_status); }; } &&
14989          { ac_try='test -s conftest$ac_exeext'
14990   { (case "(($ac_try" in
14991   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14992   *) ac_try_echo=$ac_try;;
14993 esac
14994 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14995   (eval "$ac_try") 2>&5
14996   ac_status=$?
14997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14998   (exit $ac_status); }; }; then
14999   ac_cv_search_opendir=$ac_res
15000 else
15001   echo "$as_me: failed program was:" >&5
15002 sed 's/^/| /' conftest.$ac_ext >&5
15003
15004
15005 fi
15006
15007 rm -f core conftest.err conftest.$ac_objext \
15008       conftest$ac_exeext
15009   if test "${ac_cv_search_opendir+set}" = set; then
15010   break
15011 fi
15012 done
15013 if test "${ac_cv_search_opendir+set}" = set; then
15014   :
15015 else
15016   ac_cv_search_opendir=no
15017 fi
15018 rm conftest.$ac_ext
15019 LIBS=$ac_func_search_save_LIBS
15020 fi
15021 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15022 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15023 ac_res=$ac_cv_search_opendir
15024 if test "$ac_res" != no; then
15025   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15026
15027 fi
15028
15029 else
15030   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15031 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15032 if test "${ac_cv_search_opendir+set}" = set; then
15033   echo $ECHO_N "(cached) $ECHO_C" >&6
15034 else
15035   ac_func_search_save_LIBS=$LIBS
15036 cat >conftest.$ac_ext <<_ACEOF
15037 /* confdefs.h.  */
15038 _ACEOF
15039 cat confdefs.h >>conftest.$ac_ext
15040 cat >>conftest.$ac_ext <<_ACEOF
15041 /* end confdefs.h.  */
15042
15043 /* Override any GCC internal prototype to avoid an error.
15044    Use char because int might match the return type of a GCC
15045    builtin and then its argument prototype would still apply.  */
15046 #ifdef __cplusplus
15047 extern "C"
15048 #endif
15049 char opendir ();
15050 int
15051 main ()
15052 {
15053 return opendir ();
15054   ;
15055   return 0;
15056 }
15057 _ACEOF
15058 for ac_lib in '' x; do
15059   if test -z "$ac_lib"; then
15060     ac_res="none required"
15061   else
15062     ac_res=-l$ac_lib
15063     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15064   fi
15065   rm -f conftest.$ac_objext conftest$ac_exeext
15066 if { (ac_try="$ac_link"
15067 case "(($ac_try" in
15068   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15069   *) ac_try_echo=$ac_try;;
15070 esac
15071 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15072   (eval "$ac_link") 2>conftest.er1
15073   ac_status=$?
15074   grep -v '^ *+' conftest.er1 >conftest.err
15075   rm -f conftest.er1
15076   cat conftest.err >&5
15077   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15078   (exit $ac_status); } &&
15079          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15080   { (case "(($ac_try" in
15081   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15082   *) ac_try_echo=$ac_try;;
15083 esac
15084 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15085   (eval "$ac_try") 2>&5
15086   ac_status=$?
15087   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15088   (exit $ac_status); }; } &&
15089          { ac_try='test -s conftest$ac_exeext'
15090   { (case "(($ac_try" in
15091   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15092   *) ac_try_echo=$ac_try;;
15093 esac
15094 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15095   (eval "$ac_try") 2>&5
15096   ac_status=$?
15097   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15098   (exit $ac_status); }; }; then
15099   ac_cv_search_opendir=$ac_res
15100 else
15101   echo "$as_me: failed program was:" >&5
15102 sed 's/^/| /' conftest.$ac_ext >&5
15103
15104
15105 fi
15106
15107 rm -f core conftest.err conftest.$ac_objext \
15108       conftest$ac_exeext
15109   if test "${ac_cv_search_opendir+set}" = set; then
15110   break
15111 fi
15112 done
15113 if test "${ac_cv_search_opendir+set}" = set; then
15114   :
15115 else
15116   ac_cv_search_opendir=no
15117 fi
15118 rm conftest.$ac_ext
15119 LIBS=$ac_func_search_save_LIBS
15120 fi
15121 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15122 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15123 ac_res=$ac_cv_search_opendir
15124 if test "$ac_res" != no; then
15125   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15126
15127 fi
15128
15129 fi
15130
15131 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15132 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15133 if test "${ac_cv_header_mmap_anon+set}" = set; then
15134   echo $ECHO_N "(cached) $ECHO_C" >&6
15135 else
15136    ac_ext=c
15137 ac_cpp='$CPP $CPPFLAGS'
15138 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15139 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15140 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15141
15142   cat >conftest.$ac_ext <<_ACEOF
15143 /* confdefs.h.  */
15144 _ACEOF
15145 cat confdefs.h >>conftest.$ac_ext
15146 cat >>conftest.$ac_ext <<_ACEOF
15147 /* end confdefs.h.  */
15148 #include <sys/mman.h>
15149 #include <unistd.h>
15150 #include <fcntl.h>
15151 int
15152 main ()
15153 {
15154 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15155   ;
15156   return 0;
15157 }
15158 _ACEOF
15159 rm -f conftest.$ac_objext
15160 if { (ac_try="$ac_compile"
15161 case "(($ac_try" in
15162   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15163   *) ac_try_echo=$ac_try;;
15164 esac
15165 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15166   (eval "$ac_compile") 2>conftest.er1
15167   ac_status=$?
15168   grep -v '^ *+' conftest.er1 >conftest.err
15169   rm -f conftest.er1
15170   cat conftest.err >&5
15171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15172   (exit $ac_status); } &&
15173          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15174   { (case "(($ac_try" in
15175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15176   *) ac_try_echo=$ac_try;;
15177 esac
15178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15179   (eval "$ac_try") 2>&5
15180   ac_status=$?
15181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15182   (exit $ac_status); }; } &&
15183          { ac_try='test -s conftest.$ac_objext'
15184   { (case "(($ac_try" in
15185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15186   *) ac_try_echo=$ac_try;;
15187 esac
15188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15189   (eval "$ac_try") 2>&5
15190   ac_status=$?
15191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15192   (exit $ac_status); }; }; then
15193   ac_cv_header_mmap_anon=yes
15194 else
15195   echo "$as_me: failed program was:" >&5
15196 sed 's/^/| /' conftest.$ac_ext >&5
15197
15198         ac_cv_header_mmap_anon=no
15199 fi
15200
15201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15202   ac_ext=c
15203 ac_cpp='$CPP $CPPFLAGS'
15204 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15205 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15206 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15207
15208
15209 fi
15210 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15211 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15212 if test "$ac_cv_header_mmap_anon" = yes; then
15213
15214 cat >>confdefs.h <<\_ACEOF
15215 #define HAVE_MMAP_ANONYMOUS 1
15216 _ACEOF
15217
15218 fi
15219
15220 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15221 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15222 if test "${ac_cv_header_stat_broken+set}" = set; then
15223   echo $ECHO_N "(cached) $ECHO_C" >&6
15224 else
15225   cat >conftest.$ac_ext <<_ACEOF
15226 /* confdefs.h.  */
15227 _ACEOF
15228 cat confdefs.h >>conftest.$ac_ext
15229 cat >>conftest.$ac_ext <<_ACEOF
15230 /* end confdefs.h.  */
15231 #include <sys/types.h>
15232 #include <sys/stat.h>
15233
15234 #if defined S_ISBLK && defined S_IFDIR
15235 # if S_ISBLK (S_IFDIR)
15236 You lose.
15237 # endif
15238 #endif
15239
15240 #if defined S_ISBLK && defined S_IFCHR
15241 # if S_ISBLK (S_IFCHR)
15242 You lose.
15243 # endif
15244 #endif
15245
15246 #if defined S_ISLNK && defined S_IFREG
15247 # if S_ISLNK (S_IFREG)
15248 You lose.
15249 # endif
15250 #endif
15251
15252 #if defined S_ISSOCK && defined S_IFREG
15253 # if S_ISSOCK (S_IFREG)
15254 You lose.
15255 # endif
15256 #endif
15257
15258 _ACEOF
15259 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15260   $EGREP "You lose" >/dev/null 2>&1; then
15261   ac_cv_header_stat_broken=yes
15262 else
15263   ac_cv_header_stat_broken=no
15264 fi
15265 rm -f conftest*
15266
15267 fi
15268 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15269 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15270 if test $ac_cv_header_stat_broken = yes; then
15271
15272 cat >>confdefs.h <<\_ACEOF
15273 #define STAT_MACROS_BROKEN 1
15274 _ACEOF
15275
15276 fi
15277
15278 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15279 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15280 if test "${ac_cv_header_stdc+set}" = set; then
15281   echo $ECHO_N "(cached) $ECHO_C" >&6
15282 else
15283   cat >conftest.$ac_ext <<_ACEOF
15284 /* confdefs.h.  */
15285 _ACEOF
15286 cat confdefs.h >>conftest.$ac_ext
15287 cat >>conftest.$ac_ext <<_ACEOF
15288 /* end confdefs.h.  */
15289 #include <stdlib.h>
15290 #include <stdarg.h>
15291 #include <string.h>
15292 #include <float.h>
15293
15294 int
15295 main ()
15296 {
15297
15298   ;
15299   return 0;
15300 }
15301 _ACEOF
15302 rm -f conftest.$ac_objext
15303 if { (ac_try="$ac_compile"
15304 case "(($ac_try" in
15305   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15306   *) ac_try_echo=$ac_try;;
15307 esac
15308 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15309   (eval "$ac_compile") 2>conftest.er1
15310   ac_status=$?
15311   grep -v '^ *+' conftest.er1 >conftest.err
15312   rm -f conftest.er1
15313   cat conftest.err >&5
15314   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15315   (exit $ac_status); } &&
15316          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15317   { (case "(($ac_try" in
15318   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15319   *) ac_try_echo=$ac_try;;
15320 esac
15321 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15322   (eval "$ac_try") 2>&5
15323   ac_status=$?
15324   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15325   (exit $ac_status); }; } &&
15326          { ac_try='test -s conftest.$ac_objext'
15327   { (case "(($ac_try" in
15328   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15329   *) ac_try_echo=$ac_try;;
15330 esac
15331 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15332   (eval "$ac_try") 2>&5
15333   ac_status=$?
15334   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15335   (exit $ac_status); }; }; then
15336   ac_cv_header_stdc=yes
15337 else
15338   echo "$as_me: failed program was:" >&5
15339 sed 's/^/| /' conftest.$ac_ext >&5
15340
15341         ac_cv_header_stdc=no
15342 fi
15343
15344 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15345
15346 if test $ac_cv_header_stdc = yes; then
15347   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15348   cat >conftest.$ac_ext <<_ACEOF
15349 /* confdefs.h.  */
15350 _ACEOF
15351 cat confdefs.h >>conftest.$ac_ext
15352 cat >>conftest.$ac_ext <<_ACEOF
15353 /* end confdefs.h.  */
15354 #include <string.h>
15355
15356 _ACEOF
15357 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15358   $EGREP "memchr" >/dev/null 2>&1; then
15359   :
15360 else
15361   ac_cv_header_stdc=no
15362 fi
15363 rm -f conftest*
15364
15365 fi
15366
15367 if test $ac_cv_header_stdc = yes; then
15368   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15369   cat >conftest.$ac_ext <<_ACEOF
15370 /* confdefs.h.  */
15371 _ACEOF
15372 cat confdefs.h >>conftest.$ac_ext
15373 cat >>conftest.$ac_ext <<_ACEOF
15374 /* end confdefs.h.  */
15375 #include <stdlib.h>
15376
15377 _ACEOF
15378 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15379   $EGREP "free" >/dev/null 2>&1; then
15380   :
15381 else
15382   ac_cv_header_stdc=no
15383 fi
15384 rm -f conftest*
15385
15386 fi
15387
15388 if test $ac_cv_header_stdc = yes; then
15389   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15390   if test "$cross_compiling" = yes; then
15391   :
15392 else
15393   cat >conftest.$ac_ext <<_ACEOF
15394 /* confdefs.h.  */
15395 _ACEOF
15396 cat confdefs.h >>conftest.$ac_ext
15397 cat >>conftest.$ac_ext <<_ACEOF
15398 /* end confdefs.h.  */
15399 #include <ctype.h>
15400 #include <stdlib.h>
15401 #if ((' ' & 0x0FF) == 0x020)
15402 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15403 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15404 #else
15405 # define ISLOWER(c) \
15406                    (('a' <= (c) && (c) <= 'i') \
15407                      || ('j' <= (c) && (c) <= 'r') \
15408                      || ('s' <= (c) && (c) <= 'z'))
15409 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15410 #endif
15411
15412 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15413 int
15414 main ()
15415 {
15416   int i;
15417   for (i = 0; i < 256; i++)
15418     if (XOR (islower (i), ISLOWER (i))
15419         || toupper (i) != TOUPPER (i))
15420       return 2;
15421   return 0;
15422 }
15423 _ACEOF
15424 rm -f conftest$ac_exeext
15425 if { (ac_try="$ac_link"
15426 case "(($ac_try" in
15427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15428   *) ac_try_echo=$ac_try;;
15429 esac
15430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15431   (eval "$ac_link") 2>&5
15432   ac_status=$?
15433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15434   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15435   { (case "(($ac_try" in
15436   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15437   *) ac_try_echo=$ac_try;;
15438 esac
15439 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15440   (eval "$ac_try") 2>&5
15441   ac_status=$?
15442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15443   (exit $ac_status); }; }; then
15444   :
15445 else
15446   echo "$as_me: program exited with status $ac_status" >&5
15447 echo "$as_me: failed program was:" >&5
15448 sed 's/^/| /' conftest.$ac_ext >&5
15449
15450 ( exit $ac_status )
15451 ac_cv_header_stdc=no
15452 fi
15453 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15454 fi
15455
15456
15457 fi
15458 fi
15459 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15460 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15461 if test $ac_cv_header_stdc = yes; then
15462
15463 cat >>confdefs.h <<\_ACEOF
15464 #define STDC_HEADERS 1
15465 _ACEOF
15466
15467 fi
15468
15469 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15470 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15471 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15472   echo $ECHO_N "(cached) $ECHO_C" >&6
15473 else
15474   cat >conftest.$ac_ext <<_ACEOF
15475 /* confdefs.h.  */
15476 _ACEOF
15477 cat confdefs.h >>conftest.$ac_ext
15478 cat >>conftest.$ac_ext <<_ACEOF
15479 /* end confdefs.h.  */
15480 #include <sys/types.h>
15481 #include <sys/wait.h>
15482 #ifndef WEXITSTATUS
15483 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15484 #endif
15485 #ifndef WIFEXITED
15486 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15487 #endif
15488
15489 int
15490 main ()
15491 {
15492   int s;
15493   wait (&s);
15494   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15495   ;
15496   return 0;
15497 }
15498 _ACEOF
15499 rm -f conftest.$ac_objext
15500 if { (ac_try="$ac_compile"
15501 case "(($ac_try" in
15502   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15503   *) ac_try_echo=$ac_try;;
15504 esac
15505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15506   (eval "$ac_compile") 2>conftest.er1
15507   ac_status=$?
15508   grep -v '^ *+' conftest.er1 >conftest.err
15509   rm -f conftest.er1
15510   cat conftest.err >&5
15511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15512   (exit $ac_status); } &&
15513          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15514   { (case "(($ac_try" in
15515   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15516   *) ac_try_echo=$ac_try;;
15517 esac
15518 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15519   (eval "$ac_try") 2>&5
15520   ac_status=$?
15521   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15522   (exit $ac_status); }; } &&
15523          { ac_try='test -s conftest.$ac_objext'
15524   { (case "(($ac_try" in
15525   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15526   *) ac_try_echo=$ac_try;;
15527 esac
15528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15529   (eval "$ac_try") 2>&5
15530   ac_status=$?
15531   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15532   (exit $ac_status); }; }; then
15533   ac_cv_header_sys_wait_h=yes
15534 else
15535   echo "$as_me: failed program was:" >&5
15536 sed 's/^/| /' conftest.$ac_ext >&5
15537
15538         ac_cv_header_sys_wait_h=no
15539 fi
15540
15541 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15542 fi
15543 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15544 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15545 if test $ac_cv_header_sys_wait_h = yes; then
15546
15547 cat >>confdefs.h <<\_ACEOF
15548 #define HAVE_SYS_WAIT_H 1
15549 _ACEOF
15550
15551 fi
15552
15553 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15554 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15555 if test "${ac_cv_header_time+set}" = set; then
15556   echo $ECHO_N "(cached) $ECHO_C" >&6
15557 else
15558   cat >conftest.$ac_ext <<_ACEOF
15559 /* confdefs.h.  */
15560 _ACEOF
15561 cat confdefs.h >>conftest.$ac_ext
15562 cat >>conftest.$ac_ext <<_ACEOF
15563 /* end confdefs.h.  */
15564 #include <sys/types.h>
15565 #include <sys/time.h>
15566 #include <time.h>
15567
15568 int
15569 main ()
15570 {
15571 if ((struct tm *) 0)
15572 return 0;
15573   ;
15574   return 0;
15575 }
15576 _ACEOF
15577 rm -f conftest.$ac_objext
15578 if { (ac_try="$ac_compile"
15579 case "(($ac_try" in
15580   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15581   *) ac_try_echo=$ac_try;;
15582 esac
15583 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15584   (eval "$ac_compile") 2>conftest.er1
15585   ac_status=$?
15586   grep -v '^ *+' conftest.er1 >conftest.err
15587   rm -f conftest.er1
15588   cat conftest.err >&5
15589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15590   (exit $ac_status); } &&
15591          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15592   { (case "(($ac_try" in
15593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15594   *) ac_try_echo=$ac_try;;
15595 esac
15596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15597   (eval "$ac_try") 2>&5
15598   ac_status=$?
15599   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15600   (exit $ac_status); }; } &&
15601          { ac_try='test -s conftest.$ac_objext'
15602   { (case "(($ac_try" in
15603   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15604   *) ac_try_echo=$ac_try;;
15605 esac
15606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15607   (eval "$ac_try") 2>&5
15608   ac_status=$?
15609   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15610   (exit $ac_status); }; }; then
15611   ac_cv_header_time=yes
15612 else
15613   echo "$as_me: failed program was:" >&5
15614 sed 's/^/| /' conftest.$ac_ext >&5
15615
15616         ac_cv_header_time=no
15617 fi
15618
15619 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15620 fi
15621 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15622 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15623 if test $ac_cv_header_time = yes; then
15624
15625 cat >>confdefs.h <<\_ACEOF
15626 #define TIME_WITH_SYS_TIME 1
15627 _ACEOF
15628
15629 fi
15630
15631
15632
15633
15634
15635
15636
15637
15638 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15639 do
15640 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15641 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15642   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15645   echo $ECHO_N "(cached) $ECHO_C" >&6
15646 fi
15647 ac_res=`eval echo '${'$as_ac_Header'}'`
15648                { echo "$as_me:$LINENO: result: $ac_res" >&5
15649 echo "${ECHO_T}$ac_res" >&6; }
15650 else
15651   # Is the header compilable?
15652 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15653 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15654 cat >conftest.$ac_ext <<_ACEOF
15655 /* confdefs.h.  */
15656 _ACEOF
15657 cat confdefs.h >>conftest.$ac_ext
15658 cat >>conftest.$ac_ext <<_ACEOF
15659 /* end confdefs.h.  */
15660 $ac_includes_default
15661 #include <$ac_header>
15662 _ACEOF
15663 rm -f conftest.$ac_objext
15664 if { (ac_try="$ac_compile"
15665 case "(($ac_try" in
15666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15667   *) ac_try_echo=$ac_try;;
15668 esac
15669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15670   (eval "$ac_compile") 2>conftest.er1
15671   ac_status=$?
15672   grep -v '^ *+' conftest.er1 >conftest.err
15673   rm -f conftest.er1
15674   cat conftest.err >&5
15675   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15676   (exit $ac_status); } &&
15677          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15678   { (case "(($ac_try" in
15679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15680   *) ac_try_echo=$ac_try;;
15681 esac
15682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15683   (eval "$ac_try") 2>&5
15684   ac_status=$?
15685   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15686   (exit $ac_status); }; } &&
15687          { ac_try='test -s conftest.$ac_objext'
15688   { (case "(($ac_try" in
15689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15690   *) ac_try_echo=$ac_try;;
15691 esac
15692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15693   (eval "$ac_try") 2>&5
15694   ac_status=$?
15695   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15696   (exit $ac_status); }; }; then
15697   ac_header_compiler=yes
15698 else
15699   echo "$as_me: failed program was:" >&5
15700 sed 's/^/| /' conftest.$ac_ext >&5
15701
15702         ac_header_compiler=no
15703 fi
15704
15705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15706 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15707 echo "${ECHO_T}$ac_header_compiler" >&6; }
15708
15709 # Is the header present?
15710 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15711 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15712 cat >conftest.$ac_ext <<_ACEOF
15713 /* confdefs.h.  */
15714 _ACEOF
15715 cat confdefs.h >>conftest.$ac_ext
15716 cat >>conftest.$ac_ext <<_ACEOF
15717 /* end confdefs.h.  */
15718 #include <$ac_header>
15719 _ACEOF
15720 if { (ac_try="$ac_cpp conftest.$ac_ext"
15721 case "(($ac_try" in
15722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15723   *) ac_try_echo=$ac_try;;
15724 esac
15725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15726   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15727   ac_status=$?
15728   grep -v '^ *+' conftest.er1 >conftest.err
15729   rm -f conftest.er1
15730   cat conftest.err >&5
15731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15732   (exit $ac_status); } >/dev/null; then
15733   if test -s conftest.err; then
15734     ac_cpp_err=$ac_c_preproc_warn_flag
15735     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15736   else
15737     ac_cpp_err=
15738   fi
15739 else
15740   ac_cpp_err=yes
15741 fi
15742 if test -z "$ac_cpp_err"; then
15743   ac_header_preproc=yes
15744 else
15745   echo "$as_me: failed program was:" >&5
15746 sed 's/^/| /' conftest.$ac_ext >&5
15747
15748   ac_header_preproc=no
15749 fi
15750
15751 rm -f conftest.err conftest.$ac_ext
15752 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15753 echo "${ECHO_T}$ac_header_preproc" >&6; }
15754
15755 # So?  What about this header?
15756 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15757   yes:no: )
15758     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15759 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15760     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15761 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15762     ac_header_preproc=yes
15763     ;;
15764   no:yes:* )
15765     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15766 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15767     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15768 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15769     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15770 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15771     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15772 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15773     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15774 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15775     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15776 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15777     ( cat <<\_ASBOX
15778 ## ----------------------------------- ##
15779 ## Report this to llvmbugs@cs.uiuc.edu ##
15780 ## ----------------------------------- ##
15781 _ASBOX
15782      ) | sed "s/^/$as_me: WARNING:     /" >&2
15783     ;;
15784 esac
15785 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15786 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15787 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15788   echo $ECHO_N "(cached) $ECHO_C" >&6
15789 else
15790   eval "$as_ac_Header=\$ac_header_preproc"
15791 fi
15792 ac_res=`eval echo '${'$as_ac_Header'}'`
15793                { echo "$as_me:$LINENO: result: $ac_res" >&5
15794 echo "${ECHO_T}$ac_res" >&6; }
15795
15796 fi
15797 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15798   cat >>confdefs.h <<_ACEOF
15799 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15800 _ACEOF
15801
15802 fi
15803
15804 done
15805
15806
15807
15808
15809
15810
15811
15812 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15813 do
15814 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15815 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15816   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15817 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15818 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15819   echo $ECHO_N "(cached) $ECHO_C" >&6
15820 fi
15821 ac_res=`eval echo '${'$as_ac_Header'}'`
15822                { echo "$as_me:$LINENO: result: $ac_res" >&5
15823 echo "${ECHO_T}$ac_res" >&6; }
15824 else
15825   # Is the header compilable?
15826 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15827 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15828 cat >conftest.$ac_ext <<_ACEOF
15829 /* confdefs.h.  */
15830 _ACEOF
15831 cat confdefs.h >>conftest.$ac_ext
15832 cat >>conftest.$ac_ext <<_ACEOF
15833 /* end confdefs.h.  */
15834 $ac_includes_default
15835 #include <$ac_header>
15836 _ACEOF
15837 rm -f conftest.$ac_objext
15838 if { (ac_try="$ac_compile"
15839 case "(($ac_try" in
15840   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15841   *) ac_try_echo=$ac_try;;
15842 esac
15843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15844   (eval "$ac_compile") 2>conftest.er1
15845   ac_status=$?
15846   grep -v '^ *+' conftest.er1 >conftest.err
15847   rm -f conftest.er1
15848   cat conftest.err >&5
15849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15850   (exit $ac_status); } &&
15851          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15852   { (case "(($ac_try" in
15853   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15854   *) ac_try_echo=$ac_try;;
15855 esac
15856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15857   (eval "$ac_try") 2>&5
15858   ac_status=$?
15859   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15860   (exit $ac_status); }; } &&
15861          { ac_try='test -s conftest.$ac_objext'
15862   { (case "(($ac_try" in
15863   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15864   *) ac_try_echo=$ac_try;;
15865 esac
15866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15867   (eval "$ac_try") 2>&5
15868   ac_status=$?
15869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15870   (exit $ac_status); }; }; then
15871   ac_header_compiler=yes
15872 else
15873   echo "$as_me: failed program was:" >&5
15874 sed 's/^/| /' conftest.$ac_ext >&5
15875
15876         ac_header_compiler=no
15877 fi
15878
15879 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15880 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15881 echo "${ECHO_T}$ac_header_compiler" >&6; }
15882
15883 # Is the header present?
15884 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15885 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15886 cat >conftest.$ac_ext <<_ACEOF
15887 /* confdefs.h.  */
15888 _ACEOF
15889 cat confdefs.h >>conftest.$ac_ext
15890 cat >>conftest.$ac_ext <<_ACEOF
15891 /* end confdefs.h.  */
15892 #include <$ac_header>
15893 _ACEOF
15894 if { (ac_try="$ac_cpp conftest.$ac_ext"
15895 case "(($ac_try" in
15896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15897   *) ac_try_echo=$ac_try;;
15898 esac
15899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15900   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15901   ac_status=$?
15902   grep -v '^ *+' conftest.er1 >conftest.err
15903   rm -f conftest.er1
15904   cat conftest.err >&5
15905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15906   (exit $ac_status); } >/dev/null; then
15907   if test -s conftest.err; then
15908     ac_cpp_err=$ac_c_preproc_warn_flag
15909     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15910   else
15911     ac_cpp_err=
15912   fi
15913 else
15914   ac_cpp_err=yes
15915 fi
15916 if test -z "$ac_cpp_err"; then
15917   ac_header_preproc=yes
15918 else
15919   echo "$as_me: failed program was:" >&5
15920 sed 's/^/| /' conftest.$ac_ext >&5
15921
15922   ac_header_preproc=no
15923 fi
15924
15925 rm -f conftest.err conftest.$ac_ext
15926 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15927 echo "${ECHO_T}$ac_header_preproc" >&6; }
15928
15929 # So?  What about this header?
15930 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15931   yes:no: )
15932     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15933 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15934     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15935 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15936     ac_header_preproc=yes
15937     ;;
15938   no:yes:* )
15939     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15940 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15941     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15942 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15943     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15944 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15945     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15946 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15947     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15948 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15949     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15950 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15951     ( cat <<\_ASBOX
15952 ## ----------------------------------- ##
15953 ## Report this to llvmbugs@cs.uiuc.edu ##
15954 ## ----------------------------------- ##
15955 _ASBOX
15956      ) | sed "s/^/$as_me: WARNING:     /" >&2
15957     ;;
15958 esac
15959 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15960 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15962   echo $ECHO_N "(cached) $ECHO_C" >&6
15963 else
15964   eval "$as_ac_Header=\$ac_header_preproc"
15965 fi
15966 ac_res=`eval echo '${'$as_ac_Header'}'`
15967                { echo "$as_me:$LINENO: result: $ac_res" >&5
15968 echo "${ECHO_T}$ac_res" >&6; }
15969
15970 fi
15971 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15972   cat >>confdefs.h <<_ACEOF
15973 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15974 _ACEOF
15975
15976 fi
15977
15978 done
15979
15980
15981
15982 for ac_header in utime.h windows.h
15983 do
15984 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15985 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15986   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15987 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15988 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15989   echo $ECHO_N "(cached) $ECHO_C" >&6
15990 fi
15991 ac_res=`eval echo '${'$as_ac_Header'}'`
15992                { echo "$as_me:$LINENO: result: $ac_res" >&5
15993 echo "${ECHO_T}$ac_res" >&6; }
15994 else
15995   # Is the header compilable?
15996 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15997 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15998 cat >conftest.$ac_ext <<_ACEOF
15999 /* confdefs.h.  */
16000 _ACEOF
16001 cat confdefs.h >>conftest.$ac_ext
16002 cat >>conftest.$ac_ext <<_ACEOF
16003 /* end confdefs.h.  */
16004 $ac_includes_default
16005 #include <$ac_header>
16006 _ACEOF
16007 rm -f conftest.$ac_objext
16008 if { (ac_try="$ac_compile"
16009 case "(($ac_try" in
16010   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16011   *) ac_try_echo=$ac_try;;
16012 esac
16013 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16014   (eval "$ac_compile") 2>conftest.er1
16015   ac_status=$?
16016   grep -v '^ *+' conftest.er1 >conftest.err
16017   rm -f conftest.er1
16018   cat conftest.err >&5
16019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16020   (exit $ac_status); } &&
16021          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16022   { (case "(($ac_try" in
16023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16024   *) ac_try_echo=$ac_try;;
16025 esac
16026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16027   (eval "$ac_try") 2>&5
16028   ac_status=$?
16029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16030   (exit $ac_status); }; } &&
16031          { ac_try='test -s conftest.$ac_objext'
16032   { (case "(($ac_try" in
16033   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16034   *) ac_try_echo=$ac_try;;
16035 esac
16036 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16037   (eval "$ac_try") 2>&5
16038   ac_status=$?
16039   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16040   (exit $ac_status); }; }; then
16041   ac_header_compiler=yes
16042 else
16043   echo "$as_me: failed program was:" >&5
16044 sed 's/^/| /' conftest.$ac_ext >&5
16045
16046         ac_header_compiler=no
16047 fi
16048
16049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16050 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16051 echo "${ECHO_T}$ac_header_compiler" >&6; }
16052
16053 # Is the header present?
16054 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16055 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16056 cat >conftest.$ac_ext <<_ACEOF
16057 /* confdefs.h.  */
16058 _ACEOF
16059 cat confdefs.h >>conftest.$ac_ext
16060 cat >>conftest.$ac_ext <<_ACEOF
16061 /* end confdefs.h.  */
16062 #include <$ac_header>
16063 _ACEOF
16064 if { (ac_try="$ac_cpp conftest.$ac_ext"
16065 case "(($ac_try" in
16066   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16067   *) ac_try_echo=$ac_try;;
16068 esac
16069 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16070   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16071   ac_status=$?
16072   grep -v '^ *+' conftest.er1 >conftest.err
16073   rm -f conftest.er1
16074   cat conftest.err >&5
16075   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16076   (exit $ac_status); } >/dev/null; then
16077   if test -s conftest.err; then
16078     ac_cpp_err=$ac_c_preproc_warn_flag
16079     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16080   else
16081     ac_cpp_err=
16082   fi
16083 else
16084   ac_cpp_err=yes
16085 fi
16086 if test -z "$ac_cpp_err"; then
16087   ac_header_preproc=yes
16088 else
16089   echo "$as_me: failed program was:" >&5
16090 sed 's/^/| /' conftest.$ac_ext >&5
16091
16092   ac_header_preproc=no
16093 fi
16094
16095 rm -f conftest.err conftest.$ac_ext
16096 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16097 echo "${ECHO_T}$ac_header_preproc" >&6; }
16098
16099 # So?  What about this header?
16100 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16101   yes:no: )
16102     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16103 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16104     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16105 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16106     ac_header_preproc=yes
16107     ;;
16108   no:yes:* )
16109     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16110 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16111     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16112 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16113     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16114 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16115     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16116 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16117     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16118 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16119     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16120 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16121     ( cat <<\_ASBOX
16122 ## ----------------------------------- ##
16123 ## Report this to llvmbugs@cs.uiuc.edu ##
16124 ## ----------------------------------- ##
16125 _ASBOX
16126      ) | sed "s/^/$as_me: WARNING:     /" >&2
16127     ;;
16128 esac
16129 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16130 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16131 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16132   echo $ECHO_N "(cached) $ECHO_C" >&6
16133 else
16134   eval "$as_ac_Header=\$ac_header_preproc"
16135 fi
16136 ac_res=`eval echo '${'$as_ac_Header'}'`
16137                { echo "$as_me:$LINENO: result: $ac_res" >&5
16138 echo "${ECHO_T}$ac_res" >&6; }
16139
16140 fi
16141 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16142   cat >>confdefs.h <<_ACEOF
16143 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16144 _ACEOF
16145
16146 fi
16147
16148 done
16149
16150
16151
16152
16153
16154 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
16155 do
16156 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16157 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16158   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16159 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16160 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16161   echo $ECHO_N "(cached) $ECHO_C" >&6
16162 fi
16163 ac_res=`eval echo '${'$as_ac_Header'}'`
16164                { echo "$as_me:$LINENO: result: $ac_res" >&5
16165 echo "${ECHO_T}$ac_res" >&6; }
16166 else
16167   # Is the header compilable?
16168 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16169 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16170 cat >conftest.$ac_ext <<_ACEOF
16171 /* confdefs.h.  */
16172 _ACEOF
16173 cat confdefs.h >>conftest.$ac_ext
16174 cat >>conftest.$ac_ext <<_ACEOF
16175 /* end confdefs.h.  */
16176 $ac_includes_default
16177 #include <$ac_header>
16178 _ACEOF
16179 rm -f conftest.$ac_objext
16180 if { (ac_try="$ac_compile"
16181 case "(($ac_try" in
16182   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16183   *) ac_try_echo=$ac_try;;
16184 esac
16185 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16186   (eval "$ac_compile") 2>conftest.er1
16187   ac_status=$?
16188   grep -v '^ *+' conftest.er1 >conftest.err
16189   rm -f conftest.er1
16190   cat conftest.err >&5
16191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16192   (exit $ac_status); } &&
16193          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16194   { (case "(($ac_try" in
16195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16196   *) ac_try_echo=$ac_try;;
16197 esac
16198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16199   (eval "$ac_try") 2>&5
16200   ac_status=$?
16201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16202   (exit $ac_status); }; } &&
16203          { ac_try='test -s conftest.$ac_objext'
16204   { (case "(($ac_try" in
16205   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16206   *) ac_try_echo=$ac_try;;
16207 esac
16208 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16209   (eval "$ac_try") 2>&5
16210   ac_status=$?
16211   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16212   (exit $ac_status); }; }; then
16213   ac_header_compiler=yes
16214 else
16215   echo "$as_me: failed program was:" >&5
16216 sed 's/^/| /' conftest.$ac_ext >&5
16217
16218         ac_header_compiler=no
16219 fi
16220
16221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16222 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16223 echo "${ECHO_T}$ac_header_compiler" >&6; }
16224
16225 # Is the header present?
16226 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16227 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16228 cat >conftest.$ac_ext <<_ACEOF
16229 /* confdefs.h.  */
16230 _ACEOF
16231 cat confdefs.h >>conftest.$ac_ext
16232 cat >>conftest.$ac_ext <<_ACEOF
16233 /* end confdefs.h.  */
16234 #include <$ac_header>
16235 _ACEOF
16236 if { (ac_try="$ac_cpp conftest.$ac_ext"
16237 case "(($ac_try" in
16238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16239   *) ac_try_echo=$ac_try;;
16240 esac
16241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16242   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16243   ac_status=$?
16244   grep -v '^ *+' conftest.er1 >conftest.err
16245   rm -f conftest.er1
16246   cat conftest.err >&5
16247   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16248   (exit $ac_status); } >/dev/null; then
16249   if test -s conftest.err; then
16250     ac_cpp_err=$ac_c_preproc_warn_flag
16251     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16252   else
16253     ac_cpp_err=
16254   fi
16255 else
16256   ac_cpp_err=yes
16257 fi
16258 if test -z "$ac_cpp_err"; then
16259   ac_header_preproc=yes
16260 else
16261   echo "$as_me: failed program was:" >&5
16262 sed 's/^/| /' conftest.$ac_ext >&5
16263
16264   ac_header_preproc=no
16265 fi
16266
16267 rm -f conftest.err conftest.$ac_ext
16268 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16269 echo "${ECHO_T}$ac_header_preproc" >&6; }
16270
16271 # So?  What about this header?
16272 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16273   yes:no: )
16274     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16275 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16276     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16277 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16278     ac_header_preproc=yes
16279     ;;
16280   no:yes:* )
16281     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16282 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16283     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16284 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16285     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16286 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16287     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16288 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16289     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16290 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16291     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16292 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16293     ( cat <<\_ASBOX
16294 ## ----------------------------------- ##
16295 ## Report this to llvmbugs@cs.uiuc.edu ##
16296 ## ----------------------------------- ##
16297 _ASBOX
16298      ) | sed "s/^/$as_me: WARNING:     /" >&2
16299     ;;
16300 esac
16301 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16302 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16303 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16304   echo $ECHO_N "(cached) $ECHO_C" >&6
16305 else
16306   eval "$as_ac_Header=\$ac_header_preproc"
16307 fi
16308 ac_res=`eval echo '${'$as_ac_Header'}'`
16309                { echo "$as_me:$LINENO: result: $ac_res" >&5
16310 echo "${ECHO_T}$ac_res" >&6; }
16311
16312 fi
16313 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16314   cat >>confdefs.h <<_ACEOF
16315 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16316 _ACEOF
16317
16318 fi
16319
16320 done
16321
16322
16323
16324
16325
16326 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16327 do
16328 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16329 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16330   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16331 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16332 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16333   echo $ECHO_N "(cached) $ECHO_C" >&6
16334 fi
16335 ac_res=`eval echo '${'$as_ac_Header'}'`
16336                { echo "$as_me:$LINENO: result: $ac_res" >&5
16337 echo "${ECHO_T}$ac_res" >&6; }
16338 else
16339   # Is the header compilable?
16340 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16341 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16342 cat >conftest.$ac_ext <<_ACEOF
16343 /* confdefs.h.  */
16344 _ACEOF
16345 cat confdefs.h >>conftest.$ac_ext
16346 cat >>conftest.$ac_ext <<_ACEOF
16347 /* end confdefs.h.  */
16348 $ac_includes_default
16349 #include <$ac_header>
16350 _ACEOF
16351 rm -f conftest.$ac_objext
16352 if { (ac_try="$ac_compile"
16353 case "(($ac_try" in
16354   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16355   *) ac_try_echo=$ac_try;;
16356 esac
16357 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16358   (eval "$ac_compile") 2>conftest.er1
16359   ac_status=$?
16360   grep -v '^ *+' conftest.er1 >conftest.err
16361   rm -f conftest.er1
16362   cat conftest.err >&5
16363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16364   (exit $ac_status); } &&
16365          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16366   { (case "(($ac_try" in
16367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16368   *) ac_try_echo=$ac_try;;
16369 esac
16370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16371   (eval "$ac_try") 2>&5
16372   ac_status=$?
16373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16374   (exit $ac_status); }; } &&
16375          { ac_try='test -s conftest.$ac_objext'
16376   { (case "(($ac_try" in
16377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16378   *) ac_try_echo=$ac_try;;
16379 esac
16380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16381   (eval "$ac_try") 2>&5
16382   ac_status=$?
16383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16384   (exit $ac_status); }; }; then
16385   ac_header_compiler=yes
16386 else
16387   echo "$as_me: failed program was:" >&5
16388 sed 's/^/| /' conftest.$ac_ext >&5
16389
16390         ac_header_compiler=no
16391 fi
16392
16393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16394 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16395 echo "${ECHO_T}$ac_header_compiler" >&6; }
16396
16397 # Is the header present?
16398 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16399 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16400 cat >conftest.$ac_ext <<_ACEOF
16401 /* confdefs.h.  */
16402 _ACEOF
16403 cat confdefs.h >>conftest.$ac_ext
16404 cat >>conftest.$ac_ext <<_ACEOF
16405 /* end confdefs.h.  */
16406 #include <$ac_header>
16407 _ACEOF
16408 if { (ac_try="$ac_cpp conftest.$ac_ext"
16409 case "(($ac_try" in
16410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16411   *) ac_try_echo=$ac_try;;
16412 esac
16413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16414   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16415   ac_status=$?
16416   grep -v '^ *+' conftest.er1 >conftest.err
16417   rm -f conftest.er1
16418   cat conftest.err >&5
16419   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16420   (exit $ac_status); } >/dev/null; then
16421   if test -s conftest.err; then
16422     ac_cpp_err=$ac_c_preproc_warn_flag
16423     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16424   else
16425     ac_cpp_err=
16426   fi
16427 else
16428   ac_cpp_err=yes
16429 fi
16430 if test -z "$ac_cpp_err"; then
16431   ac_header_preproc=yes
16432 else
16433   echo "$as_me: failed program was:" >&5
16434 sed 's/^/| /' conftest.$ac_ext >&5
16435
16436   ac_header_preproc=no
16437 fi
16438
16439 rm -f conftest.err conftest.$ac_ext
16440 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16441 echo "${ECHO_T}$ac_header_preproc" >&6; }
16442
16443 # So?  What about this header?
16444 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16445   yes:no: )
16446     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16447 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16448     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16449 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16450     ac_header_preproc=yes
16451     ;;
16452   no:yes:* )
16453     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16454 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16455     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16456 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16457     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16458 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16459     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16460 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16461     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16462 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16463     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16464 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16465     ( cat <<\_ASBOX
16466 ## ----------------------------------- ##
16467 ## Report this to llvmbugs@cs.uiuc.edu ##
16468 ## ----------------------------------- ##
16469 _ASBOX
16470      ) | sed "s/^/$as_me: WARNING:     /" >&2
16471     ;;
16472 esac
16473 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16474 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16475 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16476   echo $ECHO_N "(cached) $ECHO_C" >&6
16477 else
16478   eval "$as_ac_Header=\$ac_header_preproc"
16479 fi
16480 ac_res=`eval echo '${'$as_ac_Header'}'`
16481                { echo "$as_me:$LINENO: result: $ac_res" >&5
16482 echo "${ECHO_T}$ac_res" >&6; }
16483
16484 fi
16485 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16486   cat >>confdefs.h <<_ACEOF
16487 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16488 _ACEOF
16489
16490 fi
16491
16492 done
16493
16494
16495 for ac_header in valgrind/valgrind.h
16496 do
16497 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16498 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16499   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16500 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16501 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16502   echo $ECHO_N "(cached) $ECHO_C" >&6
16503 fi
16504 ac_res=`eval echo '${'$as_ac_Header'}'`
16505                { echo "$as_me:$LINENO: result: $ac_res" >&5
16506 echo "${ECHO_T}$ac_res" >&6; }
16507 else
16508   # Is the header compilable?
16509 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16510 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16511 cat >conftest.$ac_ext <<_ACEOF
16512 /* confdefs.h.  */
16513 _ACEOF
16514 cat confdefs.h >>conftest.$ac_ext
16515 cat >>conftest.$ac_ext <<_ACEOF
16516 /* end confdefs.h.  */
16517 $ac_includes_default
16518 #include <$ac_header>
16519 _ACEOF
16520 rm -f conftest.$ac_objext
16521 if { (ac_try="$ac_compile"
16522 case "(($ac_try" in
16523   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16524   *) ac_try_echo=$ac_try;;
16525 esac
16526 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16527   (eval "$ac_compile") 2>conftest.er1
16528   ac_status=$?
16529   grep -v '^ *+' conftest.er1 >conftest.err
16530   rm -f conftest.er1
16531   cat conftest.err >&5
16532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16533   (exit $ac_status); } &&
16534          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16535   { (case "(($ac_try" in
16536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16537   *) ac_try_echo=$ac_try;;
16538 esac
16539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16540   (eval "$ac_try") 2>&5
16541   ac_status=$?
16542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16543   (exit $ac_status); }; } &&
16544          { ac_try='test -s conftest.$ac_objext'
16545   { (case "(($ac_try" in
16546   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16547   *) ac_try_echo=$ac_try;;
16548 esac
16549 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16550   (eval "$ac_try") 2>&5
16551   ac_status=$?
16552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16553   (exit $ac_status); }; }; then
16554   ac_header_compiler=yes
16555 else
16556   echo "$as_me: failed program was:" >&5
16557 sed 's/^/| /' conftest.$ac_ext >&5
16558
16559         ac_header_compiler=no
16560 fi
16561
16562 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16563 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16564 echo "${ECHO_T}$ac_header_compiler" >&6; }
16565
16566 # Is the header present?
16567 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16568 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16569 cat >conftest.$ac_ext <<_ACEOF
16570 /* confdefs.h.  */
16571 _ACEOF
16572 cat confdefs.h >>conftest.$ac_ext
16573 cat >>conftest.$ac_ext <<_ACEOF
16574 /* end confdefs.h.  */
16575 #include <$ac_header>
16576 _ACEOF
16577 if { (ac_try="$ac_cpp conftest.$ac_ext"
16578 case "(($ac_try" in
16579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16580   *) ac_try_echo=$ac_try;;
16581 esac
16582 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16583   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16584   ac_status=$?
16585   grep -v '^ *+' conftest.er1 >conftest.err
16586   rm -f conftest.er1
16587   cat conftest.err >&5
16588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16589   (exit $ac_status); } >/dev/null; then
16590   if test -s conftest.err; then
16591     ac_cpp_err=$ac_c_preproc_warn_flag
16592     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16593   else
16594     ac_cpp_err=
16595   fi
16596 else
16597   ac_cpp_err=yes
16598 fi
16599 if test -z "$ac_cpp_err"; then
16600   ac_header_preproc=yes
16601 else
16602   echo "$as_me: failed program was:" >&5
16603 sed 's/^/| /' conftest.$ac_ext >&5
16604
16605   ac_header_preproc=no
16606 fi
16607
16608 rm -f conftest.err conftest.$ac_ext
16609 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16610 echo "${ECHO_T}$ac_header_preproc" >&6; }
16611
16612 # So?  What about this header?
16613 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16614   yes:no: )
16615     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16616 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16617     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16618 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16619     ac_header_preproc=yes
16620     ;;
16621   no:yes:* )
16622     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16623 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16624     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16625 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16626     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16627 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16628     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16629 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16630     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16631 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16632     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16633 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16634     ( cat <<\_ASBOX
16635 ## ----------------------------------- ##
16636 ## Report this to llvmbugs@cs.uiuc.edu ##
16637 ## ----------------------------------- ##
16638 _ASBOX
16639      ) | sed "s/^/$as_me: WARNING:     /" >&2
16640     ;;
16641 esac
16642 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16643 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16644 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16645   echo $ECHO_N "(cached) $ECHO_C" >&6
16646 else
16647   eval "$as_ac_Header=\$ac_header_preproc"
16648 fi
16649 ac_res=`eval echo '${'$as_ac_Header'}'`
16650                { echo "$as_me:$LINENO: result: $ac_res" >&5
16651 echo "${ECHO_T}$ac_res" >&6; }
16652
16653 fi
16654 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16655   cat >>confdefs.h <<_ACEOF
16656 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16657 _ACEOF
16658
16659 fi
16660
16661 done
16662
16663
16664 for ac_header in fenv.h
16665 do
16666 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16668   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16669 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16670 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16671   echo $ECHO_N "(cached) $ECHO_C" >&6
16672 fi
16673 ac_res=`eval echo '${'$as_ac_Header'}'`
16674                { echo "$as_me:$LINENO: result: $ac_res" >&5
16675 echo "${ECHO_T}$ac_res" >&6; }
16676 else
16677   # Is the header compilable?
16678 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16679 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16680 cat >conftest.$ac_ext <<_ACEOF
16681 /* confdefs.h.  */
16682 _ACEOF
16683 cat confdefs.h >>conftest.$ac_ext
16684 cat >>conftest.$ac_ext <<_ACEOF
16685 /* end confdefs.h.  */
16686 $ac_includes_default
16687 #include <$ac_header>
16688 _ACEOF
16689 rm -f conftest.$ac_objext
16690 if { (ac_try="$ac_compile"
16691 case "(($ac_try" in
16692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16693   *) ac_try_echo=$ac_try;;
16694 esac
16695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16696   (eval "$ac_compile") 2>conftest.er1
16697   ac_status=$?
16698   grep -v '^ *+' conftest.er1 >conftest.err
16699   rm -f conftest.er1
16700   cat conftest.err >&5
16701   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16702   (exit $ac_status); } &&
16703          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16704   { (case "(($ac_try" in
16705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16706   *) ac_try_echo=$ac_try;;
16707 esac
16708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16709   (eval "$ac_try") 2>&5
16710   ac_status=$?
16711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16712   (exit $ac_status); }; } &&
16713          { ac_try='test -s conftest.$ac_objext'
16714   { (case "(($ac_try" in
16715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16716   *) ac_try_echo=$ac_try;;
16717 esac
16718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16719   (eval "$ac_try") 2>&5
16720   ac_status=$?
16721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16722   (exit $ac_status); }; }; then
16723   ac_header_compiler=yes
16724 else
16725   echo "$as_me: failed program was:" >&5
16726 sed 's/^/| /' conftest.$ac_ext >&5
16727
16728         ac_header_compiler=no
16729 fi
16730
16731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16732 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16733 echo "${ECHO_T}$ac_header_compiler" >&6; }
16734
16735 # Is the header present?
16736 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16737 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16738 cat >conftest.$ac_ext <<_ACEOF
16739 /* confdefs.h.  */
16740 _ACEOF
16741 cat confdefs.h >>conftest.$ac_ext
16742 cat >>conftest.$ac_ext <<_ACEOF
16743 /* end confdefs.h.  */
16744 #include <$ac_header>
16745 _ACEOF
16746 if { (ac_try="$ac_cpp conftest.$ac_ext"
16747 case "(($ac_try" in
16748   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16749   *) ac_try_echo=$ac_try;;
16750 esac
16751 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16752   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16753   ac_status=$?
16754   grep -v '^ *+' conftest.er1 >conftest.err
16755   rm -f conftest.er1
16756   cat conftest.err >&5
16757   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16758   (exit $ac_status); } >/dev/null; then
16759   if test -s conftest.err; then
16760     ac_cpp_err=$ac_c_preproc_warn_flag
16761     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16762   else
16763     ac_cpp_err=
16764   fi
16765 else
16766   ac_cpp_err=yes
16767 fi
16768 if test -z "$ac_cpp_err"; then
16769   ac_header_preproc=yes
16770 else
16771   echo "$as_me: failed program was:" >&5
16772 sed 's/^/| /' conftest.$ac_ext >&5
16773
16774   ac_header_preproc=no
16775 fi
16776
16777 rm -f conftest.err conftest.$ac_ext
16778 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16779 echo "${ECHO_T}$ac_header_preproc" >&6; }
16780
16781 # So?  What about this header?
16782 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16783   yes:no: )
16784     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16785 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16786     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16787 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16788     ac_header_preproc=yes
16789     ;;
16790   no:yes:* )
16791     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16792 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16793     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16794 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16795     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16796 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16797     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16798 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16799     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16800 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16801     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16802 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16803     ( cat <<\_ASBOX
16804 ## ----------------------------------- ##
16805 ## Report this to llvmbugs@cs.uiuc.edu ##
16806 ## ----------------------------------- ##
16807 _ASBOX
16808      ) | sed "s/^/$as_me: WARNING:     /" >&2
16809     ;;
16810 esac
16811 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16812 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16813 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16814   echo $ECHO_N "(cached) $ECHO_C" >&6
16815 else
16816   eval "$as_ac_Header=\$ac_header_preproc"
16817 fi
16818 ac_res=`eval echo '${'$as_ac_Header'}'`
16819                { echo "$as_me:$LINENO: result: $ac_res" >&5
16820 echo "${ECHO_T}$ac_res" >&6; }
16821
16822 fi
16823 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16824   cat >>confdefs.h <<_ACEOF
16825 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16826 _ACEOF
16827
16828 fi
16829
16830 done
16831
16832 if test "$ENABLE_THREADS" -eq 1 ; then
16833
16834 for ac_header in pthread.h
16835 do
16836 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16837 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16838   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16839 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16840 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16841   echo $ECHO_N "(cached) $ECHO_C" >&6
16842 fi
16843 ac_res=`eval echo '${'$as_ac_Header'}'`
16844                { echo "$as_me:$LINENO: result: $ac_res" >&5
16845 echo "${ECHO_T}$ac_res" >&6; }
16846 else
16847   # Is the header compilable?
16848 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16849 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16850 cat >conftest.$ac_ext <<_ACEOF
16851 /* confdefs.h.  */
16852 _ACEOF
16853 cat confdefs.h >>conftest.$ac_ext
16854 cat >>conftest.$ac_ext <<_ACEOF
16855 /* end confdefs.h.  */
16856 $ac_includes_default
16857 #include <$ac_header>
16858 _ACEOF
16859 rm -f conftest.$ac_objext
16860 if { (ac_try="$ac_compile"
16861 case "(($ac_try" in
16862   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16863   *) ac_try_echo=$ac_try;;
16864 esac
16865 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16866   (eval "$ac_compile") 2>conftest.er1
16867   ac_status=$?
16868   grep -v '^ *+' conftest.er1 >conftest.err
16869   rm -f conftest.er1
16870   cat conftest.err >&5
16871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16872   (exit $ac_status); } &&
16873          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16874   { (case "(($ac_try" in
16875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16876   *) ac_try_echo=$ac_try;;
16877 esac
16878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16879   (eval "$ac_try") 2>&5
16880   ac_status=$?
16881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16882   (exit $ac_status); }; } &&
16883          { ac_try='test -s conftest.$ac_objext'
16884   { (case "(($ac_try" in
16885   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16886   *) ac_try_echo=$ac_try;;
16887 esac
16888 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16889   (eval "$ac_try") 2>&5
16890   ac_status=$?
16891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16892   (exit $ac_status); }; }; then
16893   ac_header_compiler=yes
16894 else
16895   echo "$as_me: failed program was:" >&5
16896 sed 's/^/| /' conftest.$ac_ext >&5
16897
16898         ac_header_compiler=no
16899 fi
16900
16901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16902 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16903 echo "${ECHO_T}$ac_header_compiler" >&6; }
16904
16905 # Is the header present?
16906 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16907 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16908 cat >conftest.$ac_ext <<_ACEOF
16909 /* confdefs.h.  */
16910 _ACEOF
16911 cat confdefs.h >>conftest.$ac_ext
16912 cat >>conftest.$ac_ext <<_ACEOF
16913 /* end confdefs.h.  */
16914 #include <$ac_header>
16915 _ACEOF
16916 if { (ac_try="$ac_cpp conftest.$ac_ext"
16917 case "(($ac_try" in
16918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16919   *) ac_try_echo=$ac_try;;
16920 esac
16921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16922   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16923   ac_status=$?
16924   grep -v '^ *+' conftest.er1 >conftest.err
16925   rm -f conftest.er1
16926   cat conftest.err >&5
16927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16928   (exit $ac_status); } >/dev/null; then
16929   if test -s conftest.err; then
16930     ac_cpp_err=$ac_c_preproc_warn_flag
16931     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16932   else
16933     ac_cpp_err=
16934   fi
16935 else
16936   ac_cpp_err=yes
16937 fi
16938 if test -z "$ac_cpp_err"; then
16939   ac_header_preproc=yes
16940 else
16941   echo "$as_me: failed program was:" >&5
16942 sed 's/^/| /' conftest.$ac_ext >&5
16943
16944   ac_header_preproc=no
16945 fi
16946
16947 rm -f conftest.err conftest.$ac_ext
16948 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16949 echo "${ECHO_T}$ac_header_preproc" >&6; }
16950
16951 # So?  What about this header?
16952 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16953   yes:no: )
16954     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16955 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16956     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16957 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16958     ac_header_preproc=yes
16959     ;;
16960   no:yes:* )
16961     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16962 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16963     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16964 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16965     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16966 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16967     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16968 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16969     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16970 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16971     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16972 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16973     ( cat <<\_ASBOX
16974 ## ----------------------------------- ##
16975 ## Report this to llvmbugs@cs.uiuc.edu ##
16976 ## ----------------------------------- ##
16977 _ASBOX
16978      ) | sed "s/^/$as_me: WARNING:     /" >&2
16979     ;;
16980 esac
16981 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16982 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16983 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16984   echo $ECHO_N "(cached) $ECHO_C" >&6
16985 else
16986   eval "$as_ac_Header=\$ac_header_preproc"
16987 fi
16988 ac_res=`eval echo '${'$as_ac_Header'}'`
16989                { echo "$as_me:$LINENO: result: $ac_res" >&5
16990 echo "${ECHO_T}$ac_res" >&6; }
16991
16992 fi
16993 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16994   cat >>confdefs.h <<_ACEOF
16995 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16996 _ACEOF
16997  HAVE_PTHREAD=1
16998
16999 else
17000   HAVE_PTHREAD=0
17001
17002 fi
17003
17004 done
17005
17006 else
17007   HAVE_PTHREAD=0
17008
17009 fi
17010
17011 if test "$llvm_cv_enable_libffi" = "yes" ; then
17012
17013
17014 for ac_header in ffi.h ffi/ffi.h
17015 do
17016 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17017 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17018   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17019 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17020 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17021   echo $ECHO_N "(cached) $ECHO_C" >&6
17022 fi
17023 ac_res=`eval echo '${'$as_ac_Header'}'`
17024                { echo "$as_me:$LINENO: result: $ac_res" >&5
17025 echo "${ECHO_T}$ac_res" >&6; }
17026 else
17027   # Is the header compilable?
17028 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17029 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17030 cat >conftest.$ac_ext <<_ACEOF
17031 /* confdefs.h.  */
17032 _ACEOF
17033 cat confdefs.h >>conftest.$ac_ext
17034 cat >>conftest.$ac_ext <<_ACEOF
17035 /* end confdefs.h.  */
17036 $ac_includes_default
17037 #include <$ac_header>
17038 _ACEOF
17039 rm -f conftest.$ac_objext
17040 if { (ac_try="$ac_compile"
17041 case "(($ac_try" in
17042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17043   *) ac_try_echo=$ac_try;;
17044 esac
17045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17046   (eval "$ac_compile") 2>conftest.er1
17047   ac_status=$?
17048   grep -v '^ *+' conftest.er1 >conftest.err
17049   rm -f conftest.er1
17050   cat conftest.err >&5
17051   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17052   (exit $ac_status); } &&
17053          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17054   { (case "(($ac_try" in
17055   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17056   *) ac_try_echo=$ac_try;;
17057 esac
17058 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17059   (eval "$ac_try") 2>&5
17060   ac_status=$?
17061   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17062   (exit $ac_status); }; } &&
17063          { ac_try='test -s conftest.$ac_objext'
17064   { (case "(($ac_try" in
17065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17066   *) ac_try_echo=$ac_try;;
17067 esac
17068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17069   (eval "$ac_try") 2>&5
17070   ac_status=$?
17071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17072   (exit $ac_status); }; }; then
17073   ac_header_compiler=yes
17074 else
17075   echo "$as_me: failed program was:" >&5
17076 sed 's/^/| /' conftest.$ac_ext >&5
17077
17078         ac_header_compiler=no
17079 fi
17080
17081 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17082 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17083 echo "${ECHO_T}$ac_header_compiler" >&6; }
17084
17085 # Is the header present?
17086 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17087 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17088 cat >conftest.$ac_ext <<_ACEOF
17089 /* confdefs.h.  */
17090 _ACEOF
17091 cat confdefs.h >>conftest.$ac_ext
17092 cat >>conftest.$ac_ext <<_ACEOF
17093 /* end confdefs.h.  */
17094 #include <$ac_header>
17095 _ACEOF
17096 if { (ac_try="$ac_cpp conftest.$ac_ext"
17097 case "(($ac_try" in
17098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17099   *) ac_try_echo=$ac_try;;
17100 esac
17101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17102   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17103   ac_status=$?
17104   grep -v '^ *+' conftest.er1 >conftest.err
17105   rm -f conftest.er1
17106   cat conftest.err >&5
17107   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17108   (exit $ac_status); } >/dev/null; then
17109   if test -s conftest.err; then
17110     ac_cpp_err=$ac_c_preproc_warn_flag
17111     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17112   else
17113     ac_cpp_err=
17114   fi
17115 else
17116   ac_cpp_err=yes
17117 fi
17118 if test -z "$ac_cpp_err"; then
17119   ac_header_preproc=yes
17120 else
17121   echo "$as_me: failed program was:" >&5
17122 sed 's/^/| /' conftest.$ac_ext >&5
17123
17124   ac_header_preproc=no
17125 fi
17126
17127 rm -f conftest.err conftest.$ac_ext
17128 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17129 echo "${ECHO_T}$ac_header_preproc" >&6; }
17130
17131 # So?  What about this header?
17132 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17133   yes:no: )
17134     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17135 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17136     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17137 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17138     ac_header_preproc=yes
17139     ;;
17140   no:yes:* )
17141     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17142 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17143     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17144 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17145     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17146 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17147     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17148 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17149     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17150 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17151     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17152 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17153     ( cat <<\_ASBOX
17154 ## ----------------------------------- ##
17155 ## Report this to llvmbugs@cs.uiuc.edu ##
17156 ## ----------------------------------- ##
17157 _ASBOX
17158      ) | sed "s/^/$as_me: WARNING:     /" >&2
17159     ;;
17160 esac
17161 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17162 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17163 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17164   echo $ECHO_N "(cached) $ECHO_C" >&6
17165 else
17166   eval "$as_ac_Header=\$ac_header_preproc"
17167 fi
17168 ac_res=`eval echo '${'$as_ac_Header'}'`
17169                { echo "$as_me:$LINENO: result: $ac_res" >&5
17170 echo "${ECHO_T}$ac_res" >&6; }
17171
17172 fi
17173 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17174   cat >>confdefs.h <<_ACEOF
17175 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17176 _ACEOF
17177
17178 fi
17179
17180 done
17181
17182 fi
17183
17184
17185 for ac_header in CrashReporterClient.h
17186 do
17187 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17188 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17189   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17190 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17191 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17192   echo $ECHO_N "(cached) $ECHO_C" >&6
17193 fi
17194 ac_res=`eval echo '${'$as_ac_Header'}'`
17195                { echo "$as_me:$LINENO: result: $ac_res" >&5
17196 echo "${ECHO_T}$ac_res" >&6; }
17197 else
17198   # Is the header compilable?
17199 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17200 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17201 cat >conftest.$ac_ext <<_ACEOF
17202 /* confdefs.h.  */
17203 _ACEOF
17204 cat confdefs.h >>conftest.$ac_ext
17205 cat >>conftest.$ac_ext <<_ACEOF
17206 /* end confdefs.h.  */
17207 $ac_includes_default
17208 #include <$ac_header>
17209 _ACEOF
17210 rm -f conftest.$ac_objext
17211 if { (ac_try="$ac_compile"
17212 case "(($ac_try" in
17213   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17214   *) ac_try_echo=$ac_try;;
17215 esac
17216 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17217   (eval "$ac_compile") 2>conftest.er1
17218   ac_status=$?
17219   grep -v '^ *+' conftest.er1 >conftest.err
17220   rm -f conftest.er1
17221   cat conftest.err >&5
17222   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17223   (exit $ac_status); } &&
17224          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17225   { (case "(($ac_try" in
17226   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17227   *) ac_try_echo=$ac_try;;
17228 esac
17229 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17230   (eval "$ac_try") 2>&5
17231   ac_status=$?
17232   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17233   (exit $ac_status); }; } &&
17234          { ac_try='test -s conftest.$ac_objext'
17235   { (case "(($ac_try" in
17236   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17237   *) ac_try_echo=$ac_try;;
17238 esac
17239 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17240   (eval "$ac_try") 2>&5
17241   ac_status=$?
17242   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17243   (exit $ac_status); }; }; then
17244   ac_header_compiler=yes
17245 else
17246   echo "$as_me: failed program was:" >&5
17247 sed 's/^/| /' conftest.$ac_ext >&5
17248
17249         ac_header_compiler=no
17250 fi
17251
17252 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17253 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17254 echo "${ECHO_T}$ac_header_compiler" >&6; }
17255
17256 # Is the header present?
17257 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17258 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17259 cat >conftest.$ac_ext <<_ACEOF
17260 /* confdefs.h.  */
17261 _ACEOF
17262 cat confdefs.h >>conftest.$ac_ext
17263 cat >>conftest.$ac_ext <<_ACEOF
17264 /* end confdefs.h.  */
17265 #include <$ac_header>
17266 _ACEOF
17267 if { (ac_try="$ac_cpp conftest.$ac_ext"
17268 case "(($ac_try" in
17269   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17270   *) ac_try_echo=$ac_try;;
17271 esac
17272 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17273   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17274   ac_status=$?
17275   grep -v '^ *+' conftest.er1 >conftest.err
17276   rm -f conftest.er1
17277   cat conftest.err >&5
17278   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17279   (exit $ac_status); } >/dev/null; then
17280   if test -s conftest.err; then
17281     ac_cpp_err=$ac_c_preproc_warn_flag
17282     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17283   else
17284     ac_cpp_err=
17285   fi
17286 else
17287   ac_cpp_err=yes
17288 fi
17289 if test -z "$ac_cpp_err"; then
17290   ac_header_preproc=yes
17291 else
17292   echo "$as_me: failed program was:" >&5
17293 sed 's/^/| /' conftest.$ac_ext >&5
17294
17295   ac_header_preproc=no
17296 fi
17297
17298 rm -f conftest.err conftest.$ac_ext
17299 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17300 echo "${ECHO_T}$ac_header_preproc" >&6; }
17301
17302 # So?  What about this header?
17303 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17304   yes:no: )
17305     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17306 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17307     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17308 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17309     ac_header_preproc=yes
17310     ;;
17311   no:yes:* )
17312     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17313 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17314     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17315 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17316     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17317 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17318     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17319 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17320     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17321 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17322     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17323 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17324     ( cat <<\_ASBOX
17325 ## ----------------------------------- ##
17326 ## Report this to llvmbugs@cs.uiuc.edu ##
17327 ## ----------------------------------- ##
17328 _ASBOX
17329      ) | sed "s/^/$as_me: WARNING:     /" >&2
17330     ;;
17331 esac
17332 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17333 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17334 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17335   echo $ECHO_N "(cached) $ECHO_C" >&6
17336 else
17337   eval "$as_ac_Header=\$ac_header_preproc"
17338 fi
17339 ac_res=`eval echo '${'$as_ac_Header'}'`
17340                { echo "$as_me:$LINENO: result: $ac_res" >&5
17341 echo "${ECHO_T}$ac_res" >&6; }
17342
17343 fi
17344 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17345   cat >>confdefs.h <<_ACEOF
17346 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17347 _ACEOF
17348
17349 fi
17350
17351 done
17352
17353
17354
17355
17356
17357   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17358 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17359 if test "${ac_cv_huge_val_sanity+set}" = set; then
17360   echo $ECHO_N "(cached) $ECHO_C" >&6
17361 else
17362
17363     ac_ext=cpp
17364 ac_cpp='$CXXCPP $CPPFLAGS'
17365 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17366 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17367 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17368
17369     ac_save_CXXFLAGS=$CXXFLAGS
17370     CXXFLAGS=-pedantic
17371     if test "$cross_compiling" = yes; then
17372   ac_cv_huge_val_sanity=yes
17373 else
17374   cat >conftest.$ac_ext <<_ACEOF
17375 /* confdefs.h.  */
17376 _ACEOF
17377 cat confdefs.h >>conftest.$ac_ext
17378 cat >>conftest.$ac_ext <<_ACEOF
17379 /* end confdefs.h.  */
17380 #include <math.h>
17381 int
17382 main ()
17383 {
17384 double x = HUGE_VAL; return x != x;
17385   ;
17386   return 0;
17387 }
17388 _ACEOF
17389 rm -f conftest$ac_exeext
17390 if { (ac_try="$ac_link"
17391 case "(($ac_try" in
17392   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17393   *) ac_try_echo=$ac_try;;
17394 esac
17395 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17396   (eval "$ac_link") 2>&5
17397   ac_status=$?
17398   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17399   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17400   { (case "(($ac_try" in
17401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17402   *) ac_try_echo=$ac_try;;
17403 esac
17404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17405   (eval "$ac_try") 2>&5
17406   ac_status=$?
17407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17408   (exit $ac_status); }; }; then
17409   ac_cv_huge_val_sanity=yes
17410 else
17411   echo "$as_me: program exited with status $ac_status" >&5
17412 echo "$as_me: failed program was:" >&5
17413 sed 's/^/| /' conftest.$ac_ext >&5
17414
17415 ( exit $ac_status )
17416 ac_cv_huge_val_sanity=no
17417 fi
17418 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17419 fi
17420
17421
17422     CXXFLAGS=$ac_save_CXXFLAGS
17423     ac_ext=c
17424 ac_cpp='$CPP $CPPFLAGS'
17425 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17426 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17427 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17428
17429
17430 fi
17431 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17432 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17433   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17434
17435
17436 { echo "$as_me:$LINENO: checking for pid_t" >&5
17437 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17438 if test "${ac_cv_type_pid_t+set}" = set; then
17439   echo $ECHO_N "(cached) $ECHO_C" >&6
17440 else
17441   cat >conftest.$ac_ext <<_ACEOF
17442 /* confdefs.h.  */
17443 _ACEOF
17444 cat confdefs.h >>conftest.$ac_ext
17445 cat >>conftest.$ac_ext <<_ACEOF
17446 /* end confdefs.h.  */
17447 $ac_includes_default
17448 typedef pid_t ac__type_new_;
17449 int
17450 main ()
17451 {
17452 if ((ac__type_new_ *) 0)
17453   return 0;
17454 if (sizeof (ac__type_new_))
17455   return 0;
17456   ;
17457   return 0;
17458 }
17459 _ACEOF
17460 rm -f conftest.$ac_objext
17461 if { (ac_try="$ac_compile"
17462 case "(($ac_try" in
17463   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17464   *) ac_try_echo=$ac_try;;
17465 esac
17466 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17467   (eval "$ac_compile") 2>conftest.er1
17468   ac_status=$?
17469   grep -v '^ *+' conftest.er1 >conftest.err
17470   rm -f conftest.er1
17471   cat conftest.err >&5
17472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17473   (exit $ac_status); } &&
17474          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17475   { (case "(($ac_try" in
17476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17477   *) ac_try_echo=$ac_try;;
17478 esac
17479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17480   (eval "$ac_try") 2>&5
17481   ac_status=$?
17482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17483   (exit $ac_status); }; } &&
17484          { ac_try='test -s conftest.$ac_objext'
17485   { (case "(($ac_try" in
17486   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17487   *) ac_try_echo=$ac_try;;
17488 esac
17489 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17490   (eval "$ac_try") 2>&5
17491   ac_status=$?
17492   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17493   (exit $ac_status); }; }; then
17494   ac_cv_type_pid_t=yes
17495 else
17496   echo "$as_me: failed program was:" >&5
17497 sed 's/^/| /' conftest.$ac_ext >&5
17498
17499         ac_cv_type_pid_t=no
17500 fi
17501
17502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17503 fi
17504 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17505 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17506 if test $ac_cv_type_pid_t = yes; then
17507   :
17508 else
17509
17510 cat >>confdefs.h <<_ACEOF
17511 #define pid_t int
17512 _ACEOF
17513
17514 fi
17515
17516 { echo "$as_me:$LINENO: checking for size_t" >&5
17517 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17518 if test "${ac_cv_type_size_t+set}" = set; then
17519   echo $ECHO_N "(cached) $ECHO_C" >&6
17520 else
17521   cat >conftest.$ac_ext <<_ACEOF
17522 /* confdefs.h.  */
17523 _ACEOF
17524 cat confdefs.h >>conftest.$ac_ext
17525 cat >>conftest.$ac_ext <<_ACEOF
17526 /* end confdefs.h.  */
17527 $ac_includes_default
17528 typedef size_t ac__type_new_;
17529 int
17530 main ()
17531 {
17532 if ((ac__type_new_ *) 0)
17533   return 0;
17534 if (sizeof (ac__type_new_))
17535   return 0;
17536   ;
17537   return 0;
17538 }
17539 _ACEOF
17540 rm -f conftest.$ac_objext
17541 if { (ac_try="$ac_compile"
17542 case "(($ac_try" in
17543   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17544   *) ac_try_echo=$ac_try;;
17545 esac
17546 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17547   (eval "$ac_compile") 2>conftest.er1
17548   ac_status=$?
17549   grep -v '^ *+' conftest.er1 >conftest.err
17550   rm -f conftest.er1
17551   cat conftest.err >&5
17552   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17553   (exit $ac_status); } &&
17554          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17555   { (case "(($ac_try" in
17556   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17557   *) ac_try_echo=$ac_try;;
17558 esac
17559 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17560   (eval "$ac_try") 2>&5
17561   ac_status=$?
17562   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17563   (exit $ac_status); }; } &&
17564          { ac_try='test -s conftest.$ac_objext'
17565   { (case "(($ac_try" in
17566   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17567   *) ac_try_echo=$ac_try;;
17568 esac
17569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17570   (eval "$ac_try") 2>&5
17571   ac_status=$?
17572   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17573   (exit $ac_status); }; }; then
17574   ac_cv_type_size_t=yes
17575 else
17576   echo "$as_me: failed program was:" >&5
17577 sed 's/^/| /' conftest.$ac_ext >&5
17578
17579         ac_cv_type_size_t=no
17580 fi
17581
17582 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17583 fi
17584 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17585 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17586 if test $ac_cv_type_size_t = yes; then
17587   :
17588 else
17589
17590 cat >>confdefs.h <<_ACEOF
17591 #define size_t unsigned int
17592 _ACEOF
17593
17594 fi
17595
17596
17597 cat >>confdefs.h <<_ACEOF
17598 #define RETSIGTYPE void
17599 _ACEOF
17600
17601 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17602 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17603 if test "${ac_cv_struct_tm+set}" = set; then
17604   echo $ECHO_N "(cached) $ECHO_C" >&6
17605 else
17606   cat >conftest.$ac_ext <<_ACEOF
17607 /* confdefs.h.  */
17608 _ACEOF
17609 cat confdefs.h >>conftest.$ac_ext
17610 cat >>conftest.$ac_ext <<_ACEOF
17611 /* end confdefs.h.  */
17612 #include <sys/types.h>
17613 #include <time.h>
17614
17615 int
17616 main ()
17617 {
17618 struct tm *tp; tp->tm_sec;
17619   ;
17620   return 0;
17621 }
17622 _ACEOF
17623 rm -f conftest.$ac_objext
17624 if { (ac_try="$ac_compile"
17625 case "(($ac_try" in
17626   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17627   *) ac_try_echo=$ac_try;;
17628 esac
17629 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17630   (eval "$ac_compile") 2>conftest.er1
17631   ac_status=$?
17632   grep -v '^ *+' conftest.er1 >conftest.err
17633   rm -f conftest.er1
17634   cat conftest.err >&5
17635   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17636   (exit $ac_status); } &&
17637          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17638   { (case "(($ac_try" in
17639   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17640   *) ac_try_echo=$ac_try;;
17641 esac
17642 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17643   (eval "$ac_try") 2>&5
17644   ac_status=$?
17645   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17646   (exit $ac_status); }; } &&
17647          { ac_try='test -s conftest.$ac_objext'
17648   { (case "(($ac_try" in
17649   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17650   *) ac_try_echo=$ac_try;;
17651 esac
17652 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17653   (eval "$ac_try") 2>&5
17654   ac_status=$?
17655   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17656   (exit $ac_status); }; }; then
17657   ac_cv_struct_tm=time.h
17658 else
17659   echo "$as_me: failed program was:" >&5
17660 sed 's/^/| /' conftest.$ac_ext >&5
17661
17662         ac_cv_struct_tm=sys/time.h
17663 fi
17664
17665 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17666 fi
17667 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17668 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17669 if test $ac_cv_struct_tm = sys/time.h; then
17670
17671 cat >>confdefs.h <<\_ACEOF
17672 #define TM_IN_SYS_TIME 1
17673 _ACEOF
17674
17675 fi
17676
17677 { echo "$as_me:$LINENO: checking for int64_t" >&5
17678 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17679 if test "${ac_cv_type_int64_t+set}" = set; then
17680   echo $ECHO_N "(cached) $ECHO_C" >&6
17681 else
17682   cat >conftest.$ac_ext <<_ACEOF
17683 /* confdefs.h.  */
17684 _ACEOF
17685 cat confdefs.h >>conftest.$ac_ext
17686 cat >>conftest.$ac_ext <<_ACEOF
17687 /* end confdefs.h.  */
17688 $ac_includes_default
17689 typedef int64_t ac__type_new_;
17690 int
17691 main ()
17692 {
17693 if ((ac__type_new_ *) 0)
17694   return 0;
17695 if (sizeof (ac__type_new_))
17696   return 0;
17697   ;
17698   return 0;
17699 }
17700 _ACEOF
17701 rm -f conftest.$ac_objext
17702 if { (ac_try="$ac_compile"
17703 case "(($ac_try" in
17704   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17705   *) ac_try_echo=$ac_try;;
17706 esac
17707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17708   (eval "$ac_compile") 2>conftest.er1
17709   ac_status=$?
17710   grep -v '^ *+' conftest.er1 >conftest.err
17711   rm -f conftest.er1
17712   cat conftest.err >&5
17713   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17714   (exit $ac_status); } &&
17715          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17716   { (case "(($ac_try" in
17717   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17718   *) ac_try_echo=$ac_try;;
17719 esac
17720 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17721   (eval "$ac_try") 2>&5
17722   ac_status=$?
17723   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17724   (exit $ac_status); }; } &&
17725          { ac_try='test -s conftest.$ac_objext'
17726   { (case "(($ac_try" in
17727   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17728   *) ac_try_echo=$ac_try;;
17729 esac
17730 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17731   (eval "$ac_try") 2>&5
17732   ac_status=$?
17733   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17734   (exit $ac_status); }; }; then
17735   ac_cv_type_int64_t=yes
17736 else
17737   echo "$as_me: failed program was:" >&5
17738 sed 's/^/| /' conftest.$ac_ext >&5
17739
17740         ac_cv_type_int64_t=no
17741 fi
17742
17743 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17744 fi
17745 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17746 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17747 if test $ac_cv_type_int64_t = yes; then
17748
17749 cat >>confdefs.h <<_ACEOF
17750 #define HAVE_INT64_T 1
17751 _ACEOF
17752
17753
17754 else
17755   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17756 echo "$as_me: error: Type int64_t required but not found" >&2;}
17757    { (exit 1); exit 1; }; }
17758 fi
17759
17760 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17761 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17762 if test "${ac_cv_type_uint64_t+set}" = set; then
17763   echo $ECHO_N "(cached) $ECHO_C" >&6
17764 else
17765   cat >conftest.$ac_ext <<_ACEOF
17766 /* confdefs.h.  */
17767 _ACEOF
17768 cat confdefs.h >>conftest.$ac_ext
17769 cat >>conftest.$ac_ext <<_ACEOF
17770 /* end confdefs.h.  */
17771 $ac_includes_default
17772 typedef uint64_t ac__type_new_;
17773 int
17774 main ()
17775 {
17776 if ((ac__type_new_ *) 0)
17777   return 0;
17778 if (sizeof (ac__type_new_))
17779   return 0;
17780   ;
17781   return 0;
17782 }
17783 _ACEOF
17784 rm -f conftest.$ac_objext
17785 if { (ac_try="$ac_compile"
17786 case "(($ac_try" in
17787   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17788   *) ac_try_echo=$ac_try;;
17789 esac
17790 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17791   (eval "$ac_compile") 2>conftest.er1
17792   ac_status=$?
17793   grep -v '^ *+' conftest.er1 >conftest.err
17794   rm -f conftest.er1
17795   cat conftest.err >&5
17796   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17797   (exit $ac_status); } &&
17798          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17799   { (case "(($ac_try" in
17800   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17801   *) ac_try_echo=$ac_try;;
17802 esac
17803 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17804   (eval "$ac_try") 2>&5
17805   ac_status=$?
17806   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17807   (exit $ac_status); }; } &&
17808          { ac_try='test -s conftest.$ac_objext'
17809   { (case "(($ac_try" in
17810   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17811   *) ac_try_echo=$ac_try;;
17812 esac
17813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17814   (eval "$ac_try") 2>&5
17815   ac_status=$?
17816   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17817   (exit $ac_status); }; }; then
17818   ac_cv_type_uint64_t=yes
17819 else
17820   echo "$as_me: failed program was:" >&5
17821 sed 's/^/| /' conftest.$ac_ext >&5
17822
17823         ac_cv_type_uint64_t=no
17824 fi
17825
17826 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17827 fi
17828 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17829 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17830 if test $ac_cv_type_uint64_t = yes; then
17831
17832 cat >>confdefs.h <<_ACEOF
17833 #define HAVE_UINT64_T 1
17834 _ACEOF
17835
17836
17837 else
17838   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17839 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17840 if test "${ac_cv_type_u_int64_t+set}" = set; then
17841   echo $ECHO_N "(cached) $ECHO_C" >&6
17842 else
17843   cat >conftest.$ac_ext <<_ACEOF
17844 /* confdefs.h.  */
17845 _ACEOF
17846 cat confdefs.h >>conftest.$ac_ext
17847 cat >>conftest.$ac_ext <<_ACEOF
17848 /* end confdefs.h.  */
17849 $ac_includes_default
17850 typedef u_int64_t ac__type_new_;
17851 int
17852 main ()
17853 {
17854 if ((ac__type_new_ *) 0)
17855   return 0;
17856 if (sizeof (ac__type_new_))
17857   return 0;
17858   ;
17859   return 0;
17860 }
17861 _ACEOF
17862 rm -f conftest.$ac_objext
17863 if { (ac_try="$ac_compile"
17864 case "(($ac_try" in
17865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17866   *) ac_try_echo=$ac_try;;
17867 esac
17868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17869   (eval "$ac_compile") 2>conftest.er1
17870   ac_status=$?
17871   grep -v '^ *+' conftest.er1 >conftest.err
17872   rm -f conftest.er1
17873   cat conftest.err >&5
17874   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17875   (exit $ac_status); } &&
17876          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17877   { (case "(($ac_try" in
17878   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17879   *) ac_try_echo=$ac_try;;
17880 esac
17881 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17882   (eval "$ac_try") 2>&5
17883   ac_status=$?
17884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17885   (exit $ac_status); }; } &&
17886          { ac_try='test -s conftest.$ac_objext'
17887   { (case "(($ac_try" in
17888   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17889   *) ac_try_echo=$ac_try;;
17890 esac
17891 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17892   (eval "$ac_try") 2>&5
17893   ac_status=$?
17894   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17895   (exit $ac_status); }; }; then
17896   ac_cv_type_u_int64_t=yes
17897 else
17898   echo "$as_me: failed program was:" >&5
17899 sed 's/^/| /' conftest.$ac_ext >&5
17900
17901         ac_cv_type_u_int64_t=no
17902 fi
17903
17904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17905 fi
17906 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17907 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17908 if test $ac_cv_type_u_int64_t = yes; then
17909
17910 cat >>confdefs.h <<_ACEOF
17911 #define HAVE_U_INT64_T 1
17912 _ACEOF
17913
17914
17915 else
17916   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17917 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17918    { (exit 1); exit 1; }; }
17919 fi
17920
17921 fi
17922
17923
17924
17925
17926
17927
17928
17929
17930
17931
17932 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17933 do
17934 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17935 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17936 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17937 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17938   echo $ECHO_N "(cached) $ECHO_C" >&6
17939 else
17940   cat >conftest.$ac_ext <<_ACEOF
17941 /* confdefs.h.  */
17942 _ACEOF
17943 cat confdefs.h >>conftest.$ac_ext
17944 cat >>conftest.$ac_ext <<_ACEOF
17945 /* end confdefs.h.  */
17946 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17947    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17948 #define $ac_func innocuous_$ac_func
17949
17950 /* System header to define __stub macros and hopefully few prototypes,
17951     which can conflict with char $ac_func (); below.
17952     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17953     <limits.h> exists even on freestanding compilers.  */
17954
17955 #ifdef __STDC__
17956 # include <limits.h>
17957 #else
17958 # include <assert.h>
17959 #endif
17960
17961 #undef $ac_func
17962
17963 /* Override any GCC internal prototype to avoid an error.
17964    Use char because int might match the return type of a GCC
17965    builtin and then its argument prototype would still apply.  */
17966 #ifdef __cplusplus
17967 extern "C"
17968 #endif
17969 char $ac_func ();
17970 /* The GNU C library defines this for functions which it implements
17971     to always fail with ENOSYS.  Some functions are actually named
17972     something starting with __ and the normal name is an alias.  */
17973 #if defined __stub_$ac_func || defined __stub___$ac_func
17974 choke me
17975 #endif
17976
17977 int
17978 main ()
17979 {
17980 return $ac_func ();
17981   ;
17982   return 0;
17983 }
17984 _ACEOF
17985 rm -f conftest.$ac_objext conftest$ac_exeext
17986 if { (ac_try="$ac_link"
17987 case "(($ac_try" in
17988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17989   *) ac_try_echo=$ac_try;;
17990 esac
17991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17992   (eval "$ac_link") 2>conftest.er1
17993   ac_status=$?
17994   grep -v '^ *+' conftest.er1 >conftest.err
17995   rm -f conftest.er1
17996   cat conftest.err >&5
17997   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17998   (exit $ac_status); } &&
17999          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18000   { (case "(($ac_try" in
18001   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18002   *) ac_try_echo=$ac_try;;
18003 esac
18004 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18005   (eval "$ac_try") 2>&5
18006   ac_status=$?
18007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18008   (exit $ac_status); }; } &&
18009          { ac_try='test -s conftest$ac_exeext'
18010   { (case "(($ac_try" in
18011   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18012   *) ac_try_echo=$ac_try;;
18013 esac
18014 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18015   (eval "$ac_try") 2>&5
18016   ac_status=$?
18017   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18018   (exit $ac_status); }; }; then
18019   eval "$as_ac_var=yes"
18020 else
18021   echo "$as_me: failed program was:" >&5
18022 sed 's/^/| /' conftest.$ac_ext >&5
18023
18024         eval "$as_ac_var=no"
18025 fi
18026
18027 rm -f core conftest.err conftest.$ac_objext \
18028       conftest$ac_exeext conftest.$ac_ext
18029 fi
18030 ac_res=`eval echo '${'$as_ac_var'}'`
18031                { echo "$as_me:$LINENO: result: $ac_res" >&5
18032 echo "${ECHO_T}$ac_res" >&6; }
18033 if test `eval echo '${'$as_ac_var'}'` = yes; then
18034   cat >>confdefs.h <<_ACEOF
18035 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18036 _ACEOF
18037
18038 fi
18039 done
18040
18041
18042
18043
18044
18045 for ac_func in powf fmodf strtof round
18046 do
18047 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18048 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18049 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18050 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18051   echo $ECHO_N "(cached) $ECHO_C" >&6
18052 else
18053   cat >conftest.$ac_ext <<_ACEOF
18054 /* confdefs.h.  */
18055 _ACEOF
18056 cat confdefs.h >>conftest.$ac_ext
18057 cat >>conftest.$ac_ext <<_ACEOF
18058 /* end confdefs.h.  */
18059 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18060    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18061 #define $ac_func innocuous_$ac_func
18062
18063 /* System header to define __stub macros and hopefully few prototypes,
18064     which can conflict with char $ac_func (); below.
18065     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18066     <limits.h> exists even on freestanding compilers.  */
18067
18068 #ifdef __STDC__
18069 # include <limits.h>
18070 #else
18071 # include <assert.h>
18072 #endif
18073
18074 #undef $ac_func
18075
18076 /* Override any GCC internal prototype to avoid an error.
18077    Use char because int might match the return type of a GCC
18078    builtin and then its argument prototype would still apply.  */
18079 #ifdef __cplusplus
18080 extern "C"
18081 #endif
18082 char $ac_func ();
18083 /* The GNU C library defines this for functions which it implements
18084     to always fail with ENOSYS.  Some functions are actually named
18085     something starting with __ and the normal name is an alias.  */
18086 #if defined __stub_$ac_func || defined __stub___$ac_func
18087 choke me
18088 #endif
18089
18090 int
18091 main ()
18092 {
18093 return $ac_func ();
18094   ;
18095   return 0;
18096 }
18097 _ACEOF
18098 rm -f conftest.$ac_objext conftest$ac_exeext
18099 if { (ac_try="$ac_link"
18100 case "(($ac_try" in
18101   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18102   *) ac_try_echo=$ac_try;;
18103 esac
18104 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18105   (eval "$ac_link") 2>conftest.er1
18106   ac_status=$?
18107   grep -v '^ *+' conftest.er1 >conftest.err
18108   rm -f conftest.er1
18109   cat conftest.err >&5
18110   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18111   (exit $ac_status); } &&
18112          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18113   { (case "(($ac_try" in
18114   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18115   *) ac_try_echo=$ac_try;;
18116 esac
18117 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18118   (eval "$ac_try") 2>&5
18119   ac_status=$?
18120   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18121   (exit $ac_status); }; } &&
18122          { ac_try='test -s conftest$ac_exeext'
18123   { (case "(($ac_try" in
18124   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18125   *) ac_try_echo=$ac_try;;
18126 esac
18127 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18128   (eval "$ac_try") 2>&5
18129   ac_status=$?
18130   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18131   (exit $ac_status); }; }; then
18132   eval "$as_ac_var=yes"
18133 else
18134   echo "$as_me: failed program was:" >&5
18135 sed 's/^/| /' conftest.$ac_ext >&5
18136
18137         eval "$as_ac_var=no"
18138 fi
18139
18140 rm -f core conftest.err conftest.$ac_objext \
18141       conftest$ac_exeext conftest.$ac_ext
18142 fi
18143 ac_res=`eval echo '${'$as_ac_var'}'`
18144                { echo "$as_me:$LINENO: result: $ac_res" >&5
18145 echo "${ECHO_T}$ac_res" >&6; }
18146 if test `eval echo '${'$as_ac_var'}'` = yes; then
18147   cat >>confdefs.h <<_ACEOF
18148 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18149 _ACEOF
18150
18151 fi
18152 done
18153
18154
18155
18156
18157
18158
18159 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18160 do
18161 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18162 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18163 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18164 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18165   echo $ECHO_N "(cached) $ECHO_C" >&6
18166 else
18167   cat >conftest.$ac_ext <<_ACEOF
18168 /* confdefs.h.  */
18169 _ACEOF
18170 cat confdefs.h >>conftest.$ac_ext
18171 cat >>conftest.$ac_ext <<_ACEOF
18172 /* end confdefs.h.  */
18173 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18174    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18175 #define $ac_func innocuous_$ac_func
18176
18177 /* System header to define __stub macros and hopefully few prototypes,
18178     which can conflict with char $ac_func (); below.
18179     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18180     <limits.h> exists even on freestanding compilers.  */
18181
18182 #ifdef __STDC__
18183 # include <limits.h>
18184 #else
18185 # include <assert.h>
18186 #endif
18187
18188 #undef $ac_func
18189
18190 /* Override any GCC internal prototype to avoid an error.
18191    Use char because int might match the return type of a GCC
18192    builtin and then its argument prototype would still apply.  */
18193 #ifdef __cplusplus
18194 extern "C"
18195 #endif
18196 char $ac_func ();
18197 /* The GNU C library defines this for functions which it implements
18198     to always fail with ENOSYS.  Some functions are actually named
18199     something starting with __ and the normal name is an alias.  */
18200 #if defined __stub_$ac_func || defined __stub___$ac_func
18201 choke me
18202 #endif
18203
18204 int
18205 main ()
18206 {
18207 return $ac_func ();
18208   ;
18209   return 0;
18210 }
18211 _ACEOF
18212 rm -f conftest.$ac_objext conftest$ac_exeext
18213 if { (ac_try="$ac_link"
18214 case "(($ac_try" in
18215   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18216   *) ac_try_echo=$ac_try;;
18217 esac
18218 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18219   (eval "$ac_link") 2>conftest.er1
18220   ac_status=$?
18221   grep -v '^ *+' conftest.er1 >conftest.err
18222   rm -f conftest.er1
18223   cat conftest.err >&5
18224   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18225   (exit $ac_status); } &&
18226          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18227   { (case "(($ac_try" in
18228   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18229   *) ac_try_echo=$ac_try;;
18230 esac
18231 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18232   (eval "$ac_try") 2>&5
18233   ac_status=$?
18234   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18235   (exit $ac_status); }; } &&
18236          { ac_try='test -s conftest$ac_exeext'
18237   { (case "(($ac_try" in
18238   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18239   *) ac_try_echo=$ac_try;;
18240 esac
18241 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18242   (eval "$ac_try") 2>&5
18243   ac_status=$?
18244   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18245   (exit $ac_status); }; }; then
18246   eval "$as_ac_var=yes"
18247 else
18248   echo "$as_me: failed program was:" >&5
18249 sed 's/^/| /' conftest.$ac_ext >&5
18250
18251         eval "$as_ac_var=no"
18252 fi
18253
18254 rm -f core conftest.err conftest.$ac_objext \
18255       conftest$ac_exeext conftest.$ac_ext
18256 fi
18257 ac_res=`eval echo '${'$as_ac_var'}'`
18258                { echo "$as_me:$LINENO: result: $ac_res" >&5
18259 echo "${ECHO_T}$ac_res" >&6; }
18260 if test `eval echo '${'$as_ac_var'}'` = yes; then
18261   cat >>confdefs.h <<_ACEOF
18262 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18263 _ACEOF
18264
18265 fi
18266 done
18267
18268
18269
18270
18271 for ac_func in isatty mkdtemp mkstemp
18272 do
18273 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18274 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18275 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18276 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18277   echo $ECHO_N "(cached) $ECHO_C" >&6
18278 else
18279   cat >conftest.$ac_ext <<_ACEOF
18280 /* confdefs.h.  */
18281 _ACEOF
18282 cat confdefs.h >>conftest.$ac_ext
18283 cat >>conftest.$ac_ext <<_ACEOF
18284 /* end confdefs.h.  */
18285 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18286    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18287 #define $ac_func innocuous_$ac_func
18288
18289 /* System header to define __stub macros and hopefully few prototypes,
18290     which can conflict with char $ac_func (); below.
18291     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18292     <limits.h> exists even on freestanding compilers.  */
18293
18294 #ifdef __STDC__
18295 # include <limits.h>
18296 #else
18297 # include <assert.h>
18298 #endif
18299
18300 #undef $ac_func
18301
18302 /* Override any GCC internal prototype to avoid an error.
18303    Use char because int might match the return type of a GCC
18304    builtin and then its argument prototype would still apply.  */
18305 #ifdef __cplusplus
18306 extern "C"
18307 #endif
18308 char $ac_func ();
18309 /* The GNU C library defines this for functions which it implements
18310     to always fail with ENOSYS.  Some functions are actually named
18311     something starting with __ and the normal name is an alias.  */
18312 #if defined __stub_$ac_func || defined __stub___$ac_func
18313 choke me
18314 #endif
18315
18316 int
18317 main ()
18318 {
18319 return $ac_func ();
18320   ;
18321   return 0;
18322 }
18323 _ACEOF
18324 rm -f conftest.$ac_objext conftest$ac_exeext
18325 if { (ac_try="$ac_link"
18326 case "(($ac_try" in
18327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18328   *) ac_try_echo=$ac_try;;
18329 esac
18330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18331   (eval "$ac_link") 2>conftest.er1
18332   ac_status=$?
18333   grep -v '^ *+' conftest.er1 >conftest.err
18334   rm -f conftest.er1
18335   cat conftest.err >&5
18336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18337   (exit $ac_status); } &&
18338          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18339   { (case "(($ac_try" in
18340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18341   *) ac_try_echo=$ac_try;;
18342 esac
18343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18344   (eval "$ac_try") 2>&5
18345   ac_status=$?
18346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18347   (exit $ac_status); }; } &&
18348          { ac_try='test -s conftest$ac_exeext'
18349   { (case "(($ac_try" in
18350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18351   *) ac_try_echo=$ac_try;;
18352 esac
18353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18354   (eval "$ac_try") 2>&5
18355   ac_status=$?
18356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18357   (exit $ac_status); }; }; then
18358   eval "$as_ac_var=yes"
18359 else
18360   echo "$as_me: failed program was:" >&5
18361 sed 's/^/| /' conftest.$ac_ext >&5
18362
18363         eval "$as_ac_var=no"
18364 fi
18365
18366 rm -f core conftest.err conftest.$ac_objext \
18367       conftest$ac_exeext conftest.$ac_ext
18368 fi
18369 ac_res=`eval echo '${'$as_ac_var'}'`
18370                { echo "$as_me:$LINENO: result: $ac_res" >&5
18371 echo "${ECHO_T}$ac_res" >&6; }
18372 if test `eval echo '${'$as_ac_var'}'` = yes; then
18373   cat >>confdefs.h <<_ACEOF
18374 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18375 _ACEOF
18376
18377 fi
18378 done
18379
18380
18381
18382
18383
18384
18385
18386 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
18387 do
18388 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18389 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18390 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18391 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18392   echo $ECHO_N "(cached) $ECHO_C" >&6
18393 else
18394   cat >conftest.$ac_ext <<_ACEOF
18395 /* confdefs.h.  */
18396 _ACEOF
18397 cat confdefs.h >>conftest.$ac_ext
18398 cat >>conftest.$ac_ext <<_ACEOF
18399 /* end confdefs.h.  */
18400 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18401    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18402 #define $ac_func innocuous_$ac_func
18403
18404 /* System header to define __stub macros and hopefully few prototypes,
18405     which can conflict with char $ac_func (); below.
18406     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18407     <limits.h> exists even on freestanding compilers.  */
18408
18409 #ifdef __STDC__
18410 # include <limits.h>
18411 #else
18412 # include <assert.h>
18413 #endif
18414
18415 #undef $ac_func
18416
18417 /* Override any GCC internal prototype to avoid an error.
18418    Use char because int might match the return type of a GCC
18419    builtin and then its argument prototype would still apply.  */
18420 #ifdef __cplusplus
18421 extern "C"
18422 #endif
18423 char $ac_func ();
18424 /* The GNU C library defines this for functions which it implements
18425     to always fail with ENOSYS.  Some functions are actually named
18426     something starting with __ and the normal name is an alias.  */
18427 #if defined __stub_$ac_func || defined __stub___$ac_func
18428 choke me
18429 #endif
18430
18431 int
18432 main ()
18433 {
18434 return $ac_func ();
18435   ;
18436   return 0;
18437 }
18438 _ACEOF
18439 rm -f conftest.$ac_objext conftest$ac_exeext
18440 if { (ac_try="$ac_link"
18441 case "(($ac_try" in
18442   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18443   *) ac_try_echo=$ac_try;;
18444 esac
18445 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18446   (eval "$ac_link") 2>conftest.er1
18447   ac_status=$?
18448   grep -v '^ *+' conftest.er1 >conftest.err
18449   rm -f conftest.er1
18450   cat conftest.err >&5
18451   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18452   (exit $ac_status); } &&
18453          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18454   { (case "(($ac_try" in
18455   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18456   *) ac_try_echo=$ac_try;;
18457 esac
18458 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18459   (eval "$ac_try") 2>&5
18460   ac_status=$?
18461   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18462   (exit $ac_status); }; } &&
18463          { ac_try='test -s conftest$ac_exeext'
18464   { (case "(($ac_try" in
18465   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18466   *) ac_try_echo=$ac_try;;
18467 esac
18468 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18469   (eval "$ac_try") 2>&5
18470   ac_status=$?
18471   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18472   (exit $ac_status); }; }; then
18473   eval "$as_ac_var=yes"
18474 else
18475   echo "$as_me: failed program was:" >&5
18476 sed 's/^/| /' conftest.$ac_ext >&5
18477
18478         eval "$as_ac_var=no"
18479 fi
18480
18481 rm -f core conftest.err conftest.$ac_objext \
18482       conftest$ac_exeext conftest.$ac_ext
18483 fi
18484 ac_res=`eval echo '${'$as_ac_var'}'`
18485                { echo "$as_me:$LINENO: result: $ac_res" >&5
18486 echo "${ECHO_T}$ac_res" >&6; }
18487 if test `eval echo '${'$as_ac_var'}'` = yes; then
18488   cat >>confdefs.h <<_ACEOF
18489 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18490 _ACEOF
18491
18492 fi
18493 done
18494
18495
18496
18497
18498
18499 for ac_func in strerror strerror_r strerror_s setenv
18500 do
18501 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18502 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18503 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18504 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18505   echo $ECHO_N "(cached) $ECHO_C" >&6
18506 else
18507   cat >conftest.$ac_ext <<_ACEOF
18508 /* confdefs.h.  */
18509 _ACEOF
18510 cat confdefs.h >>conftest.$ac_ext
18511 cat >>conftest.$ac_ext <<_ACEOF
18512 /* end confdefs.h.  */
18513 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18514    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18515 #define $ac_func innocuous_$ac_func
18516
18517 /* System header to define __stub macros and hopefully few prototypes,
18518     which can conflict with char $ac_func (); below.
18519     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18520     <limits.h> exists even on freestanding compilers.  */
18521
18522 #ifdef __STDC__
18523 # include <limits.h>
18524 #else
18525 # include <assert.h>
18526 #endif
18527
18528 #undef $ac_func
18529
18530 /* Override any GCC internal prototype to avoid an error.
18531    Use char because int might match the return type of a GCC
18532    builtin and then its argument prototype would still apply.  */
18533 #ifdef __cplusplus
18534 extern "C"
18535 #endif
18536 char $ac_func ();
18537 /* The GNU C library defines this for functions which it implements
18538     to always fail with ENOSYS.  Some functions are actually named
18539     something starting with __ and the normal name is an alias.  */
18540 #if defined __stub_$ac_func || defined __stub___$ac_func
18541 choke me
18542 #endif
18543
18544 int
18545 main ()
18546 {
18547 return $ac_func ();
18548   ;
18549   return 0;
18550 }
18551 _ACEOF
18552 rm -f conftest.$ac_objext conftest$ac_exeext
18553 if { (ac_try="$ac_link"
18554 case "(($ac_try" in
18555   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18556   *) ac_try_echo=$ac_try;;
18557 esac
18558 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18559   (eval "$ac_link") 2>conftest.er1
18560   ac_status=$?
18561   grep -v '^ *+' conftest.er1 >conftest.err
18562   rm -f conftest.er1
18563   cat conftest.err >&5
18564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18565   (exit $ac_status); } &&
18566          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18567   { (case "(($ac_try" in
18568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18569   *) ac_try_echo=$ac_try;;
18570 esac
18571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18572   (eval "$ac_try") 2>&5
18573   ac_status=$?
18574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18575   (exit $ac_status); }; } &&
18576          { ac_try='test -s conftest$ac_exeext'
18577   { (case "(($ac_try" in
18578   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18579   *) ac_try_echo=$ac_try;;
18580 esac
18581 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18582   (eval "$ac_try") 2>&5
18583   ac_status=$?
18584   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18585   (exit $ac_status); }; }; then
18586   eval "$as_ac_var=yes"
18587 else
18588   echo "$as_me: failed program was:" >&5
18589 sed 's/^/| /' conftest.$ac_ext >&5
18590
18591         eval "$as_ac_var=no"
18592 fi
18593
18594 rm -f core conftest.err conftest.$ac_objext \
18595       conftest$ac_exeext conftest.$ac_ext
18596 fi
18597 ac_res=`eval echo '${'$as_ac_var'}'`
18598                { echo "$as_me:$LINENO: result: $ac_res" >&5
18599 echo "${ECHO_T}$ac_res" >&6; }
18600 if test `eval echo '${'$as_ac_var'}'` = yes; then
18601   cat >>confdefs.h <<_ACEOF
18602 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18603 _ACEOF
18604
18605 fi
18606 done
18607
18608
18609
18610
18611
18612 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18613 do
18614 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18615 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18616 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18617 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18618   echo $ECHO_N "(cached) $ECHO_C" >&6
18619 else
18620   cat >conftest.$ac_ext <<_ACEOF
18621 /* confdefs.h.  */
18622 _ACEOF
18623 cat confdefs.h >>conftest.$ac_ext
18624 cat >>conftest.$ac_ext <<_ACEOF
18625 /* end confdefs.h.  */
18626 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18627    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18628 #define $ac_func innocuous_$ac_func
18629
18630 /* System header to define __stub macros and hopefully few prototypes,
18631     which can conflict with char $ac_func (); below.
18632     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18633     <limits.h> exists even on freestanding compilers.  */
18634
18635 #ifdef __STDC__
18636 # include <limits.h>
18637 #else
18638 # include <assert.h>
18639 #endif
18640
18641 #undef $ac_func
18642
18643 /* Override any GCC internal prototype to avoid an error.
18644    Use char because int might match the return type of a GCC
18645    builtin and then its argument prototype would still apply.  */
18646 #ifdef __cplusplus
18647 extern "C"
18648 #endif
18649 char $ac_func ();
18650 /* The GNU C library defines this for functions which it implements
18651     to always fail with ENOSYS.  Some functions are actually named
18652     something starting with __ and the normal name is an alias.  */
18653 #if defined __stub_$ac_func || defined __stub___$ac_func
18654 choke me
18655 #endif
18656
18657 int
18658 main ()
18659 {
18660 return $ac_func ();
18661   ;
18662   return 0;
18663 }
18664 _ACEOF
18665 rm -f conftest.$ac_objext conftest$ac_exeext
18666 if { (ac_try="$ac_link"
18667 case "(($ac_try" in
18668   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18669   *) ac_try_echo=$ac_try;;
18670 esac
18671 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18672   (eval "$ac_link") 2>conftest.er1
18673   ac_status=$?
18674   grep -v '^ *+' conftest.er1 >conftest.err
18675   rm -f conftest.er1
18676   cat conftest.err >&5
18677   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18678   (exit $ac_status); } &&
18679          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18680   { (case "(($ac_try" in
18681   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18682   *) ac_try_echo=$ac_try;;
18683 esac
18684 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18685   (eval "$ac_try") 2>&5
18686   ac_status=$?
18687   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18688   (exit $ac_status); }; } &&
18689          { ac_try='test -s conftest$ac_exeext'
18690   { (case "(($ac_try" in
18691   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18692   *) ac_try_echo=$ac_try;;
18693 esac
18694 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18695   (eval "$ac_try") 2>&5
18696   ac_status=$?
18697   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18698   (exit $ac_status); }; }; then
18699   eval "$as_ac_var=yes"
18700 else
18701   echo "$as_me: failed program was:" >&5
18702 sed 's/^/| /' conftest.$ac_ext >&5
18703
18704         eval "$as_ac_var=no"
18705 fi
18706
18707 rm -f core conftest.err conftest.$ac_objext \
18708       conftest$ac_exeext conftest.$ac_ext
18709 fi
18710 ac_res=`eval echo '${'$as_ac_var'}'`
18711                { echo "$as_me:$LINENO: result: $ac_res" >&5
18712 echo "${ECHO_T}$ac_res" >&6; }
18713 if test `eval echo '${'$as_ac_var'}'` = yes; then
18714   cat >>confdefs.h <<_ACEOF
18715 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18716 _ACEOF
18717
18718 fi
18719 done
18720
18721
18722
18723
18724
18725 for ac_func in setjmp longjmp sigsetjmp siglongjmp
18726 do
18727 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18728 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18729 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18730 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18731   echo $ECHO_N "(cached) $ECHO_C" >&6
18732 else
18733   cat >conftest.$ac_ext <<_ACEOF
18734 /* confdefs.h.  */
18735 _ACEOF
18736 cat confdefs.h >>conftest.$ac_ext
18737 cat >>conftest.$ac_ext <<_ACEOF
18738 /* end confdefs.h.  */
18739 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18740    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18741 #define $ac_func innocuous_$ac_func
18742
18743 /* System header to define __stub macros and hopefully few prototypes,
18744     which can conflict with char $ac_func (); below.
18745     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18746     <limits.h> exists even on freestanding compilers.  */
18747
18748 #ifdef __STDC__
18749 # include <limits.h>
18750 #else
18751 # include <assert.h>
18752 #endif
18753
18754 #undef $ac_func
18755
18756 /* Override any GCC internal prototype to avoid an error.
18757    Use char because int might match the return type of a GCC
18758    builtin and then its argument prototype would still apply.  */
18759 #ifdef __cplusplus
18760 extern "C"
18761 #endif
18762 char $ac_func ();
18763 /* The GNU C library defines this for functions which it implements
18764     to always fail with ENOSYS.  Some functions are actually named
18765     something starting with __ and the normal name is an alias.  */
18766 #if defined __stub_$ac_func || defined __stub___$ac_func
18767 choke me
18768 #endif
18769
18770 int
18771 main ()
18772 {
18773 return $ac_func ();
18774   ;
18775   return 0;
18776 }
18777 _ACEOF
18778 rm -f conftest.$ac_objext conftest$ac_exeext
18779 if { (ac_try="$ac_link"
18780 case "(($ac_try" in
18781   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18782   *) ac_try_echo=$ac_try;;
18783 esac
18784 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18785   (eval "$ac_link") 2>conftest.er1
18786   ac_status=$?
18787   grep -v '^ *+' conftest.er1 >conftest.err
18788   rm -f conftest.er1
18789   cat conftest.err >&5
18790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18791   (exit $ac_status); } &&
18792          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18793   { (case "(($ac_try" in
18794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18795   *) ac_try_echo=$ac_try;;
18796 esac
18797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18798   (eval "$ac_try") 2>&5
18799   ac_status=$?
18800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18801   (exit $ac_status); }; } &&
18802          { ac_try='test -s conftest$ac_exeext'
18803   { (case "(($ac_try" in
18804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18805   *) ac_try_echo=$ac_try;;
18806 esac
18807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18808   (eval "$ac_try") 2>&5
18809   ac_status=$?
18810   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18811   (exit $ac_status); }; }; then
18812   eval "$as_ac_var=yes"
18813 else
18814   echo "$as_me: failed program was:" >&5
18815 sed 's/^/| /' conftest.$ac_ext >&5
18816
18817         eval "$as_ac_var=no"
18818 fi
18819
18820 rm -f core conftest.err conftest.$ac_objext \
18821       conftest$ac_exeext conftest.$ac_ext
18822 fi
18823 ac_res=`eval echo '${'$as_ac_var'}'`
18824                { echo "$as_me:$LINENO: result: $ac_res" >&5
18825 echo "${ECHO_T}$ac_res" >&6; }
18826 if test `eval echo '${'$as_ac_var'}'` = yes; then
18827   cat >>confdefs.h <<_ACEOF
18828 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18829 _ACEOF
18830
18831 fi
18832 done
18833
18834 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18835 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18836 if test "${llvm_cv_c_printf_a+set}" = set; then
18837   echo $ECHO_N "(cached) $ECHO_C" >&6
18838 else
18839   ac_ext=c
18840 ac_cpp='$CPP $CPPFLAGS'
18841 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18842 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18843 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18844
18845  if test "$cross_compiling" = yes; then
18846   llvmac_cv_c_printf_a=no
18847 else
18848   cat >conftest.$ac_ext <<_ACEOF
18849
18850   /* confdefs.h.  */
18851 _ACEOF
18852 cat confdefs.h >>conftest.$ac_ext
18853 cat >>conftest.$ac_ext <<_ACEOF
18854 /* end confdefs.h.  */
18855
18856 #include <stdio.h>
18857 #include <stdlib.h>
18858
18859 int
18860 main ()
18861 {
18862
18863 volatile double A, B;
18864 char Buffer[100];
18865 A = 1;
18866 A /= 10.0;
18867 sprintf(Buffer, "%a", A);
18868 B = atof(Buffer);
18869 if (A != B)
18870   return (1);
18871 if (A != 0x1.999999999999ap-4)
18872   return (1);
18873 return (0);
18874   ;
18875   return 0;
18876 }
18877 _ACEOF
18878 rm -f conftest$ac_exeext
18879 if { (ac_try="$ac_link"
18880 case "(($ac_try" in
18881   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18882   *) ac_try_echo=$ac_try;;
18883 esac
18884 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18885   (eval "$ac_link") 2>&5
18886   ac_status=$?
18887   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18888   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18889   { (case "(($ac_try" in
18890   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18891   *) ac_try_echo=$ac_try;;
18892 esac
18893 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18894   (eval "$ac_try") 2>&5
18895   ac_status=$?
18896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18897   (exit $ac_status); }; }; then
18898   llvm_cv_c_printf_a=yes
18899 else
18900   echo "$as_me: program exited with status $ac_status" >&5
18901 echo "$as_me: failed program was:" >&5
18902 sed 's/^/| /' conftest.$ac_ext >&5
18903
18904 ( exit $ac_status )
18905 llvmac_cv_c_printf_a=no
18906 fi
18907 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18908 fi
18909
18910
18911  ac_ext=c
18912 ac_cpp='$CPP $CPPFLAGS'
18913 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18914 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18915 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18916
18917 fi
18918 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18919 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18920  if test "$llvm_cv_c_printf_a" = "yes"; then
18921
18922 cat >>confdefs.h <<\_ACEOF
18923 #define HAVE_PRINTF_A 1
18924 _ACEOF
18925
18926  fi
18927
18928
18929 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18930 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18931 if test "${ac_cv_func_rand48+set}" = set; then
18932   echo $ECHO_N "(cached) $ECHO_C" >&6
18933 else
18934   ac_ext=cpp
18935 ac_cpp='$CXXCPP $CPPFLAGS'
18936 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18937 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18938 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18939
18940    cat >conftest.$ac_ext <<_ACEOF
18941 /* confdefs.h.  */
18942 _ACEOF
18943 cat confdefs.h >>conftest.$ac_ext
18944 cat >>conftest.$ac_ext <<_ACEOF
18945 /* end confdefs.h.  */
18946 #include <stdlib.h>
18947 int
18948 main ()
18949 {
18950 srand48(0);lrand48();drand48();
18951   ;
18952   return 0;
18953 }
18954 _ACEOF
18955 rm -f conftest.$ac_objext
18956 if { (ac_try="$ac_compile"
18957 case "(($ac_try" in
18958   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18959   *) ac_try_echo=$ac_try;;
18960 esac
18961 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18962   (eval "$ac_compile") 2>conftest.er1
18963   ac_status=$?
18964   grep -v '^ *+' conftest.er1 >conftest.err
18965   rm -f conftest.er1
18966   cat conftest.err >&5
18967   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18968   (exit $ac_status); } &&
18969          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18970   { (case "(($ac_try" in
18971   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18972   *) ac_try_echo=$ac_try;;
18973 esac
18974 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18975   (eval "$ac_try") 2>&5
18976   ac_status=$?
18977   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18978   (exit $ac_status); }; } &&
18979          { ac_try='test -s conftest.$ac_objext'
18980   { (case "(($ac_try" in
18981   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18982   *) ac_try_echo=$ac_try;;
18983 esac
18984 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18985   (eval "$ac_try") 2>&5
18986   ac_status=$?
18987   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18988   (exit $ac_status); }; }; then
18989   ac_cv_func_rand48=yes
18990 else
18991   echo "$as_me: failed program was:" >&5
18992 sed 's/^/| /' conftest.$ac_ext >&5
18993
18994         ac_cv_func_rand48=no
18995 fi
18996
18997 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18998   ac_ext=c
18999 ac_cpp='$CPP $CPPFLAGS'
19000 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19001 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19002 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19003
19004 fi
19005 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19006 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19007
19008 if test "$ac_cv_func_rand48" = "yes" ; then
19009
19010 cat >>confdefs.h <<\_ACEOF
19011 #define HAVE_RAND48 1
19012 _ACEOF
19013
19014 fi
19015
19016
19017
19018 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19019 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19020 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19021   echo $ECHO_N "(cached) $ECHO_C" >&6
19022 else
19023   ac_ext=cpp
19024 ac_cpp='$CXXCPP $CPPFLAGS'
19025 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19026 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19027 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19028
19029    cat >conftest.$ac_ext <<_ACEOF
19030 /* confdefs.h.  */
19031 _ACEOF
19032 cat confdefs.h >>conftest.$ac_ext
19033 cat >>conftest.$ac_ext <<_ACEOF
19034 /* end confdefs.h.  */
19035 #include <math.h>
19036 int
19037 main ()
19038 {
19039 float f; isnan(f);
19040   ;
19041   return 0;
19042 }
19043 _ACEOF
19044 rm -f conftest.$ac_objext
19045 if { (ac_try="$ac_compile"
19046 case "(($ac_try" in
19047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19048   *) ac_try_echo=$ac_try;;
19049 esac
19050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19051   (eval "$ac_compile") 2>conftest.er1
19052   ac_status=$?
19053   grep -v '^ *+' conftest.er1 >conftest.err
19054   rm -f conftest.er1
19055   cat conftest.err >&5
19056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19057   (exit $ac_status); } &&
19058          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19059   { (case "(($ac_try" in
19060   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19061   *) ac_try_echo=$ac_try;;
19062 esac
19063 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19064   (eval "$ac_try") 2>&5
19065   ac_status=$?
19066   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19067   (exit $ac_status); }; } &&
19068          { ac_try='test -s conftest.$ac_objext'
19069   { (case "(($ac_try" in
19070   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19071   *) ac_try_echo=$ac_try;;
19072 esac
19073 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19074   (eval "$ac_try") 2>&5
19075   ac_status=$?
19076   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19077   (exit $ac_status); }; }; then
19078   ac_cv_func_isnan_in_math_h=yes
19079 else
19080   echo "$as_me: failed program was:" >&5
19081 sed 's/^/| /' conftest.$ac_ext >&5
19082
19083         ac_cv_func_isnan_in_math_h=no
19084 fi
19085
19086 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19087   ac_ext=c
19088 ac_cpp='$CPP $CPPFLAGS'
19089 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19090 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19091 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19092
19093 fi
19094 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19095 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19096
19097
19098 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19099
19100 cat >>confdefs.h <<\_ACEOF
19101 #define HAVE_ISNAN_IN_MATH_H 1
19102 _ACEOF
19103
19104 fi
19105
19106 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19107 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19108 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19109   echo $ECHO_N "(cached) $ECHO_C" >&6
19110 else
19111   ac_ext=cpp
19112 ac_cpp='$CXXCPP $CPPFLAGS'
19113 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19114 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19115 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19116
19117    cat >conftest.$ac_ext <<_ACEOF
19118 /* confdefs.h.  */
19119 _ACEOF
19120 cat confdefs.h >>conftest.$ac_ext
19121 cat >>conftest.$ac_ext <<_ACEOF
19122 /* end confdefs.h.  */
19123 #include <cmath>
19124 int
19125 main ()
19126 {
19127 float f; isnan(f);
19128   ;
19129   return 0;
19130 }
19131 _ACEOF
19132 rm -f conftest.$ac_objext
19133 if { (ac_try="$ac_compile"
19134 case "(($ac_try" in
19135   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19136   *) ac_try_echo=$ac_try;;
19137 esac
19138 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19139   (eval "$ac_compile") 2>conftest.er1
19140   ac_status=$?
19141   grep -v '^ *+' conftest.er1 >conftest.err
19142   rm -f conftest.er1
19143   cat conftest.err >&5
19144   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19145   (exit $ac_status); } &&
19146          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19147   { (case "(($ac_try" in
19148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19149   *) ac_try_echo=$ac_try;;
19150 esac
19151 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19152   (eval "$ac_try") 2>&5
19153   ac_status=$?
19154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19155   (exit $ac_status); }; } &&
19156          { ac_try='test -s conftest.$ac_objext'
19157   { (case "(($ac_try" in
19158   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19159   *) ac_try_echo=$ac_try;;
19160 esac
19161 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19162   (eval "$ac_try") 2>&5
19163   ac_status=$?
19164   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19165   (exit $ac_status); }; }; then
19166   ac_cv_func_isnan_in_cmath=yes
19167 else
19168   echo "$as_me: failed program was:" >&5
19169 sed 's/^/| /' conftest.$ac_ext >&5
19170
19171         ac_cv_func_isnan_in_cmath=no
19172 fi
19173
19174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19175   ac_ext=c
19176 ac_cpp='$CPP $CPPFLAGS'
19177 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19178 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19179 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19180
19181 fi
19182 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19183 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19184
19185 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19186
19187 cat >>confdefs.h <<\_ACEOF
19188 #define HAVE_ISNAN_IN_CMATH 1
19189 _ACEOF
19190
19191 fi
19192
19193 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19194 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19195 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19196   echo $ECHO_N "(cached) $ECHO_C" >&6
19197 else
19198   ac_ext=cpp
19199 ac_cpp='$CXXCPP $CPPFLAGS'
19200 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19201 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19202 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19203
19204    cat >conftest.$ac_ext <<_ACEOF
19205 /* confdefs.h.  */
19206 _ACEOF
19207 cat confdefs.h >>conftest.$ac_ext
19208 cat >>conftest.$ac_ext <<_ACEOF
19209 /* end confdefs.h.  */
19210 #include <cmath>
19211 int
19212 main ()
19213 {
19214 float f; std::isnan(f);
19215   ;
19216   return 0;
19217 }
19218 _ACEOF
19219 rm -f conftest.$ac_objext
19220 if { (ac_try="$ac_compile"
19221 case "(($ac_try" in
19222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19223   *) ac_try_echo=$ac_try;;
19224 esac
19225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19226   (eval "$ac_compile") 2>conftest.er1
19227   ac_status=$?
19228   grep -v '^ *+' conftest.er1 >conftest.err
19229   rm -f conftest.er1
19230   cat conftest.err >&5
19231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19232   (exit $ac_status); } &&
19233          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19234   { (case "(($ac_try" in
19235   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19236   *) ac_try_echo=$ac_try;;
19237 esac
19238 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19239   (eval "$ac_try") 2>&5
19240   ac_status=$?
19241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19242   (exit $ac_status); }; } &&
19243          { ac_try='test -s conftest.$ac_objext'
19244   { (case "(($ac_try" in
19245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19246   *) ac_try_echo=$ac_try;;
19247 esac
19248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19249   (eval "$ac_try") 2>&5
19250   ac_status=$?
19251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19252   (exit $ac_status); }; }; then
19253   ac_cv_func_std_isnan_in_cmath=yes
19254 else
19255   echo "$as_me: failed program was:" >&5
19256 sed 's/^/| /' conftest.$ac_ext >&5
19257
19258         ac_cv_func_std_isnan_in_cmath=no
19259 fi
19260
19261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19262   ac_ext=c
19263 ac_cpp='$CPP $CPPFLAGS'
19264 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19265 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19266 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19267
19268 fi
19269 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19270 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19271
19272 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19273
19274 cat >>confdefs.h <<\_ACEOF
19275 #define HAVE_STD_ISNAN_IN_CMATH 1
19276 _ACEOF
19277
19278 fi
19279
19280
19281 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19282 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19283 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19284   echo $ECHO_N "(cached) $ECHO_C" >&6
19285 else
19286   ac_ext=cpp
19287 ac_cpp='$CXXCPP $CPPFLAGS'
19288 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19289 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19290 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19291
19292    cat >conftest.$ac_ext <<_ACEOF
19293 /* confdefs.h.  */
19294 _ACEOF
19295 cat confdefs.h >>conftest.$ac_ext
19296 cat >>conftest.$ac_ext <<_ACEOF
19297 /* end confdefs.h.  */
19298 #include <math.h>
19299 int
19300 main ()
19301 {
19302 float f; isinf(f);
19303   ;
19304   return 0;
19305 }
19306 _ACEOF
19307 rm -f conftest.$ac_objext
19308 if { (ac_try="$ac_compile"
19309 case "(($ac_try" in
19310   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19311   *) ac_try_echo=$ac_try;;
19312 esac
19313 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19314   (eval "$ac_compile") 2>conftest.er1
19315   ac_status=$?
19316   grep -v '^ *+' conftest.er1 >conftest.err
19317   rm -f conftest.er1
19318   cat conftest.err >&5
19319   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19320   (exit $ac_status); } &&
19321          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19322   { (case "(($ac_try" in
19323   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19324   *) ac_try_echo=$ac_try;;
19325 esac
19326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19327   (eval "$ac_try") 2>&5
19328   ac_status=$?
19329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19330   (exit $ac_status); }; } &&
19331          { ac_try='test -s conftest.$ac_objext'
19332   { (case "(($ac_try" in
19333   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19334   *) ac_try_echo=$ac_try;;
19335 esac
19336 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19337   (eval "$ac_try") 2>&5
19338   ac_status=$?
19339   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19340   (exit $ac_status); }; }; then
19341   ac_cv_func_isinf_in_math_h=yes
19342 else
19343   echo "$as_me: failed program was:" >&5
19344 sed 's/^/| /' conftest.$ac_ext >&5
19345
19346         ac_cv_func_isinf_in_math_h=no
19347 fi
19348
19349 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19350   ac_ext=c
19351 ac_cpp='$CPP $CPPFLAGS'
19352 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19353 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19354 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19355
19356 fi
19357 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19358 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19359
19360 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19361
19362 cat >>confdefs.h <<\_ACEOF
19363 #define HAVE_ISINF_IN_MATH_H 1
19364 _ACEOF
19365
19366 fi
19367
19368 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19369 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19370 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19371   echo $ECHO_N "(cached) $ECHO_C" >&6
19372 else
19373   ac_ext=cpp
19374 ac_cpp='$CXXCPP $CPPFLAGS'
19375 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19376 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19377 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19378
19379    cat >conftest.$ac_ext <<_ACEOF
19380 /* confdefs.h.  */
19381 _ACEOF
19382 cat confdefs.h >>conftest.$ac_ext
19383 cat >>conftest.$ac_ext <<_ACEOF
19384 /* end confdefs.h.  */
19385 #include <cmath>
19386 int
19387 main ()
19388 {
19389 float f; isinf(f);
19390   ;
19391   return 0;
19392 }
19393 _ACEOF
19394 rm -f conftest.$ac_objext
19395 if { (ac_try="$ac_compile"
19396 case "(($ac_try" in
19397   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19398   *) ac_try_echo=$ac_try;;
19399 esac
19400 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19401   (eval "$ac_compile") 2>conftest.er1
19402   ac_status=$?
19403   grep -v '^ *+' conftest.er1 >conftest.err
19404   rm -f conftest.er1
19405   cat conftest.err >&5
19406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19407   (exit $ac_status); } &&
19408          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19409   { (case "(($ac_try" in
19410   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19411   *) ac_try_echo=$ac_try;;
19412 esac
19413 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19414   (eval "$ac_try") 2>&5
19415   ac_status=$?
19416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19417   (exit $ac_status); }; } &&
19418          { ac_try='test -s conftest.$ac_objext'
19419   { (case "(($ac_try" in
19420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19421   *) ac_try_echo=$ac_try;;
19422 esac
19423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19424   (eval "$ac_try") 2>&5
19425   ac_status=$?
19426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19427   (exit $ac_status); }; }; then
19428   ac_cv_func_isinf_in_cmath=yes
19429 else
19430   echo "$as_me: failed program was:" >&5
19431 sed 's/^/| /' conftest.$ac_ext >&5
19432
19433         ac_cv_func_isinf_in_cmath=no
19434 fi
19435
19436 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19437   ac_ext=c
19438 ac_cpp='$CPP $CPPFLAGS'
19439 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19440 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19441 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19442
19443 fi
19444 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19445 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19446
19447 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19448
19449 cat >>confdefs.h <<\_ACEOF
19450 #define HAVE_ISINF_IN_CMATH 1
19451 _ACEOF
19452
19453 fi
19454
19455 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19456 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19457 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19458   echo $ECHO_N "(cached) $ECHO_C" >&6
19459 else
19460   ac_ext=cpp
19461 ac_cpp='$CXXCPP $CPPFLAGS'
19462 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19463 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19464 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19465
19466    cat >conftest.$ac_ext <<_ACEOF
19467 /* confdefs.h.  */
19468 _ACEOF
19469 cat confdefs.h >>conftest.$ac_ext
19470 cat >>conftest.$ac_ext <<_ACEOF
19471 /* end confdefs.h.  */
19472 #include <cmath>
19473 int
19474 main ()
19475 {
19476 float f; std::isinf(f)}
19477   ;
19478   return 0;
19479 }
19480 _ACEOF
19481 rm -f conftest.$ac_objext
19482 if { (ac_try="$ac_compile"
19483 case "(($ac_try" in
19484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19485   *) ac_try_echo=$ac_try;;
19486 esac
19487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19488   (eval "$ac_compile") 2>conftest.er1
19489   ac_status=$?
19490   grep -v '^ *+' conftest.er1 >conftest.err
19491   rm -f conftest.er1
19492   cat conftest.err >&5
19493   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19494   (exit $ac_status); } &&
19495          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19496   { (case "(($ac_try" in
19497   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19498   *) ac_try_echo=$ac_try;;
19499 esac
19500 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19501   (eval "$ac_try") 2>&5
19502   ac_status=$?
19503   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19504   (exit $ac_status); }; } &&
19505          { ac_try='test -s conftest.$ac_objext'
19506   { (case "(($ac_try" in
19507   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19508   *) ac_try_echo=$ac_try;;
19509 esac
19510 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19511   (eval "$ac_try") 2>&5
19512   ac_status=$?
19513   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19514   (exit $ac_status); }; }; then
19515   ac_cv_func_std_isinf_in_cmath=yes
19516 else
19517   echo "$as_me: failed program was:" >&5
19518 sed 's/^/| /' conftest.$ac_ext >&5
19519
19520         ac_cv_func_std_isinf_in_cmath=no
19521 fi
19522
19523 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19524   ac_ext=c
19525 ac_cpp='$CPP $CPPFLAGS'
19526 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19527 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19528 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19529
19530 fi
19531 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19532 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19533
19534 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19535
19536 cat >>confdefs.h <<\_ACEOF
19537 #define HAVE_STD_ISINF_IN_CMATH 1
19538 _ACEOF
19539
19540 fi
19541
19542 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19543 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19544 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19545   echo $ECHO_N "(cached) $ECHO_C" >&6
19546 else
19547   ac_ext=cpp
19548 ac_cpp='$CXXCPP $CPPFLAGS'
19549 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19550 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19551 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19552
19553    cat >conftest.$ac_ext <<_ACEOF
19554 /* confdefs.h.  */
19555 _ACEOF
19556 cat confdefs.h >>conftest.$ac_ext
19557 cat >>conftest.$ac_ext <<_ACEOF
19558 /* end confdefs.h.  */
19559 #include <ieeefp.h>
19560 int
19561 main ()
19562 {
19563 float f; finite(f);
19564   ;
19565   return 0;
19566 }
19567 _ACEOF
19568 rm -f conftest.$ac_objext
19569 if { (ac_try="$ac_compile"
19570 case "(($ac_try" in
19571   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19572   *) ac_try_echo=$ac_try;;
19573 esac
19574 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19575   (eval "$ac_compile") 2>conftest.er1
19576   ac_status=$?
19577   grep -v '^ *+' conftest.er1 >conftest.err
19578   rm -f conftest.er1
19579   cat conftest.err >&5
19580   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19581   (exit $ac_status); } &&
19582          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19583   { (case "(($ac_try" in
19584   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19585   *) ac_try_echo=$ac_try;;
19586 esac
19587 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19588   (eval "$ac_try") 2>&5
19589   ac_status=$?
19590   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19591   (exit $ac_status); }; } &&
19592          { ac_try='test -s conftest.$ac_objext'
19593   { (case "(($ac_try" in
19594   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19595   *) ac_try_echo=$ac_try;;
19596 esac
19597 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19598   (eval "$ac_try") 2>&5
19599   ac_status=$?
19600   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19601   (exit $ac_status); }; }; then
19602   ac_cv_func_finite_in_ieeefp_h=yes
19603 else
19604   echo "$as_me: failed program was:" >&5
19605 sed 's/^/| /' conftest.$ac_ext >&5
19606
19607         ac_cv_func_finite_in_ieeefp_h=no
19608 fi
19609
19610 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19611   ac_ext=c
19612 ac_cpp='$CPP $CPPFLAGS'
19613 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19614 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19615 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19616
19617 fi
19618 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19619 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19620
19621 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19622
19623 cat >>confdefs.h <<\_ACEOF
19624 #define HAVE_FINITE_IN_IEEEFP_H 1
19625 _ACEOF
19626
19627 fi
19628
19629
19630
19631 if test "$llvm_cv_platform_type" = "Unix" ; then
19632
19633
19634 for ac_header in stdlib.h unistd.h
19635 do
19636 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19637 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19638   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19639 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19640 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19641   echo $ECHO_N "(cached) $ECHO_C" >&6
19642 fi
19643 ac_res=`eval echo '${'$as_ac_Header'}'`
19644                { echo "$as_me:$LINENO: result: $ac_res" >&5
19645 echo "${ECHO_T}$ac_res" >&6; }
19646 else
19647   # Is the header compilable?
19648 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19649 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19650 cat >conftest.$ac_ext <<_ACEOF
19651 /* confdefs.h.  */
19652 _ACEOF
19653 cat confdefs.h >>conftest.$ac_ext
19654 cat >>conftest.$ac_ext <<_ACEOF
19655 /* end confdefs.h.  */
19656 $ac_includes_default
19657 #include <$ac_header>
19658 _ACEOF
19659 rm -f conftest.$ac_objext
19660 if { (ac_try="$ac_compile"
19661 case "(($ac_try" in
19662   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19663   *) ac_try_echo=$ac_try;;
19664 esac
19665 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19666   (eval "$ac_compile") 2>conftest.er1
19667   ac_status=$?
19668   grep -v '^ *+' conftest.er1 >conftest.err
19669   rm -f conftest.er1
19670   cat conftest.err >&5
19671   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19672   (exit $ac_status); } &&
19673          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19674   { (case "(($ac_try" in
19675   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19676   *) ac_try_echo=$ac_try;;
19677 esac
19678 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19679   (eval "$ac_try") 2>&5
19680   ac_status=$?
19681   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19682   (exit $ac_status); }; } &&
19683          { ac_try='test -s conftest.$ac_objext'
19684   { (case "(($ac_try" in
19685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19686   *) ac_try_echo=$ac_try;;
19687 esac
19688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19689   (eval "$ac_try") 2>&5
19690   ac_status=$?
19691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19692   (exit $ac_status); }; }; then
19693   ac_header_compiler=yes
19694 else
19695   echo "$as_me: failed program was:" >&5
19696 sed 's/^/| /' conftest.$ac_ext >&5
19697
19698         ac_header_compiler=no
19699 fi
19700
19701 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19702 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19703 echo "${ECHO_T}$ac_header_compiler" >&6; }
19704
19705 # Is the header present?
19706 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19707 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19708 cat >conftest.$ac_ext <<_ACEOF
19709 /* confdefs.h.  */
19710 _ACEOF
19711 cat confdefs.h >>conftest.$ac_ext
19712 cat >>conftest.$ac_ext <<_ACEOF
19713 /* end confdefs.h.  */
19714 #include <$ac_header>
19715 _ACEOF
19716 if { (ac_try="$ac_cpp conftest.$ac_ext"
19717 case "(($ac_try" in
19718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19719   *) ac_try_echo=$ac_try;;
19720 esac
19721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19722   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19723   ac_status=$?
19724   grep -v '^ *+' conftest.er1 >conftest.err
19725   rm -f conftest.er1
19726   cat conftest.err >&5
19727   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19728   (exit $ac_status); } >/dev/null; then
19729   if test -s conftest.err; then
19730     ac_cpp_err=$ac_c_preproc_warn_flag
19731     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19732   else
19733     ac_cpp_err=
19734   fi
19735 else
19736   ac_cpp_err=yes
19737 fi
19738 if test -z "$ac_cpp_err"; then
19739   ac_header_preproc=yes
19740 else
19741   echo "$as_me: failed program was:" >&5
19742 sed 's/^/| /' conftest.$ac_ext >&5
19743
19744   ac_header_preproc=no
19745 fi
19746
19747 rm -f conftest.err conftest.$ac_ext
19748 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19749 echo "${ECHO_T}$ac_header_preproc" >&6; }
19750
19751 # So?  What about this header?
19752 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19753   yes:no: )
19754     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19755 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19756     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19757 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19758     ac_header_preproc=yes
19759     ;;
19760   no:yes:* )
19761     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19762 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19763     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19764 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19765     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19766 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19767     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19768 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19769     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19770 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19771     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19772 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19773     ( cat <<\_ASBOX
19774 ## ----------------------------------- ##
19775 ## Report this to llvmbugs@cs.uiuc.edu ##
19776 ## ----------------------------------- ##
19777 _ASBOX
19778      ) | sed "s/^/$as_me: WARNING:     /" >&2
19779     ;;
19780 esac
19781 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19782 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19783 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19784   echo $ECHO_N "(cached) $ECHO_C" >&6
19785 else
19786   eval "$as_ac_Header=\$ac_header_preproc"
19787 fi
19788 ac_res=`eval echo '${'$as_ac_Header'}'`
19789                { echo "$as_me:$LINENO: result: $ac_res" >&5
19790 echo "${ECHO_T}$ac_res" >&6; }
19791
19792 fi
19793 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19794   cat >>confdefs.h <<_ACEOF
19795 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19796 _ACEOF
19797
19798 fi
19799
19800 done
19801
19802
19803 for ac_func in getpagesize
19804 do
19805 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19806 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19807 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19808 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19809   echo $ECHO_N "(cached) $ECHO_C" >&6
19810 else
19811   cat >conftest.$ac_ext <<_ACEOF
19812 /* confdefs.h.  */
19813 _ACEOF
19814 cat confdefs.h >>conftest.$ac_ext
19815 cat >>conftest.$ac_ext <<_ACEOF
19816 /* end confdefs.h.  */
19817 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19818    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19819 #define $ac_func innocuous_$ac_func
19820
19821 /* System header to define __stub macros and hopefully few prototypes,
19822     which can conflict with char $ac_func (); below.
19823     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19824     <limits.h> exists even on freestanding compilers.  */
19825
19826 #ifdef __STDC__
19827 # include <limits.h>
19828 #else
19829 # include <assert.h>
19830 #endif
19831
19832 #undef $ac_func
19833
19834 /* Override any GCC internal prototype to avoid an error.
19835    Use char because int might match the return type of a GCC
19836    builtin and then its argument prototype would still apply.  */
19837 #ifdef __cplusplus
19838 extern "C"
19839 #endif
19840 char $ac_func ();
19841 /* The GNU C library defines this for functions which it implements
19842     to always fail with ENOSYS.  Some functions are actually named
19843     something starting with __ and the normal name is an alias.  */
19844 #if defined __stub_$ac_func || defined __stub___$ac_func
19845 choke me
19846 #endif
19847
19848 int
19849 main ()
19850 {
19851 return $ac_func ();
19852   ;
19853   return 0;
19854 }
19855 _ACEOF
19856 rm -f conftest.$ac_objext conftest$ac_exeext
19857 if { (ac_try="$ac_link"
19858 case "(($ac_try" in
19859   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19860   *) ac_try_echo=$ac_try;;
19861 esac
19862 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19863   (eval "$ac_link") 2>conftest.er1
19864   ac_status=$?
19865   grep -v '^ *+' conftest.er1 >conftest.err
19866   rm -f conftest.er1
19867   cat conftest.err >&5
19868   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19869   (exit $ac_status); } &&
19870          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19871   { (case "(($ac_try" in
19872   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19873   *) ac_try_echo=$ac_try;;
19874 esac
19875 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19876   (eval "$ac_try") 2>&5
19877   ac_status=$?
19878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19879   (exit $ac_status); }; } &&
19880          { ac_try='test -s conftest$ac_exeext'
19881   { (case "(($ac_try" in
19882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19883   *) ac_try_echo=$ac_try;;
19884 esac
19885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19886   (eval "$ac_try") 2>&5
19887   ac_status=$?
19888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19889   (exit $ac_status); }; }; then
19890   eval "$as_ac_var=yes"
19891 else
19892   echo "$as_me: failed program was:" >&5
19893 sed 's/^/| /' conftest.$ac_ext >&5
19894
19895         eval "$as_ac_var=no"
19896 fi
19897
19898 rm -f core conftest.err conftest.$ac_objext \
19899       conftest$ac_exeext conftest.$ac_ext
19900 fi
19901 ac_res=`eval echo '${'$as_ac_var'}'`
19902                { echo "$as_me:$LINENO: result: $ac_res" >&5
19903 echo "${ECHO_T}$ac_res" >&6; }
19904 if test `eval echo '${'$as_ac_var'}'` = yes; then
19905   cat >>confdefs.h <<_ACEOF
19906 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19907 _ACEOF
19908
19909 fi
19910 done
19911
19912 { echo "$as_me:$LINENO: checking for working mmap" >&5
19913 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19914 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19915   echo $ECHO_N "(cached) $ECHO_C" >&6
19916 else
19917   if test "$cross_compiling" = yes; then
19918   ac_cv_func_mmap_fixed_mapped=no
19919 else
19920   cat >conftest.$ac_ext <<_ACEOF
19921 /* confdefs.h.  */
19922 _ACEOF
19923 cat confdefs.h >>conftest.$ac_ext
19924 cat >>conftest.$ac_ext <<_ACEOF
19925 /* end confdefs.h.  */
19926 $ac_includes_default
19927 /* malloc might have been renamed as rpl_malloc. */
19928 #undef malloc
19929
19930 /* Thanks to Mike Haertel and Jim Avera for this test.
19931    Here is a matrix of mmap possibilities:
19932         mmap private not fixed
19933         mmap private fixed at somewhere currently unmapped
19934         mmap private fixed at somewhere already mapped
19935         mmap shared not fixed
19936         mmap shared fixed at somewhere currently unmapped
19937         mmap shared fixed at somewhere already mapped
19938    For private mappings, we should verify that changes cannot be read()
19939    back from the file, nor mmap's back from the file at a different
19940    address.  (There have been systems where private was not correctly
19941    implemented like the infamous i386 svr4.0, and systems where the
19942    VM page cache was not coherent with the file system buffer cache
19943    like early versions of FreeBSD and possibly contemporary NetBSD.)
19944    For shared mappings, we should conversely verify that changes get
19945    propagated back to all the places they're supposed to be.
19946
19947    Grep wants private fixed already mapped.
19948    The main things grep needs to know about mmap are:
19949    * does it exist and is it safe to write into the mmap'd area
19950    * how to use it (BSD variants)  */
19951
19952 #include <fcntl.h>
19953 #include <sys/mman.h>
19954
19955 #if !STDC_HEADERS && !HAVE_STDLIB_H
19956 char *malloc ();
19957 #endif
19958
19959 /* This mess was copied from the GNU getpagesize.h.  */
19960 #if !HAVE_GETPAGESIZE
19961 /* Assume that all systems that can run configure have sys/param.h.  */
19962 # if !HAVE_SYS_PARAM_H
19963 #  define HAVE_SYS_PARAM_H 1
19964 # endif
19965
19966 # ifdef _SC_PAGESIZE
19967 #  define getpagesize() sysconf(_SC_PAGESIZE)
19968 # else /* no _SC_PAGESIZE */
19969 #  if HAVE_SYS_PARAM_H
19970 #   include <sys/param.h>
19971 #   ifdef EXEC_PAGESIZE
19972 #    define getpagesize() EXEC_PAGESIZE
19973 #   else /* no EXEC_PAGESIZE */
19974 #    ifdef NBPG
19975 #     define getpagesize() NBPG * CLSIZE
19976 #     ifndef CLSIZE
19977 #      define CLSIZE 1
19978 #     endif /* no CLSIZE */
19979 #    else /* no NBPG */
19980 #     ifdef NBPC
19981 #      define getpagesize() NBPC
19982 #     else /* no NBPC */
19983 #      ifdef PAGESIZE
19984 #       define getpagesize() PAGESIZE
19985 #      endif /* PAGESIZE */
19986 #     endif /* no NBPC */
19987 #    endif /* no NBPG */
19988 #   endif /* no EXEC_PAGESIZE */
19989 #  else /* no HAVE_SYS_PARAM_H */
19990 #   define getpagesize() 8192   /* punt totally */
19991 #  endif /* no HAVE_SYS_PARAM_H */
19992 # endif /* no _SC_PAGESIZE */
19993
19994 #endif /* no HAVE_GETPAGESIZE */
19995
19996 int
19997 main ()
19998 {
19999   char *data, *data2, *data3;
20000   int i, pagesize;
20001   int fd;
20002
20003   pagesize = getpagesize ();
20004
20005   /* First, make a file with some known garbage in it. */
20006   data = (char *) malloc (pagesize);
20007   if (!data)
20008     return 1;
20009   for (i = 0; i < pagesize; ++i)
20010     *(data + i) = rand ();
20011   umask (0);
20012   fd = creat ("conftest.mmap", 0600);
20013   if (fd < 0)
20014     return 1;
20015   if (write (fd, data, pagesize) != pagesize)
20016     return 1;
20017   close (fd);
20018
20019   /* Next, try to mmap the file at a fixed address which already has
20020      something else allocated at it.  If we can, also make sure that
20021      we see the same garbage.  */
20022   fd = open ("conftest.mmap", O_RDWR);
20023   if (fd < 0)
20024     return 1;
20025   data2 = (char *) malloc (2 * pagesize);
20026   if (!data2)
20027     return 1;
20028   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20029   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20030                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20031     return 1;
20032   for (i = 0; i < pagesize; ++i)
20033     if (*(data + i) != *(data2 + i))
20034       return 1;
20035
20036   /* Finally, make sure that changes to the mapped area do not
20037      percolate back to the file as seen by read().  (This is a bug on
20038      some variants of i386 svr4.0.)  */
20039   for (i = 0; i < pagesize; ++i)
20040     *(data2 + i) = *(data2 + i) + 1;
20041   data3 = (char *) malloc (pagesize);
20042   if (!data3)
20043     return 1;
20044   if (read (fd, data3, pagesize) != pagesize)
20045     return 1;
20046   for (i = 0; i < pagesize; ++i)
20047     if (*(data + i) != *(data3 + i))
20048       return 1;
20049   close (fd);
20050   return 0;
20051 }
20052 _ACEOF
20053 rm -f conftest$ac_exeext
20054 if { (ac_try="$ac_link"
20055 case "(($ac_try" in
20056   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20057   *) ac_try_echo=$ac_try;;
20058 esac
20059 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20060   (eval "$ac_link") 2>&5
20061   ac_status=$?
20062   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20063   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20064   { (case "(($ac_try" in
20065   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20066   *) ac_try_echo=$ac_try;;
20067 esac
20068 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20069   (eval "$ac_try") 2>&5
20070   ac_status=$?
20071   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20072   (exit $ac_status); }; }; then
20073   ac_cv_func_mmap_fixed_mapped=yes
20074 else
20075   echo "$as_me: program exited with status $ac_status" >&5
20076 echo "$as_me: failed program was:" >&5
20077 sed 's/^/| /' conftest.$ac_ext >&5
20078
20079 ( exit $ac_status )
20080 ac_cv_func_mmap_fixed_mapped=no
20081 fi
20082 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20083 fi
20084
20085
20086 fi
20087 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20088 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20089 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20090
20091 cat >>confdefs.h <<\_ACEOF
20092 #define HAVE_MMAP 1
20093 _ACEOF
20094
20095 fi
20096 rm -f conftest.mmap
20097
20098   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20099 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20100 if test "${ac_cv_func_mmap_file+set}" = set; then
20101   echo $ECHO_N "(cached) $ECHO_C" >&6
20102 else
20103    ac_ext=c
20104 ac_cpp='$CPP $CPPFLAGS'
20105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20108
20109   if test "$cross_compiling" = yes; then
20110   ac_cv_func_mmap_file=no
20111 else
20112   cat >conftest.$ac_ext <<_ACEOF
20113
20114     /* confdefs.h.  */
20115 _ACEOF
20116 cat confdefs.h >>conftest.$ac_ext
20117 cat >>conftest.$ac_ext <<_ACEOF
20118 /* end confdefs.h.  */
20119
20120 #include <sys/types.h>
20121 #include <sys/mman.h>
20122 #include <fcntl.h>
20123
20124 int
20125 main ()
20126 {
20127
20128   int fd;
20129   fd = creat ("foo",0777);
20130   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20131   unlink ("foo");
20132   return (fd != (int) MAP_FAILED);
20133   ;
20134   return 0;
20135 }
20136 _ACEOF
20137 rm -f conftest$ac_exeext
20138 if { (ac_try="$ac_link"
20139 case "(($ac_try" in
20140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20141   *) ac_try_echo=$ac_try;;
20142 esac
20143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20144   (eval "$ac_link") 2>&5
20145   ac_status=$?
20146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20147   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20148   { (case "(($ac_try" in
20149   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20150   *) ac_try_echo=$ac_try;;
20151 esac
20152 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20153   (eval "$ac_try") 2>&5
20154   ac_status=$?
20155   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20156   (exit $ac_status); }; }; then
20157   ac_cv_func_mmap_file=yes
20158 else
20159   echo "$as_me: program exited with status $ac_status" >&5
20160 echo "$as_me: failed program was:" >&5
20161 sed 's/^/| /' conftest.$ac_ext >&5
20162
20163 ( exit $ac_status )
20164 ac_cv_func_mmap_file=no
20165 fi
20166 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20167 fi
20168
20169
20170   ac_ext=c
20171 ac_cpp='$CPP $CPPFLAGS'
20172 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20173 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20174 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20175
20176
20177 fi
20178 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20179 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20180 if test "$ac_cv_func_mmap_file" = yes; then
20181
20182 cat >>confdefs.h <<\_ACEOF
20183 #define HAVE_MMAP_FILE
20184 _ACEOF
20185
20186    MMAP_FILE=yes
20187
20188 fi
20189
20190   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20191 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20192 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20193   echo $ECHO_N "(cached) $ECHO_C" >&6
20194 else
20195   if test "$llvm_cv_os_type" = "Interix" ; then
20196    ac_cv_need_dev_zero_for_mmap=yes
20197  else
20198    ac_cv_need_dev_zero_for_mmap=no
20199  fi
20200
20201 fi
20202 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20203 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20204 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20205
20206 cat >>confdefs.h <<\_ACEOF
20207 #define NEED_DEV_ZERO_FOR_MMAP 1
20208 _ACEOF
20209
20210 fi
20211
20212   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20213   then
20214     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20215 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20216   fi
20217   if test "$ac_cv_func_mmap_file" = "no"
20218   then
20219     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20220 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20221   fi
20222 fi
20223
20224 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20225 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20226 ac_ext=cpp
20227 ac_cpp='$CXXCPP $CPPFLAGS'
20228 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20229 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20230 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20231
20232 cat >conftest.$ac_ext <<_ACEOF
20233 /* confdefs.h.  */
20234 _ACEOF
20235 cat confdefs.h >>conftest.$ac_ext
20236 cat >>conftest.$ac_ext <<_ACEOF
20237 /* end confdefs.h.  */
20238 int main() {
20239         volatile unsigned long val = 1;
20240         __sync_synchronize();
20241         __sync_val_compare_and_swap(&val, 1, 0);
20242         __sync_add_and_fetch(&val, 1);
20243         __sync_sub_and_fetch(&val, 1);
20244         return 0;
20245       }
20246
20247 _ACEOF
20248 rm -f conftest.$ac_objext conftest$ac_exeext
20249 if { (ac_try="$ac_link"
20250 case "(($ac_try" in
20251   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20252   *) ac_try_echo=$ac_try;;
20253 esac
20254 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20255   (eval "$ac_link") 2>conftest.er1
20256   ac_status=$?
20257   grep -v '^ *+' conftest.er1 >conftest.err
20258   rm -f conftest.er1
20259   cat conftest.err >&5
20260   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20261   (exit $ac_status); } &&
20262          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20263   { (case "(($ac_try" in
20264   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20265   *) ac_try_echo=$ac_try;;
20266 esac
20267 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20268   (eval "$ac_try") 2>&5
20269   ac_status=$?
20270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20271   (exit $ac_status); }; } &&
20272          { ac_try='test -s conftest$ac_exeext'
20273   { (case "(($ac_try" in
20274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20275   *) ac_try_echo=$ac_try;;
20276 esac
20277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20278   (eval "$ac_try") 2>&5
20279   ac_status=$?
20280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20281   (exit $ac_status); }; }; then
20282   ac_ext=c
20283 ac_cpp='$CPP $CPPFLAGS'
20284 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20285 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20286 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20287
20288   { echo "$as_me:$LINENO: result: yes" >&5
20289 echo "${ECHO_T}yes" >&6; }
20290
20291 cat >>confdefs.h <<\_ACEOF
20292 #define LLVM_MULTITHREADED 1
20293 _ACEOF
20294
20295 else
20296   echo "$as_me: failed program was:" >&5
20297 sed 's/^/| /' conftest.$ac_ext >&5
20298
20299         { echo "$as_me:$LINENO: result: no" >&5
20300 echo "${ECHO_T}no" >&6; }
20301
20302 cat >>confdefs.h <<\_ACEOF
20303 #define LLVM_MULTITHREADED 0
20304 _ACEOF
20305
20306   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20307 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20308 fi
20309
20310 rm -f core conftest.err conftest.$ac_objext \
20311       conftest$ac_exeext conftest.$ac_ext
20312
20313
20314 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20315   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20316 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20317 if test "${llvm_cv_linux_mixed+set}" = set; then
20318   echo $ECHO_N "(cached) $ECHO_C" >&6
20319 else
20320    ac_ext=c
20321 ac_cpp='$CPP $CPPFLAGS'
20322 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20323 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20324 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20325
20326   cat >conftest.$ac_ext <<_ACEOF
20327 /* confdefs.h.  */
20328 _ACEOF
20329 cat confdefs.h >>conftest.$ac_ext
20330 cat >>conftest.$ac_ext <<_ACEOF
20331 /* end confdefs.h.  */
20332 #ifndef __x86_64__
20333        error: Not x86-64 even if uname says so!
20334       #endif
20335
20336 int
20337 main ()
20338 {
20339
20340   ;
20341   return 0;
20342 }
20343 _ACEOF
20344 rm -f conftest.$ac_objext
20345 if { (ac_try="$ac_compile"
20346 case "(($ac_try" in
20347   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20348   *) ac_try_echo=$ac_try;;
20349 esac
20350 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20351   (eval "$ac_compile") 2>conftest.er1
20352   ac_status=$?
20353   grep -v '^ *+' conftest.er1 >conftest.err
20354   rm -f conftest.er1
20355   cat conftest.err >&5
20356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20357   (exit $ac_status); } &&
20358          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20359   { (case "(($ac_try" in
20360   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20361   *) ac_try_echo=$ac_try;;
20362 esac
20363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20364   (eval "$ac_try") 2>&5
20365   ac_status=$?
20366   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20367   (exit $ac_status); }; } &&
20368          { ac_try='test -s conftest.$ac_objext'
20369   { (case "(($ac_try" in
20370   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20371   *) ac_try_echo=$ac_try;;
20372 esac
20373 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20374   (eval "$ac_try") 2>&5
20375   ac_status=$?
20376   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20377   (exit $ac_status); }; }; then
20378   llvm_cv_linux_mixed=no
20379 else
20380   echo "$as_me: failed program was:" >&5
20381 sed 's/^/| /' conftest.$ac_ext >&5
20382
20383         llvm_cv_linux_mixed=yes
20384 fi
20385
20386 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20387   ac_ext=c
20388 ac_cpp='$CPP $CPPFLAGS'
20389 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20390 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20391 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20392
20393
20394 fi
20395 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20396 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20397
20398   if test "$llvm_cv_linux_mixed" = "yes"; then
20399     llvm_cv_target_arch="x86"
20400     ARCH="x86"
20401   fi
20402 fi
20403
20404
20405 for ac_func in __dso_handle
20406 do
20407 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20408 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20409 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20410 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20411   echo $ECHO_N "(cached) $ECHO_C" >&6
20412 else
20413   cat >conftest.$ac_ext <<_ACEOF
20414 /* confdefs.h.  */
20415 _ACEOF
20416 cat confdefs.h >>conftest.$ac_ext
20417 cat >>conftest.$ac_ext <<_ACEOF
20418 /* end confdefs.h.  */
20419 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20420    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20421 #define $ac_func innocuous_$ac_func
20422
20423 /* System header to define __stub macros and hopefully few prototypes,
20424     which can conflict with char $ac_func (); below.
20425     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20426     <limits.h> exists even on freestanding compilers.  */
20427
20428 #ifdef __STDC__
20429 # include <limits.h>
20430 #else
20431 # include <assert.h>
20432 #endif
20433
20434 #undef $ac_func
20435
20436 /* Override any GCC internal prototype to avoid an error.
20437    Use char because int might match the return type of a GCC
20438    builtin and then its argument prototype would still apply.  */
20439 #ifdef __cplusplus
20440 extern "C"
20441 #endif
20442 char $ac_func ();
20443 /* The GNU C library defines this for functions which it implements
20444     to always fail with ENOSYS.  Some functions are actually named
20445     something starting with __ and the normal name is an alias.  */
20446 #if defined __stub_$ac_func || defined __stub___$ac_func
20447 choke me
20448 #endif
20449
20450 int
20451 main ()
20452 {
20453 return $ac_func ();
20454   ;
20455   return 0;
20456 }
20457 _ACEOF
20458 rm -f conftest.$ac_objext conftest$ac_exeext
20459 if { (ac_try="$ac_link"
20460 case "(($ac_try" in
20461   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20462   *) ac_try_echo=$ac_try;;
20463 esac
20464 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20465   (eval "$ac_link") 2>conftest.er1
20466   ac_status=$?
20467   grep -v '^ *+' conftest.er1 >conftest.err
20468   rm -f conftest.er1
20469   cat conftest.err >&5
20470   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20471   (exit $ac_status); } &&
20472          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20473   { (case "(($ac_try" in
20474   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20475   *) ac_try_echo=$ac_try;;
20476 esac
20477 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20478   (eval "$ac_try") 2>&5
20479   ac_status=$?
20480   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20481   (exit $ac_status); }; } &&
20482          { ac_try='test -s conftest$ac_exeext'
20483   { (case "(($ac_try" in
20484   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20485   *) ac_try_echo=$ac_try;;
20486 esac
20487 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20488   (eval "$ac_try") 2>&5
20489   ac_status=$?
20490   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20491   (exit $ac_status); }; }; then
20492   eval "$as_ac_var=yes"
20493 else
20494   echo "$as_me: failed program was:" >&5
20495 sed 's/^/| /' conftest.$ac_ext >&5
20496
20497         eval "$as_ac_var=no"
20498 fi
20499
20500 rm -f core conftest.err conftest.$ac_objext \
20501       conftest$ac_exeext conftest.$ac_ext
20502 fi
20503 ac_res=`eval echo '${'$as_ac_var'}'`
20504                { echo "$as_me:$LINENO: result: $ac_res" >&5
20505 echo "${ECHO_T}$ac_res" >&6; }
20506 if test `eval echo '${'$as_ac_var'}'` = yes; then
20507   cat >>confdefs.h <<_ACEOF
20508 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20509 _ACEOF
20510
20511 fi
20512 done
20513
20514
20515 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20516 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20517 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20518   echo $ECHO_N "(cached) $ECHO_C" >&6
20519 else
20520   llvm_cv_llvmgcc_sanity="no"
20521 if test -x "$LLVMGCC" ; then
20522   cp /dev/null conftest.c
20523   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
20524       grep 'target datalayout =' > /dev/null 2>&1
20525   if test $? -eq 0 ; then
20526     llvm_cv_llvmgcc_sanity="yes"
20527   fi
20528   rm conftest.c
20529 fi
20530 fi
20531 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20532 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
20533
20534 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
20535   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20536 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
20537   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
20538   LLVMCC1=$llvmcc1path
20539
20540   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
20541   LLVMCC1PLUS=$llvmcc1pluspath
20542
20543   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20544   LLVMGCCDIR=$llvmgccdir
20545
20546   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
20547   LLVMGCC_LANGS=$llvmgcclangs
20548
20549   { echo "$as_me:$LINENO: result: ok" >&5
20550 echo "${ECHO_T}ok" >&6; }
20551 fi
20552
20553 SHLIBEXT=$libltdl_cv_shlibext
20554
20555
20556 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20557
20558
20559 # Translate the various configuration directories and other basic
20560 # information into substitutions that will end up in Makefile.config.in
20561 # that these configured values can be used by the makefiles
20562 if test "${prefix}" = "NONE" ; then
20563   prefix="/usr/local"
20564 fi
20565 eval LLVM_PREFIX="${prefix}";
20566 eval LLVM_BINDIR="${prefix}/bin";
20567 eval LLVM_LIBDIR="${prefix}/lib";
20568 eval LLVM_DATADIR="${prefix}/share/llvm";
20569 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20570 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20571 eval LLVM_INCLUDEDIR="${prefix}/include";
20572 eval LLVM_INFODIR="${prefix}/info";
20573 eval LLVM_MANDIR="${prefix}/man";
20574 LLVM_CONFIGTIME=`date`
20575
20576
20577
20578
20579
20580
20581
20582
20583
20584
20585
20586 # Place the various directores into the config.h file as #defines so that we
20587 # can know about the installation paths within LLVM.
20588
20589 cat >>confdefs.h <<_ACEOF
20590 #define LLVM_PREFIX "$LLVM_PREFIX"
20591 _ACEOF
20592
20593
20594 cat >>confdefs.h <<_ACEOF
20595 #define LLVM_BINDIR "$LLVM_BINDIR"
20596 _ACEOF
20597
20598
20599 cat >>confdefs.h <<_ACEOF
20600 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20601 _ACEOF
20602
20603
20604 cat >>confdefs.h <<_ACEOF
20605 #define LLVM_DATADIR "$LLVM_DATADIR"
20606 _ACEOF
20607
20608
20609 cat >>confdefs.h <<_ACEOF
20610 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20611 _ACEOF
20612
20613
20614 cat >>confdefs.h <<_ACEOF
20615 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20616 _ACEOF
20617
20618
20619 cat >>confdefs.h <<_ACEOF
20620 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20621 _ACEOF
20622
20623
20624 cat >>confdefs.h <<_ACEOF
20625 #define LLVM_INFODIR "$LLVM_INFODIR"
20626 _ACEOF
20627
20628
20629 cat >>confdefs.h <<_ACEOF
20630 #define LLVM_MANDIR "$LLVM_MANDIR"
20631 _ACEOF
20632
20633
20634 cat >>confdefs.h <<_ACEOF
20635 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20636 _ACEOF
20637
20638
20639 cat >>confdefs.h <<_ACEOF
20640 #define LLVM_HOSTTRIPLE "$host"
20641 _ACEOF
20642
20643
20644 # Determine which bindings to build.
20645 if test "$BINDINGS_TO_BUILD" = auto ; then
20646   BINDINGS_TO_BUILD=""
20647   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20648     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20649   fi
20650 fi
20651 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20652
20653
20654 # This isn't really configurey, but it avoids having to repeat the list in
20655 # other files.
20656 ALL_BINDINGS=ocaml
20657
20658
20659 # Do any work necessary to ensure that bindings have what they need.
20660 binding_prereqs_failed=0
20661 for a_binding in $BINDINGS_TO_BUILD ; do
20662   case "$a_binding" in
20663   ocaml)
20664     if test "x$OCAMLC" = x ; then
20665       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20666 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20667       binding_prereqs_failed=1
20668     fi
20669     if test "x$OCAMLDEP" = x ; then
20670       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20671 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20672       binding_prereqs_failed=1
20673     fi
20674     if test "x$OCAMLOPT" = x ; then
20675       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20676 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20677           fi
20678     if test "x$with_ocaml_libdir" != xauto ; then
20679       OCAML_LIBDIR=$with_ocaml_libdir
20680
20681     else
20682       ocaml_stdlib="`"$OCAMLC" -where`"
20683       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20684       then
20685         # ocaml stdlib is beneath our prefix; use stdlib
20686         OCAML_LIBDIR=$ocaml_stdlib
20687
20688       else
20689         # ocaml stdlib is outside our prefix; use libdir/ocaml
20690         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20691
20692       fi
20693     fi
20694     ;;
20695   esac
20696 done
20697 if test "$binding_prereqs_failed" = 1 ; then
20698   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20699 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20700    { (exit 1); exit 1; }; }
20701 fi
20702
20703 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20704 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20705 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20706   echo $ECHO_N "(cached) $ECHO_C" >&6
20707 else
20708    ac_ext=cpp
20709 ac_cpp='$CXXCPP $CPPFLAGS'
20710 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20711 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20712 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20713
20714   oldcxxflags="$CXXFLAGS"
20715   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20716   cat >conftest.$ac_ext <<_ACEOF
20717 /* confdefs.h.  */
20718 _ACEOF
20719 cat confdefs.h >>conftest.$ac_ext
20720 cat >>conftest.$ac_ext <<_ACEOF
20721 /* end confdefs.h.  */
20722
20723 int
20724 main ()
20725 {
20726
20727   ;
20728   return 0;
20729 }
20730 _ACEOF
20731 rm -f conftest.$ac_objext
20732 if { (ac_try="$ac_compile"
20733 case "(($ac_try" in
20734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20735   *) ac_try_echo=$ac_try;;
20736 esac
20737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20738   (eval "$ac_compile") 2>conftest.er1
20739   ac_status=$?
20740   grep -v '^ *+' conftest.er1 >conftest.err
20741   rm -f conftest.er1
20742   cat conftest.err >&5
20743   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20744   (exit $ac_status); } &&
20745          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20746   { (case "(($ac_try" in
20747   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20748   *) ac_try_echo=$ac_try;;
20749 esac
20750 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20751   (eval "$ac_try") 2>&5
20752   ac_status=$?
20753   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20754   (exit $ac_status); }; } &&
20755          { ac_try='test -s conftest.$ac_objext'
20756   { (case "(($ac_try" in
20757   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20758   *) ac_try_echo=$ac_try;;
20759 esac
20760 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20761   (eval "$ac_try") 2>&5
20762   ac_status=$?
20763   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20764   (exit $ac_status); }; }; then
20765   llvm_cv_cxx_visibility_inlines_hidden=yes
20766 else
20767   echo "$as_me: failed program was:" >&5
20768 sed 's/^/| /' conftest.$ac_ext >&5
20769
20770         llvm_cv_cxx_visibility_inlines_hidden=no
20771 fi
20772
20773 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20774   CXXFLAGS="$oldcxxflags"
20775   ac_ext=c
20776 ac_cpp='$CPP $CPPFLAGS'
20777 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20778 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20779 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20780
20781
20782 fi
20783 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20784 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20785 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20786   ENABLE_VISIBILITY_INLINES_HIDDEN=1
20787
20788 else
20789   ENABLE_VISIBILITY_INLINES_HIDDEN=0
20790
20791 fi
20792
20793
20794 if test "$llvm_cv_link_use_r" = "yes" ; then
20795   RPATH="-Wl,-R"
20796 else
20797   RPATH="-Wl,-rpath"
20798 fi
20799
20800
20801 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20802   RDYNAMIC="-Wl,-export-dynamic"
20803 else
20804   RDYNAMIC=""
20805 fi
20806
20807
20808
20809 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
20810
20811
20812
20813
20814
20815
20816 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20817
20818 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20819
20820 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20821
20822 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20823
20824 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
20825
20826
20827 ac_config_files="$ac_config_files Makefile.config"
20828
20829
20830 ac_config_files="$ac_config_files llvm.spec"
20831
20832
20833 ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
20834
20835
20836 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
20837
20838
20839 ac_config_commands="$ac_config_commands setup"
20840
20841 ac_config_commands="$ac_config_commands Makefile"
20842
20843
20844 ac_config_commands="$ac_config_commands Makefile.common"
20845
20846
20847 ac_config_commands="$ac_config_commands examples/Makefile"
20848
20849
20850 ac_config_commands="$ac_config_commands lib/Makefile"
20851
20852
20853 ac_config_commands="$ac_config_commands runtime/Makefile"
20854
20855
20856 ac_config_commands="$ac_config_commands test/Makefile"
20857
20858
20859 ac_config_commands="$ac_config_commands test/Makefile.tests"
20860
20861
20862 ac_config_commands="$ac_config_commands unittests/Makefile"
20863
20864
20865 ac_config_commands="$ac_config_commands tools/Makefile"
20866
20867
20868 ac_config_commands="$ac_config_commands utils/Makefile"
20869
20870
20871 ac_config_commands="$ac_config_commands projects/Makefile"
20872
20873
20874 ac_config_commands="$ac_config_commands bindings/Makefile"
20875
20876
20877 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20878
20879
20880
20881 cat >confcache <<\_ACEOF
20882 # This file is a shell script that caches the results of configure
20883 # tests run on this system so they can be shared between configure
20884 # scripts and configure runs, see configure's option --config-cache.
20885 # It is not useful on other systems.  If it contains results you don't
20886 # want to keep, you may remove or edit it.
20887 #
20888 # config.status only pays attention to the cache file if you give it
20889 # the --recheck option to rerun configure.
20890 #
20891 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20892 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20893 # following values.
20894
20895 _ACEOF
20896
20897 # The following way of writing the cache mishandles newlines in values,
20898 # but we know of no workaround that is simple, portable, and efficient.
20899 # So, we kill variables containing newlines.
20900 # Ultrix sh set writes to stderr and can't be redirected directly,
20901 # and sets the high bit in the cache file unless we assign to the vars.
20902 (
20903   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20904     eval ac_val=\$$ac_var
20905     case $ac_val in #(
20906     *${as_nl}*)
20907       case $ac_var in #(
20908       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20909 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20910       esac
20911       case $ac_var in #(
20912       _ | IFS | as_nl) ;; #(
20913       *) $as_unset $ac_var ;;
20914       esac ;;
20915     esac
20916   done
20917
20918   (set) 2>&1 |
20919     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20920     *${as_nl}ac_space=\ *)
20921       # `set' does not quote correctly, so add quotes (double-quote
20922       # substitution turns \\\\ into \\, and sed turns \\ into \).
20923       sed -n \
20924         "s/'/'\\\\''/g;
20925           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20926       ;; #(
20927     *)
20928       # `set' quotes correctly as required by POSIX, so do not add quotes.
20929       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20930       ;;
20931     esac |
20932     sort
20933 ) |
20934   sed '
20935      /^ac_cv_env_/b end
20936      t clear
20937      :clear
20938      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20939      t end
20940      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20941      :end' >>confcache
20942 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20943   if test -w "$cache_file"; then
20944     test "x$cache_file" != "x/dev/null" &&
20945       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20946 echo "$as_me: updating cache $cache_file" >&6;}
20947     cat confcache >$cache_file
20948   else
20949     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20950 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20951   fi
20952 fi
20953 rm -f confcache
20954
20955 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20956 # Let make expand exec_prefix.
20957 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20958
20959 DEFS=-DHAVE_CONFIG_H
20960
20961 ac_libobjs=
20962 ac_ltlibobjs=
20963 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20964   # 1. Remove the extension, and $U if already installed.
20965   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20966   ac_i=`echo "$ac_i" | sed "$ac_script"`
20967   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20968   #    will be set to the directory where LIBOBJS objects are built.
20969   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20970   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20971 done
20972 LIBOBJS=$ac_libobjs
20973
20974 LTLIBOBJS=$ac_ltlibobjs
20975
20976
20977 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20978   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20979 Usually this means the macro was only invoked conditionally." >&5
20980 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20981 Usually this means the macro was only invoked conditionally." >&2;}
20982    { (exit 1); exit 1; }; }
20983 fi
20984 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
20985   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20986 Usually this means the macro was only invoked conditionally." >&5
20987 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
20988 Usually this means the macro was only invoked conditionally." >&2;}
20989    { (exit 1); exit 1; }; }
20990 fi
20991
20992 : ${CONFIG_STATUS=./config.status}
20993 ac_clean_files_save=$ac_clean_files
20994 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
20995 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
20996 echo "$as_me: creating $CONFIG_STATUS" >&6;}
20997 cat >$CONFIG_STATUS <<_ACEOF
20998 #! $SHELL
20999 # Generated by $as_me.
21000 # Run this file to recreate the current configuration.
21001 # Compiler output produced by configure, useful for debugging
21002 # configure, is in config.log if it exists.
21003
21004 debug=false
21005 ac_cs_recheck=false
21006 ac_cs_silent=false
21007 SHELL=\${CONFIG_SHELL-$SHELL}
21008 _ACEOF
21009
21010 cat >>$CONFIG_STATUS <<\_ACEOF
21011 ## --------------------- ##
21012 ## M4sh Initialization.  ##
21013 ## --------------------- ##
21014
21015 # Be Bourne compatible
21016 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21017   emulate sh
21018   NULLCMD=:
21019   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21020   # is contrary to our usage.  Disable this feature.
21021   alias -g '${1+"$@"}'='"$@"'
21022   setopt NO_GLOB_SUBST
21023 else
21024   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21025 fi
21026 BIN_SH=xpg4; export BIN_SH # for Tru64
21027 DUALCASE=1; export DUALCASE # for MKS sh
21028
21029
21030 # PATH needs CR
21031 # Avoid depending upon Character Ranges.
21032 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21033 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21034 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21035 as_cr_digits='0123456789'
21036 as_cr_alnum=$as_cr_Letters$as_cr_digits
21037
21038 # The user is always right.
21039 if test "${PATH_SEPARATOR+set}" != set; then
21040   echo "#! /bin/sh" >conf$$.sh
21041   echo  "exit 0"   >>conf$$.sh
21042   chmod +x conf$$.sh
21043   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21044     PATH_SEPARATOR=';'
21045   else
21046     PATH_SEPARATOR=:
21047   fi
21048   rm -f conf$$.sh
21049 fi
21050
21051 # Support unset when possible.
21052 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21053   as_unset=unset
21054 else
21055   as_unset=false
21056 fi
21057
21058
21059 # IFS
21060 # We need space, tab and new line, in precisely that order.  Quoting is
21061 # there to prevent editors from complaining about space-tab.
21062 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21063 # splitting by setting IFS to empty value.)
21064 as_nl='
21065 '
21066 IFS=" ""        $as_nl"
21067
21068 # Find who we are.  Look in the path if we contain no directory separator.
21069 case $0 in
21070   *[\\/]* ) as_myself=$0 ;;
21071   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21072 for as_dir in $PATH
21073 do
21074   IFS=$as_save_IFS
21075   test -z "$as_dir" && as_dir=.
21076   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21077 done
21078 IFS=$as_save_IFS
21079
21080      ;;
21081 esac
21082 # We did not find ourselves, most probably we were run as `sh COMMAND'
21083 # in which case we are not to be found in the path.
21084 if test "x$as_myself" = x; then
21085   as_myself=$0
21086 fi
21087 if test ! -f "$as_myself"; then
21088   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21089   { (exit 1); exit 1; }
21090 fi
21091
21092 # Work around bugs in pre-3.0 UWIN ksh.
21093 for as_var in ENV MAIL MAILPATH
21094 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21095 done
21096 PS1='$ '
21097 PS2='> '
21098 PS4='+ '
21099
21100 # NLS nuisances.
21101 for as_var in \
21102   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21103   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21104   LC_TELEPHONE LC_TIME
21105 do
21106   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21107     eval $as_var=C; export $as_var
21108   else
21109     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21110   fi
21111 done
21112
21113 # Required to use basename.
21114 if expr a : '\(a\)' >/dev/null 2>&1 &&
21115    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21116   as_expr=expr
21117 else
21118   as_expr=false
21119 fi
21120
21121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21122   as_basename=basename
21123 else
21124   as_basename=false
21125 fi
21126
21127
21128 # Name of the executable.
21129 as_me=`$as_basename -- "$0" ||
21130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21131          X"$0" : 'X\(//\)$' \| \
21132          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21133 echo X/"$0" |
21134     sed '/^.*\/\([^/][^/]*\)\/*$/{
21135             s//\1/
21136             q
21137           }
21138           /^X\/\(\/\/\)$/{
21139             s//\1/
21140             q
21141           }
21142           /^X\/\(\/\).*/{
21143             s//\1/
21144             q
21145           }
21146           s/.*/./; q'`
21147
21148 # CDPATH.
21149 $as_unset CDPATH
21150
21151
21152
21153   as_lineno_1=$LINENO
21154   as_lineno_2=$LINENO
21155   test "x$as_lineno_1" != "x$as_lineno_2" &&
21156   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21157
21158   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21159   # uniformly replaced by the line number.  The first 'sed' inserts a
21160   # line-number line after each line using $LINENO; the second 'sed'
21161   # does the real work.  The second script uses 'N' to pair each
21162   # line-number line with the line containing $LINENO, and appends
21163   # trailing '-' during substitution so that $LINENO is not a special
21164   # case at line end.
21165   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21166   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21167   # E. McMahon (1931-1989) for sed's syntax.  :-)
21168   sed -n '
21169     p
21170     /[$]LINENO/=
21171   ' <$as_myself |
21172     sed '
21173       s/[$]LINENO.*/&-/
21174       t lineno
21175       b
21176       :lineno
21177       N
21178       :loop
21179       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21180       t loop
21181       s/-\n.*//
21182     ' >$as_me.lineno &&
21183   chmod +x "$as_me.lineno" ||
21184     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21185    { (exit 1); exit 1; }; }
21186
21187   # Don't try to exec as it changes $[0], causing all sort of problems
21188   # (the dirname of $[0] is not the place where we might find the
21189   # original and so on.  Autoconf is especially sensitive to this).
21190   . "./$as_me.lineno"
21191   # Exit status is that of the last command.
21192   exit
21193 }
21194
21195
21196 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21197   as_dirname=dirname
21198 else
21199   as_dirname=false
21200 fi
21201
21202 ECHO_C= ECHO_N= ECHO_T=
21203 case `echo -n x` in
21204 -n*)
21205   case `echo 'x\c'` in
21206   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21207   *)   ECHO_C='\c';;
21208   esac;;
21209 *)
21210   ECHO_N='-n';;
21211 esac
21212
21213 if expr a : '\(a\)' >/dev/null 2>&1 &&
21214    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21215   as_expr=expr
21216 else
21217   as_expr=false
21218 fi
21219
21220 rm -f conf$$ conf$$.exe conf$$.file
21221 if test -d conf$$.dir; then
21222   rm -f conf$$.dir/conf$$.file
21223 else
21224   rm -f conf$$.dir
21225   mkdir conf$$.dir
21226 fi
21227 echo >conf$$.file
21228 if ln -s conf$$.file conf$$ 2>/dev/null; then
21229   as_ln_s='ln -s'
21230   # ... but there are two gotchas:
21231   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21232   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21233   # In both cases, we have to default to `cp -p'.
21234   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21235     as_ln_s='cp -p'
21236 elif ln conf$$.file conf$$ 2>/dev/null; then
21237   as_ln_s=ln
21238 else
21239   as_ln_s='cp -p'
21240 fi
21241 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21242 rmdir conf$$.dir 2>/dev/null
21243
21244 if mkdir -p . 2>/dev/null; then
21245   as_mkdir_p=:
21246 else
21247   test -d ./-p && rmdir ./-p
21248   as_mkdir_p=false
21249 fi
21250
21251 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21252 # systems may use methods other than mode bits to determine executability.
21253 cat >conf$$.file <<_ASEOF
21254 #! /bin/sh
21255 exit 0
21256 _ASEOF
21257 chmod +x conf$$.file
21258 if test -x conf$$.file >/dev/null 2>&1; then
21259   as_executable_p="test -x"
21260 else
21261   as_executable_p=:
21262 fi
21263 rm -f conf$$.file
21264
21265 # Sed expression to map a string onto a valid CPP name.
21266 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21267
21268 # Sed expression to map a string onto a valid variable name.
21269 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21270
21271
21272 exec 6>&1
21273
21274 # Save the log message, to keep $[0] and so on meaningful, and to
21275 # report actual input values of CONFIG_FILES etc. instead of their
21276 # values after options handling.
21277 ac_log="
21278 This file was extended by llvm $as_me 2.9svn, which was
21279 generated by GNU Autoconf 2.60.  Invocation command line was
21280
21281   CONFIG_FILES    = $CONFIG_FILES
21282   CONFIG_HEADERS  = $CONFIG_HEADERS
21283   CONFIG_LINKS    = $CONFIG_LINKS
21284   CONFIG_COMMANDS = $CONFIG_COMMANDS
21285   $ $0 $@
21286
21287 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21288 "
21289
21290 _ACEOF
21291
21292 cat >>$CONFIG_STATUS <<_ACEOF
21293 # Files that config.status was made for.
21294 config_files="$ac_config_files"
21295 config_headers="$ac_config_headers"
21296 config_commands="$ac_config_commands"
21297
21298 _ACEOF
21299
21300 cat >>$CONFIG_STATUS <<\_ACEOF
21301 ac_cs_usage="\
21302 \`$as_me' instantiates files from templates according to the
21303 current configuration.
21304
21305 Usage: $0 [OPTIONS] [FILE]...
21306
21307   -h, --help       print this help, then exit
21308   -V, --version    print version number, then exit
21309   -q, --quiet      do not print progress messages
21310   -d, --debug      don't remove temporary files
21311       --recheck    update $as_me by reconfiguring in the same conditions
21312   --file=FILE[:TEMPLATE]
21313                    instantiate the configuration file FILE
21314   --header=FILE[:TEMPLATE]
21315                    instantiate the configuration header FILE
21316
21317 Configuration files:
21318 $config_files
21319
21320 Configuration headers:
21321 $config_headers
21322
21323 Configuration commands:
21324 $config_commands
21325
21326 Report bugs to <bug-autoconf@gnu.org>."
21327
21328 _ACEOF
21329 cat >>$CONFIG_STATUS <<_ACEOF
21330 ac_cs_version="\\
21331 llvm config.status 2.9svn
21332 configured by $0, generated by GNU Autoconf 2.60,
21333   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21334
21335 Copyright (C) 2006 Free Software Foundation, Inc.
21336 This config.status script is free software; the Free Software Foundation
21337 gives unlimited permission to copy, distribute and modify it."
21338
21339 ac_pwd='$ac_pwd'
21340 srcdir='$srcdir'
21341 INSTALL='$INSTALL'
21342 _ACEOF
21343
21344 cat >>$CONFIG_STATUS <<\_ACEOF
21345 # If no file are specified by the user, then we need to provide default
21346 # value.  By we need to know if files were specified by the user.
21347 ac_need_defaults=:
21348 while test $# != 0
21349 do
21350   case $1 in
21351   --*=*)
21352     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21353     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21354     ac_shift=:
21355     ;;
21356   *)
21357     ac_option=$1
21358     ac_optarg=$2
21359     ac_shift=shift
21360     ;;
21361   esac
21362
21363   case $ac_option in
21364   # Handling of the options.
21365   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21366     ac_cs_recheck=: ;;
21367   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21368     echo "$ac_cs_version"; exit ;;
21369   --debug | --debu | --deb | --de | --d | -d )
21370     debug=: ;;
21371   --file | --fil | --fi | --f )
21372     $ac_shift
21373     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21374     ac_need_defaults=false;;
21375   --header | --heade | --head | --hea )
21376     $ac_shift
21377     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21378     ac_need_defaults=false;;
21379   --he | --h)
21380     # Conflict between --help and --header
21381     { echo "$as_me: error: ambiguous option: $1
21382 Try \`$0 --help' for more information." >&2
21383    { (exit 1); exit 1; }; };;
21384   --help | --hel | -h )
21385     echo "$ac_cs_usage"; exit ;;
21386   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21387   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21388     ac_cs_silent=: ;;
21389
21390   # This is an error.
21391   -*) { echo "$as_me: error: unrecognized option: $1
21392 Try \`$0 --help' for more information." >&2
21393    { (exit 1); exit 1; }; } ;;
21394
21395   *) ac_config_targets="$ac_config_targets $1"
21396      ac_need_defaults=false ;;
21397
21398   esac
21399   shift
21400 done
21401
21402 ac_configure_extra_args=
21403
21404 if $ac_cs_silent; then
21405   exec 6>/dev/null
21406   ac_configure_extra_args="$ac_configure_extra_args --silent"
21407 fi
21408
21409 _ACEOF
21410 cat >>$CONFIG_STATUS <<_ACEOF
21411 if \$ac_cs_recheck; then
21412   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21413   CONFIG_SHELL=$SHELL
21414   export CONFIG_SHELL
21415   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21416 fi
21417
21418 _ACEOF
21419 cat >>$CONFIG_STATUS <<\_ACEOF
21420 exec 5>>config.log
21421 {
21422   echo
21423   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21424 ## Running $as_me. ##
21425 _ASBOX
21426   echo "$ac_log"
21427 } >&5
21428
21429 _ACEOF
21430 cat >>$CONFIG_STATUS <<_ACEOF
21431 #
21432 # INIT-COMMANDS
21433 #
21434 llvm_src="${srcdir}"
21435
21436 _ACEOF
21437
21438 cat >>$CONFIG_STATUS <<\_ACEOF
21439
21440 # Handling of arguments.
21441 for ac_config_target in $ac_config_targets
21442 do
21443   case $ac_config_target in
21444     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21445     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21446     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21447     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21448     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21449     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21450     "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
21451     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21452     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21453     "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
21454     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21455     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21456     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21457     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21458     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21459     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21460     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21461     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21462     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21463     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21464     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21465     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21466     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21467     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21468     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21469
21470   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21471 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21472    { (exit 1); exit 1; }; };;
21473   esac
21474 done
21475
21476
21477 # If the user did not use the arguments to specify the items to instantiate,
21478 # then the envvar interface is used.  Set only those that are not.
21479 # We use the long form for the default assignment because of an extremely
21480 # bizarre bug on SunOS 4.1.3.
21481 if $ac_need_defaults; then
21482   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21483   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21484   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21485 fi
21486
21487 # Have a temporary directory for convenience.  Make it in the build tree
21488 # simply because there is no reason against having it here, and in addition,
21489 # creating and moving files from /tmp can sometimes cause problems.
21490 # Hook for its removal unless debugging.
21491 # Note that there is a small window in which the directory will not be cleaned:
21492 # after its creation but before its name has been assigned to `$tmp'.
21493 $debug ||
21494 {
21495   tmp=
21496   trap 'exit_status=$?
21497   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21498 ' 0
21499   trap '{ (exit 1); exit 1; }' 1 2 13 15
21500 }
21501 # Create a (secure) tmp directory for tmp files.
21502
21503 {
21504   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21505   test -n "$tmp" && test -d "$tmp"
21506 }  ||
21507 {
21508   tmp=./conf$$-$RANDOM
21509   (umask 077 && mkdir "$tmp")
21510 } ||
21511 {
21512    echo "$me: cannot create a temporary directory in ." >&2
21513    { (exit 1); exit 1; }
21514 }
21515
21516 #
21517 # Set up the sed scripts for CONFIG_FILES section.
21518 #
21519
21520 # No need to generate the scripts if there are no CONFIG_FILES.
21521 # This happens for instance when ./config.status config.h
21522 if test -n "$CONFIG_FILES"; then
21523
21524 _ACEOF
21525
21526
21527
21528 ac_delim='%!_!# '
21529 for ac_last_try in false false false false false :; do
21530   cat >conf$$subs.sed <<_ACEOF
21531 SHELL!$SHELL$ac_delim
21532 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21533 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21534 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21535 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21536 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21537 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21538 exec_prefix!$exec_prefix$ac_delim
21539 prefix!$prefix$ac_delim
21540 program_transform_name!$program_transform_name$ac_delim
21541 bindir!$bindir$ac_delim
21542 sbindir!$sbindir$ac_delim
21543 libexecdir!$libexecdir$ac_delim
21544 datarootdir!$datarootdir$ac_delim
21545 datadir!$datadir$ac_delim
21546 sysconfdir!$sysconfdir$ac_delim
21547 sharedstatedir!$sharedstatedir$ac_delim
21548 localstatedir!$localstatedir$ac_delim
21549 includedir!$includedir$ac_delim
21550 oldincludedir!$oldincludedir$ac_delim
21551 docdir!$docdir$ac_delim
21552 infodir!$infodir$ac_delim
21553 htmldir!$htmldir$ac_delim
21554 dvidir!$dvidir$ac_delim
21555 pdfdir!$pdfdir$ac_delim
21556 psdir!$psdir$ac_delim
21557 libdir!$libdir$ac_delim
21558 localedir!$localedir$ac_delim
21559 mandir!$mandir$ac_delim
21560 DEFS!$DEFS$ac_delim
21561 ECHO_C!$ECHO_C$ac_delim
21562 ECHO_N!$ECHO_N$ac_delim
21563 ECHO_T!$ECHO_T$ac_delim
21564 LIBS!$LIBS$ac_delim
21565 build_alias!$build_alias$ac_delim
21566 host_alias!$host_alias$ac_delim
21567 target_alias!$target_alias$ac_delim
21568 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21569 subdirs!$subdirs$ac_delim
21570 build!$build$ac_delim
21571 build_cpu!$build_cpu$ac_delim
21572 build_vendor!$build_vendor$ac_delim
21573 build_os!$build_os$ac_delim
21574 host!$host$ac_delim
21575 host_cpu!$host_cpu$ac_delim
21576 host_vendor!$host_vendor$ac_delim
21577 host_os!$host_os$ac_delim
21578 target!$target$ac_delim
21579 target_cpu!$target_cpu$ac_delim
21580 target_vendor!$target_vendor$ac_delim
21581 target_os!$target_os$ac_delim
21582 OS!$OS$ac_delim
21583 HOST_OS!$HOST_OS$ac_delim
21584 TARGET_OS!$TARGET_OS$ac_delim
21585 LINKALL!$LINKALL$ac_delim
21586 NOLINKALL!$NOLINKALL$ac_delim
21587 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21588 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21589 ARCH!$ARCH$ac_delim
21590 ENDIAN!$ENDIAN$ac_delim
21591 CC!$CC$ac_delim
21592 CFLAGS!$CFLAGS$ac_delim
21593 LDFLAGS!$LDFLAGS$ac_delim
21594 CPPFLAGS!$CPPFLAGS$ac_delim
21595 ac_ct_CC!$ac_ct_CC$ac_delim
21596 EXEEXT!$EXEEXT$ac_delim
21597 OBJEXT!$OBJEXT$ac_delim
21598 CPP!$CPP$ac_delim
21599 GREP!$GREP$ac_delim
21600 EGREP!$EGREP$ac_delim
21601 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21602 BUILD_CC!$BUILD_CC$ac_delim
21603 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21604 BUILD_CXX!$BUILD_CXX$ac_delim
21605 CVSBUILD!$CVSBUILD$ac_delim
21606 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21607 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21608 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21609 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21610 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21611 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21612 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21613 JIT!$JIT$ac_delim
21614 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21615 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21616 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21617 ENABLE_PIC!$ENABLE_PIC$ac_delim
21618 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21619 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21620 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21621 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21622 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21623 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21624 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21625 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21626 CLANGPATH!$CLANGPATH$ac_delim
21627 CLANGXXPATH!$CLANGXXPATH$ac_delim
21628 _ACEOF
21629
21630   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21631     break
21632   elif $ac_last_try; then
21633     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21634 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21635    { (exit 1); exit 1; }; }
21636   else
21637     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21638   fi
21639 done
21640
21641 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21642 if test -n "$ac_eof"; then
21643   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21644   ac_eof=`expr $ac_eof + 1`
21645 fi
21646
21647 cat >>$CONFIG_STATUS <<_ACEOF
21648 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21649 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21650 _ACEOF
21651 sed '
21652 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21653 s/^/s,@/; s/!/@,|#_!!_#|/
21654 :n
21655 t n
21656 s/'"$ac_delim"'$/,g/; t
21657 s/$/\\/; p
21658 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21659 ' >>$CONFIG_STATUS <conf$$subs.sed
21660 rm -f conf$$subs.sed
21661 cat >>$CONFIG_STATUS <<_ACEOF
21662 CEOF$ac_eof
21663 _ACEOF
21664
21665
21666 ac_delim='%!_!# '
21667 for ac_last_try in false false false false false :; do
21668   cat >conf$$subs.sed <<_ACEOF
21669 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
21670 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21671 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21672 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21673 CXX!$CXX$ac_delim
21674 CXXFLAGS!$CXXFLAGS$ac_delim
21675 ac_ct_CXX!$ac_ct_CXX$ac_delim
21676 NM!$NM$ac_delim
21677 ifGNUmake!$ifGNUmake$ac_delim
21678 LN_S!$LN_S$ac_delim
21679 CMP!$CMP$ac_delim
21680 CP!$CP$ac_delim
21681 DATE!$DATE$ac_delim
21682 FIND!$FIND$ac_delim
21683 MKDIR!$MKDIR$ac_delim
21684 MV!$MV$ac_delim
21685 RANLIB!$RANLIB$ac_delim
21686 AR!$AR$ac_delim
21687 RM!$RM$ac_delim
21688 SED!$SED$ac_delim
21689 TAR!$TAR$ac_delim
21690 BINPWD!$BINPWD$ac_delim
21691 GRAPHVIZ!$GRAPHVIZ$ac_delim
21692 DOT!$DOT$ac_delim
21693 FDP!$FDP$ac_delim
21694 NEATO!$NEATO$ac_delim
21695 TWOPI!$TWOPI$ac_delim
21696 CIRCO!$CIRCO$ac_delim
21697 GV!$GV$ac_delim
21698 DOTTY!$DOTTY$ac_delim
21699 XDOT_PY!$XDOT_PY$ac_delim
21700 PERL!$PERL$ac_delim
21701 HAVE_PERL!$HAVE_PERL$ac_delim
21702 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21703 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21704 INSTALL_DATA!$INSTALL_DATA$ac_delim
21705 BZIP2!$BZIP2$ac_delim
21706 CAT!$CAT$ac_delim
21707 DOXYGEN!$DOXYGEN$ac_delim
21708 GROFF!$GROFF$ac_delim
21709 GZIP!$GZIP$ac_delim
21710 POD2HTML!$POD2HTML$ac_delim
21711 POD2MAN!$POD2MAN$ac_delim
21712 PDFROFF!$PDFROFF$ac_delim
21713 RUNTEST!$RUNTEST$ac_delim
21714 TCLSH!$TCLSH$ac_delim
21715 ZIP!$ZIP$ac_delim
21716 OCAMLC!$OCAMLC$ac_delim
21717 OCAMLOPT!$OCAMLOPT$ac_delim
21718 OCAMLDEP!$OCAMLDEP$ac_delim
21719 OCAMLDOC!$OCAMLDOC$ac_delim
21720 GAS!$GAS$ac_delim
21721 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21722 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21723 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21724 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21725 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21726 LIBADD_DL!$LIBADD_DL$ac_delim
21727 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21728 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21729 LLVMGCC!$LLVMGCC$ac_delim
21730 LLVMGXX!$LLVMGXX$ac_delim
21731 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
21732 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21733 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21734 USE_UDIS86!$USE_UDIS86$ac_delim
21735 USE_OPROFILE!$USE_OPROFILE$ac_delim
21736 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21737 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21738 MMAP_FILE!$MMAP_FILE$ac_delim
21739 LLVMCC1!$LLVMCC1$ac_delim
21740 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21741 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
21742 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21743 SHLIBEXT!$SHLIBEXT$ac_delim
21744 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21745 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21746 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21747 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21748 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21749 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21750 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21751 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21752 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21753 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21754 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21755 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21756 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21757 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21758 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21759 RPATH!$RPATH$ac_delim
21760 RDYNAMIC!$RDYNAMIC$ac_delim
21761 LIBOBJS!$LIBOBJS$ac_delim
21762 LTLIBOBJS!$LTLIBOBJS$ac_delim
21763 _ACEOF
21764
21765   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
21766     break
21767   elif $ac_last_try; then
21768     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21769 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21770    { (exit 1); exit 1; }; }
21771   else
21772     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21773   fi
21774 done
21775
21776 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21777 if test -n "$ac_eof"; then
21778   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21779   ac_eof=`expr $ac_eof + 1`
21780 fi
21781
21782 cat >>$CONFIG_STATUS <<_ACEOF
21783 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21784 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21785 _ACEOF
21786 sed '
21787 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21788 s/^/s,@/; s/!/@,|#_!!_#|/
21789 :n
21790 t n
21791 s/'"$ac_delim"'$/,g/; t
21792 s/$/\\/; p
21793 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21794 ' >>$CONFIG_STATUS <conf$$subs.sed
21795 rm -f conf$$subs.sed
21796 cat >>$CONFIG_STATUS <<_ACEOF
21797 :end
21798 s/|#_!!_#|//g
21799 CEOF$ac_eof
21800 _ACEOF
21801
21802
21803 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21804 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21805 # trailing colons and then remove the whole line if VPATH becomes empty
21806 # (actually we leave an empty line to preserve line numbers).
21807 if test "x$srcdir" = x.; then
21808   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21809 s/:*\$(srcdir):*/:/
21810 s/:*\${srcdir}:*/:/
21811 s/:*@srcdir@:*/:/
21812 s/^\([^=]*=[     ]*\):*/\1/
21813 s/:*$//
21814 s/^[^=]*=[       ]*$//
21815 }'
21816 fi
21817
21818 cat >>$CONFIG_STATUS <<\_ACEOF
21819 fi # test -n "$CONFIG_FILES"
21820
21821
21822 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
21823 do
21824   case $ac_tag in
21825   :[FHLC]) ac_mode=$ac_tag; continue;;
21826   esac
21827   case $ac_mode$ac_tag in
21828   :[FHL]*:*);;
21829   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21830 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21831    { (exit 1); exit 1; }; };;
21832   :[FH]-) ac_tag=-:-;;
21833   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21834   esac
21835   ac_save_IFS=$IFS
21836   IFS=:
21837   set x $ac_tag
21838   IFS=$ac_save_IFS
21839   shift
21840   ac_file=$1
21841   shift
21842
21843   case $ac_mode in
21844   :L) ac_source=$1;;
21845   :[FH])
21846     ac_file_inputs=
21847     for ac_f
21848     do
21849       case $ac_f in
21850       -) ac_f="$tmp/stdin";;
21851       *) # Look for the file first in the build tree, then in the source tree
21852          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21853          # because $ac_f cannot contain `:'.
21854          test -f "$ac_f" ||
21855            case $ac_f in
21856            [\\/$]*) false;;
21857            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21858            esac ||
21859            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21860 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21861    { (exit 1); exit 1; }; };;
21862       esac
21863       ac_file_inputs="$ac_file_inputs $ac_f"
21864     done
21865
21866     # Let's still pretend it is `configure' which instantiates (i.e., don't
21867     # use $as_me), people would be surprised to read:
21868     #    /* config.h.  Generated by config.status.  */
21869     configure_input="Generated from "`IFS=:
21870           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21871     if test x"$ac_file" != x-; then
21872       configure_input="$ac_file.  $configure_input"
21873       { echo "$as_me:$LINENO: creating $ac_file" >&5
21874 echo "$as_me: creating $ac_file" >&6;}
21875     fi
21876
21877     case $ac_tag in
21878     *:-:* | *:-) cat >"$tmp/stdin";;
21879     esac
21880     ;;
21881   esac
21882
21883   ac_dir=`$as_dirname -- "$ac_file" ||
21884 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21885          X"$ac_file" : 'X\(//\)[^/]' \| \
21886          X"$ac_file" : 'X\(//\)$' \| \
21887          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21888 echo X"$ac_file" |
21889     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21890             s//\1/
21891             q
21892           }
21893           /^X\(\/\/\)[^/].*/{
21894             s//\1/
21895             q
21896           }
21897           /^X\(\/\/\)$/{
21898             s//\1/
21899             q
21900           }
21901           /^X\(\/\).*/{
21902             s//\1/
21903             q
21904           }
21905           s/.*/./; q'`
21906   { as_dir="$ac_dir"
21907   case $as_dir in #(
21908   -*) as_dir=./$as_dir;;
21909   esac
21910   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21911     as_dirs=
21912     while :; do
21913       case $as_dir in #(
21914       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21915       *) as_qdir=$as_dir;;
21916       esac
21917       as_dirs="'$as_qdir' $as_dirs"
21918       as_dir=`$as_dirname -- "$as_dir" ||
21919 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21920          X"$as_dir" : 'X\(//\)[^/]' \| \
21921          X"$as_dir" : 'X\(//\)$' \| \
21922          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21923 echo X"$as_dir" |
21924     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21925             s//\1/
21926             q
21927           }
21928           /^X\(\/\/\)[^/].*/{
21929             s//\1/
21930             q
21931           }
21932           /^X\(\/\/\)$/{
21933             s//\1/
21934             q
21935           }
21936           /^X\(\/\).*/{
21937             s//\1/
21938             q
21939           }
21940           s/.*/./; q'`
21941       test -d "$as_dir" && break
21942     done
21943     test -z "$as_dirs" || eval "mkdir $as_dirs"
21944   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21945 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21946    { (exit 1); exit 1; }; }; }
21947   ac_builddir=.
21948
21949 case "$ac_dir" in
21950 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21951 *)
21952   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21953   # A ".." for each directory in $ac_dir_suffix.
21954   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21955   case $ac_top_builddir_sub in
21956   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21957   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21958   esac ;;
21959 esac
21960 ac_abs_top_builddir=$ac_pwd
21961 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21962 # for backward compatibility:
21963 ac_top_builddir=$ac_top_build_prefix
21964
21965 case $srcdir in
21966   .)  # We are building in place.
21967     ac_srcdir=.
21968     ac_top_srcdir=$ac_top_builddir_sub
21969     ac_abs_top_srcdir=$ac_pwd ;;
21970   [\\/]* | ?:[\\/]* )  # Absolute name.
21971     ac_srcdir=$srcdir$ac_dir_suffix;
21972     ac_top_srcdir=$srcdir
21973     ac_abs_top_srcdir=$srcdir ;;
21974   *) # Relative name.
21975     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21976     ac_top_srcdir=$ac_top_build_prefix$srcdir
21977     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21978 esac
21979 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21980
21981
21982   case $ac_mode in
21983   :F)
21984   #
21985   # CONFIG_FILE
21986   #
21987
21988   case $INSTALL in
21989   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
21990   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
21991   esac
21992 _ACEOF
21993
21994 cat >>$CONFIG_STATUS <<\_ACEOF
21995 # If the template does not know about datarootdir, expand it.
21996 # FIXME: This hack should be removed a few years after 2.60.
21997 ac_datarootdir_hack=; ac_datarootdir_seen=
21998
21999 case `sed -n '/datarootdir/ {
22000   p
22001   q
22002 }
22003 /@datadir@/p
22004 /@docdir@/p
22005 /@infodir@/p
22006 /@localedir@/p
22007 /@mandir@/p
22008 ' $ac_file_inputs` in
22009 *datarootdir*) ac_datarootdir_seen=yes;;
22010 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22011   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22012 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22013 _ACEOF
22014 cat >>$CONFIG_STATUS <<_ACEOF
22015   ac_datarootdir_hack='
22016   s&@datadir@&$datadir&g
22017   s&@docdir@&$docdir&g
22018   s&@infodir@&$infodir&g
22019   s&@localedir@&$localedir&g
22020   s&@mandir@&$mandir&g
22021     s&\\\${datarootdir}&$datarootdir&g' ;;
22022 esac
22023 _ACEOF
22024
22025 # Neutralize VPATH when `$srcdir' = `.'.
22026 # Shell code in configure.ac might set extrasub.
22027 # FIXME: do we really want to maintain this feature?
22028 cat >>$CONFIG_STATUS <<_ACEOF
22029   sed "$ac_vpsub
22030 $extrasub
22031 _ACEOF
22032 cat >>$CONFIG_STATUS <<\_ACEOF
22033 :t
22034 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22035 s&@configure_input@&$configure_input&;t t
22036 s&@top_builddir@&$ac_top_builddir_sub&;t t
22037 s&@srcdir@&$ac_srcdir&;t t
22038 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22039 s&@top_srcdir@&$ac_top_srcdir&;t t
22040 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22041 s&@builddir@&$ac_builddir&;t t
22042 s&@abs_builddir@&$ac_abs_builddir&;t t
22043 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22044 s&@INSTALL@&$ac_INSTALL&;t t
22045 $ac_datarootdir_hack
22046 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22047
22048 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22049   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22050   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22051   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22052 which seems to be undefined.  Please make sure it is defined." >&5
22053 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22054 which seems to be undefined.  Please make sure it is defined." >&2;}
22055
22056   rm -f "$tmp/stdin"
22057   case $ac_file in
22058   -) cat "$tmp/out"; rm -f "$tmp/out";;
22059   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22060   esac
22061  ;;
22062   :H)
22063   #
22064   # CONFIG_HEADER
22065   #
22066 _ACEOF
22067
22068 # Transform confdefs.h into a sed script `conftest.defines', that
22069 # substitutes the proper values into config.h.in to produce config.h.
22070 rm -f conftest.defines conftest.tail
22071 # First, append a space to every undef/define line, to ease matching.
22072 echo 's/$/ /' >conftest.defines
22073 # Then, protect against being on the right side of a sed subst, or in
22074 # an unquoted here document, in config.status.  If some macros were
22075 # called several times there might be several #defines for the same
22076 # symbol, which is useless.  But do not sort them, since the last
22077 # AC_DEFINE must be honored.
22078 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22079 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22080 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22081 # PARAMS is the parameter list in the macro definition--in most cases, it's
22082 # just an empty string.
22083 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22084 ac_dB='\\)[      (].*,\\1define\\2'
22085 ac_dC=' '
22086 ac_dD=' ,'
22087
22088 uniq confdefs.h |
22089   sed -n '
22090         t rset
22091         :rset
22092         s/^[     ]*#[    ]*define[       ][      ]*//
22093         t ok
22094         d
22095         :ok
22096         s/[\\&,]/\\&/g
22097         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22098         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22099   ' >>conftest.defines
22100
22101 # Remove the space that was appended to ease matching.
22102 # Then replace #undef with comments.  This is necessary, for
22103 # example, in the case of _POSIX_SOURCE, which is predefined and required
22104 # on some systems where configure will not decide to define it.
22105 # (The regexp can be short, since the line contains either #define or #undef.)
22106 echo 's/ $//
22107 s,^[     #]*u.*,/* & */,' >>conftest.defines
22108
22109 # Break up conftest.defines:
22110 ac_max_sed_lines=50
22111
22112 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22113 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22114 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22115 # et cetera.
22116 ac_in='$ac_file_inputs'
22117 ac_out='"$tmp/out1"'
22118 ac_nxt='"$tmp/out2"'
22119
22120 while :
22121 do
22122   # Write a here document:
22123     cat >>$CONFIG_STATUS <<_ACEOF
22124     # First, check the format of the line:
22125     cat >"\$tmp/defines.sed" <<\\CEOF
22126 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22127 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22128 b
22129 :def
22130 _ACEOF
22131   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22132   echo 'CEOF
22133     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22134   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22135   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22136   grep . conftest.tail >/dev/null || break
22137   rm -f conftest.defines
22138   mv conftest.tail conftest.defines
22139 done
22140 rm -f conftest.defines conftest.tail
22141
22142 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22143 cat >>$CONFIG_STATUS <<\_ACEOF
22144   if test x"$ac_file" != x-; then
22145     echo "/* $configure_input  */" >"$tmp/config.h"
22146     cat "$ac_result" >>"$tmp/config.h"
22147     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22148       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22149 echo "$as_me: $ac_file is unchanged" >&6;}
22150     else
22151       rm -f $ac_file
22152       mv "$tmp/config.h" $ac_file
22153     fi
22154   else
22155     echo "/* $configure_input  */"
22156     cat "$ac_result"
22157   fi
22158   rm -f "$tmp/out12"
22159  ;;
22160
22161   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22162 echo "$as_me: executing $ac_file commands" >&6;}
22163  ;;
22164   esac
22165
22166
22167   case $ac_file$ac_mode in
22168     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22169    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22170     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22171    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22172     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22173    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22174     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22175    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22176     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22177    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22178     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22179    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22180     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22181    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22182     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22183    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22184     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22185    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22186     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22187    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22188     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22189    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22190     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22191    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22192     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22193    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22194
22195   esac
22196 done # for ac_tag
22197
22198
22199 { (exit 0); exit 0; }
22200 _ACEOF
22201 chmod +x $CONFIG_STATUS
22202 ac_clean_files=$ac_clean_files_save
22203
22204
22205 # configure is writing to config.log, and then calls config.status.
22206 # config.status does its own redirection, appending to config.log.
22207 # Unfortunately, on DOS this fails, as config.log is still kept open
22208 # by configure, so config.status won't be able to write to it; its
22209 # output is simply discarded.  So we exec the FD to /dev/null,
22210 # effectively closing config.log, so it can be properly (re)opened and
22211 # appended to by config.status.  When coming back to configure, we
22212 # need to make the FD available again.
22213 if test "$no_create" != yes; then
22214   ac_cs_success=:
22215   ac_config_status_args=
22216   test "$silent" = yes &&
22217     ac_config_status_args="$ac_config_status_args --quiet"
22218   exec 5>/dev/null
22219   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22220   exec 5>>config.log
22221   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22222   # would make configure fail if this is the last instruction.
22223   $ac_cs_success || { (exit 1); exit 1; }
22224 fi
22225
22226 #
22227 # CONFIG_SUBDIRS section.
22228 #
22229 if test "$no_recursion" != yes; then
22230
22231   # Remove --cache-file and --srcdir arguments so they do not pile up.
22232   ac_sub_configure_args=
22233   ac_prev=
22234   eval "set x $ac_configure_args"
22235   shift
22236   for ac_arg
22237   do
22238     if test -n "$ac_prev"; then
22239       ac_prev=
22240       continue
22241     fi
22242     case $ac_arg in
22243     -cache-file | --cache-file | --cache-fil | --cache-fi \
22244     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22245       ac_prev=cache_file ;;
22246     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22247     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22248     | --c=*)
22249       ;;
22250     --config-cache | -C)
22251       ;;
22252     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22253       ac_prev=srcdir ;;
22254     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22255       ;;
22256     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22257       ac_prev=prefix ;;
22258     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22259       ;;
22260     *)
22261       case $ac_arg in
22262       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22263       esac
22264       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22265     esac
22266   done
22267
22268   # Always prepend --prefix to ensure using the same prefix
22269   # in subdir configurations.
22270   ac_arg="--prefix=$prefix"
22271   case $ac_arg in
22272   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22273   esac
22274   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22275
22276   ac_popdir=`pwd`
22277   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22278
22279     # Do not complain, so a configure script can configure whichever
22280     # parts of a large source tree are present.
22281     test -d "$srcdir/$ac_dir" || continue
22282
22283     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22284     echo "$as_me:$LINENO: $ac_msg" >&5
22285     echo "$ac_msg" >&6
22286     { as_dir="$ac_dir"
22287   case $as_dir in #(
22288   -*) as_dir=./$as_dir;;
22289   esac
22290   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22291     as_dirs=
22292     while :; do
22293       case $as_dir in #(
22294       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22295       *) as_qdir=$as_dir;;
22296       esac
22297       as_dirs="'$as_qdir' $as_dirs"
22298       as_dir=`$as_dirname -- "$as_dir" ||
22299 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22300          X"$as_dir" : 'X\(//\)[^/]' \| \
22301          X"$as_dir" : 'X\(//\)$' \| \
22302          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22303 echo X"$as_dir" |
22304     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22305             s//\1/
22306             q
22307           }
22308           /^X\(\/\/\)[^/].*/{
22309             s//\1/
22310             q
22311           }
22312           /^X\(\/\/\)$/{
22313             s//\1/
22314             q
22315           }
22316           /^X\(\/\).*/{
22317             s//\1/
22318             q
22319           }
22320           s/.*/./; q'`
22321       test -d "$as_dir" && break
22322     done
22323     test -z "$as_dirs" || eval "mkdir $as_dirs"
22324   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22325 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22326    { (exit 1); exit 1; }; }; }
22327     ac_builddir=.
22328
22329 case "$ac_dir" in
22330 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22331 *)
22332   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22333   # A ".." for each directory in $ac_dir_suffix.
22334   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22335   case $ac_top_builddir_sub in
22336   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22337   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22338   esac ;;
22339 esac
22340 ac_abs_top_builddir=$ac_pwd
22341 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22342 # for backward compatibility:
22343 ac_top_builddir=$ac_top_build_prefix
22344
22345 case $srcdir in
22346   .)  # We are building in place.
22347     ac_srcdir=.
22348     ac_top_srcdir=$ac_top_builddir_sub
22349     ac_abs_top_srcdir=$ac_pwd ;;
22350   [\\/]* | ?:[\\/]* )  # Absolute name.
22351     ac_srcdir=$srcdir$ac_dir_suffix;
22352     ac_top_srcdir=$srcdir
22353     ac_abs_top_srcdir=$srcdir ;;
22354   *) # Relative name.
22355     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22356     ac_top_srcdir=$ac_top_build_prefix$srcdir
22357     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22358 esac
22359 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22360
22361
22362     cd "$ac_dir"
22363
22364     # Check for guested configure; otherwise get Cygnus style configure.
22365     if test -f "$ac_srcdir/configure.gnu"; then
22366       ac_sub_configure=$ac_srcdir/configure.gnu
22367     elif test -f "$ac_srcdir/configure"; then
22368       ac_sub_configure=$ac_srcdir/configure
22369     elif test -f "$ac_srcdir/configure.in"; then
22370       # This should be Cygnus configure.
22371       ac_sub_configure=$ac_aux_dir/configure
22372     else
22373       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22374 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22375       ac_sub_configure=
22376     fi
22377
22378     # The recursion is here.
22379     if test -n "$ac_sub_configure"; then
22380       # Make the cache file name correct relative to the subdirectory.
22381       case $cache_file in
22382       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22383       *) # Relative name.
22384         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22385       esac
22386
22387       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22388 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22389       # The eval makes quoting arguments work.
22390       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22391            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22392         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22393 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22394    { (exit 1); exit 1; }; }
22395     fi
22396
22397     cd "$ac_popdir"
22398   done
22399 fi
22400