First step to allowing the resource directory of Clang to be adjusted for
[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-clang-resource-dir
1446                           Relative directory from the Clang binary for
1447                           resource files
1448   --with-c-include-dirs   Colon separated list of directories clang will
1449                           search for headers
1450   --with-cxx-include-root Directory with the libstdc++ headers.
1451   --with-cxx-include-arch Architecture of the libstdc++ headers.
1452   --with-cxx-include-32bit-dir
1453                           32 bit multilib dir.
1454   --with-cxx-include-64bit-dir
1455                           64 bit multilib directory.
1456   --with-binutils-include Specify path to binutils/include/ containing
1457                           plugin-api.h file for gold plugin.
1458   --with-tclinclude       directory where tcl headers are
1459   --with-llvmcc=<name>    Choose the LLVM capable compiler to use (llvm-gcc,
1460                           clang, or none; default=check)
1461   --with-udis86=<path>    Use udis86 external x86 disassembler library
1462   --with-oprofile=<prefix>
1463                           Tell OProfile >= 0.9.4 how to symbolize JIT output
1464
1465 Some influential environment variables:
1466   CC          C compiler command
1467   CFLAGS      C compiler flags
1468   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1469               nonstandard directory <lib dir>
1470   CPPFLAGS    C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1471               you have headers in a nonstandard directory <include dir>
1472   CPP         C preprocessor
1473   CXX         C++ compiler command
1474   CXXFLAGS    C++ compiler flags
1475
1476 Use these variables to override the choices made by `configure' or to help
1477 it to find libraries and programs with nonstandard names/locations.
1478
1479 Report bugs to <llvmbugs@cs.uiuc.edu>.
1480 _ACEOF
1481 ac_status=$?
1482 fi
1483
1484 if test "$ac_init_help" = "recursive"; then
1485   # If there are subdirs, report their specific --help.
1486   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1487     test -d "$ac_dir" || continue
1488     ac_builddir=.
1489
1490 case "$ac_dir" in
1491 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1492 *)
1493   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1494   # A ".." for each directory in $ac_dir_suffix.
1495   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1496   case $ac_top_builddir_sub in
1497   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1498   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1499   esac ;;
1500 esac
1501 ac_abs_top_builddir=$ac_pwd
1502 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1503 # for backward compatibility:
1504 ac_top_builddir=$ac_top_build_prefix
1505
1506 case $srcdir in
1507   .)  # We are building in place.
1508     ac_srcdir=.
1509     ac_top_srcdir=$ac_top_builddir_sub
1510     ac_abs_top_srcdir=$ac_pwd ;;
1511   [\\/]* | ?:[\\/]* )  # Absolute name.
1512     ac_srcdir=$srcdir$ac_dir_suffix;
1513     ac_top_srcdir=$srcdir
1514     ac_abs_top_srcdir=$srcdir ;;
1515   *) # Relative name.
1516     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1517     ac_top_srcdir=$ac_top_build_prefix$srcdir
1518     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1519 esac
1520 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1521
1522     cd "$ac_dir" || { ac_status=$?; continue; }
1523     # Check for guested configure.
1524     if test -f "$ac_srcdir/configure.gnu"; then
1525       echo &&
1526       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1527     elif test -f "$ac_srcdir/configure"; then
1528       echo &&
1529       $SHELL "$ac_srcdir/configure" --help=recursive
1530     else
1531       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1532     fi || ac_status=$?
1533     cd "$ac_pwd" || { ac_status=$?; break; }
1534   done
1535 fi
1536
1537 test -n "$ac_init_help" && exit $ac_status
1538 if $ac_init_version; then
1539   cat <<\_ACEOF
1540 llvm configure 2.9svn
1541 generated by GNU Autoconf 2.60
1542
1543 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1544 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1545 This configure script is free software; the Free Software Foundation
1546 gives unlimited permission to copy, distribute and modify it.
1547
1548 Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign.
1549 _ACEOF
1550   exit
1551 fi
1552 cat >config.log <<_ACEOF
1553 This file contains any messages produced by compilers while
1554 running configure, to aid debugging if configure makes a mistake.
1555
1556 It was created by llvm $as_me 2.9svn, which was
1557 generated by GNU Autoconf 2.60.  Invocation command line was
1558
1559   $ $0 $@
1560
1561 _ACEOF
1562 exec 5>>config.log
1563 {
1564 cat <<_ASUNAME
1565 ## --------- ##
1566 ## Platform. ##
1567 ## --------- ##
1568
1569 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1570 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1571 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1572 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1573 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1574
1575 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1576 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1577
1578 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1579 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1580 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1581 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1582 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1583 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1584 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1585
1586 _ASUNAME
1587
1588 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1589 for as_dir in $PATH
1590 do
1591   IFS=$as_save_IFS
1592   test -z "$as_dir" && as_dir=.
1593   echo "PATH: $as_dir"
1594 done
1595 IFS=$as_save_IFS
1596
1597 } >&5
1598
1599 cat >&5 <<_ACEOF
1600
1601
1602 ## ----------- ##
1603 ## Core tests. ##
1604 ## ----------- ##
1605
1606 _ACEOF
1607
1608
1609 # Keep a trace of the command line.
1610 # Strip out --no-create and --no-recursion so they do not pile up.
1611 # Strip out --silent because we don't want to record it for future runs.
1612 # Also quote any args containing shell meta-characters.
1613 # Make two passes to allow for proper duplicate-argument suppression.
1614 ac_configure_args=
1615 ac_configure_args0=
1616 ac_configure_args1=
1617 ac_must_keep_next=false
1618 for ac_pass in 1 2
1619 do
1620   for ac_arg
1621   do
1622     case $ac_arg in
1623     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1624     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1625     | -silent | --silent | --silen | --sile | --sil)
1626       continue ;;
1627     *\'*)
1628       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1629     esac
1630     case $ac_pass in
1631     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1632     2)
1633       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1634       if test $ac_must_keep_next = true; then
1635         ac_must_keep_next=false # Got value, back to normal.
1636       else
1637         case $ac_arg in
1638           *=* | --config-cache | -C | -disable-* | --disable-* \
1639           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1640           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1641           | -with-* | --with-* | -without-* | --without-* | --x)
1642             case "$ac_configure_args0 " in
1643               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1644             esac
1645             ;;
1646           -* ) ac_must_keep_next=true ;;
1647         esac
1648       fi
1649       ac_configure_args="$ac_configure_args '$ac_arg'"
1650       ;;
1651     esac
1652   done
1653 done
1654 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1655 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1656
1657 # When interrupted or exit'd, cleanup temporary files, and complete
1658 # config.log.  We remove comments because anyway the quotes in there
1659 # would cause problems or look ugly.
1660 # WARNING: Use '\'' to represent an apostrophe within the trap.
1661 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1662 trap 'exit_status=$?
1663   # Save into config.log some information that might help in debugging.
1664   {
1665     echo
1666
1667     cat <<\_ASBOX
1668 ## ---------------- ##
1669 ## Cache variables. ##
1670 ## ---------------- ##
1671 _ASBOX
1672     echo
1673     # The following way of writing the cache mishandles newlines in values,
1674 (
1675   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1676     eval ac_val=\$$ac_var
1677     case $ac_val in #(
1678     *${as_nl}*)
1679       case $ac_var in #(
1680       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1681 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1682       esac
1683       case $ac_var in #(
1684       _ | IFS | as_nl) ;; #(
1685       *) $as_unset $ac_var ;;
1686       esac ;;
1687     esac
1688   done
1689   (set) 2>&1 |
1690     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1691     *${as_nl}ac_space=\ *)
1692       sed -n \
1693         "s/'\''/'\''\\\\'\'''\''/g;
1694           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1695       ;; #(
1696     *)
1697       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1698       ;;
1699     esac |
1700     sort
1701 )
1702     echo
1703
1704     cat <<\_ASBOX
1705 ## ----------------- ##
1706 ## Output variables. ##
1707 ## ----------------- ##
1708 _ASBOX
1709     echo
1710     for ac_var in $ac_subst_vars
1711     do
1712       eval ac_val=\$$ac_var
1713       case $ac_val in
1714       *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1715       esac
1716       echo "$ac_var='\''$ac_val'\''"
1717     done | sort
1718     echo
1719
1720     if test -n "$ac_subst_files"; then
1721       cat <<\_ASBOX
1722 ## ------------------- ##
1723 ## File substitutions. ##
1724 ## ------------------- ##
1725 _ASBOX
1726       echo
1727       for ac_var in $ac_subst_files
1728       do
1729         eval ac_val=\$$ac_var
1730         case $ac_val in
1731         *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1732         esac
1733         echo "$ac_var='\''$ac_val'\''"
1734       done | sort
1735       echo
1736     fi
1737
1738     if test -s confdefs.h; then
1739       cat <<\_ASBOX
1740 ## ----------- ##
1741 ## confdefs.h. ##
1742 ## ----------- ##
1743 _ASBOX
1744       echo
1745       cat confdefs.h
1746       echo
1747     fi
1748     test "$ac_signal" != 0 &&
1749       echo "$as_me: caught signal $ac_signal"
1750     echo "$as_me: exit $exit_status"
1751   } >&5
1752   rm -f core *.core core.conftest.* &&
1753     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1754     exit $exit_status
1755 ' 0
1756 for ac_signal in 1 2 13 15; do
1757   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1758 done
1759 ac_signal=0
1760
1761 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1762 rm -f -r conftest* confdefs.h
1763
1764 # Predefined preprocessor variables.
1765
1766 cat >>confdefs.h <<_ACEOF
1767 #define PACKAGE_NAME "$PACKAGE_NAME"
1768 _ACEOF
1769
1770
1771 cat >>confdefs.h <<_ACEOF
1772 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1773 _ACEOF
1774
1775
1776 cat >>confdefs.h <<_ACEOF
1777 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1778 _ACEOF
1779
1780
1781 cat >>confdefs.h <<_ACEOF
1782 #define PACKAGE_STRING "$PACKAGE_STRING"
1783 _ACEOF
1784
1785
1786 cat >>confdefs.h <<_ACEOF
1787 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1788 _ACEOF
1789
1790
1791 # Let the site file select an alternate cache file if it wants to.
1792 # Prefer explicitly selected file to automatically selected ones.
1793 if test -n "$CONFIG_SITE"; then
1794   set x "$CONFIG_SITE"
1795 elif test "x$prefix" != xNONE; then
1796   set x "$prefix/share/config.site" "$prefix/etc/config.site"
1797 else
1798   set x "$ac_default_prefix/share/config.site" \
1799         "$ac_default_prefix/etc/config.site"
1800 fi
1801 shift
1802 for ac_site_file
1803 do
1804   if test -r "$ac_site_file"; then
1805     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1806 echo "$as_me: loading site script $ac_site_file" >&6;}
1807     sed 's/^/| /' "$ac_site_file" >&5
1808     . "$ac_site_file"
1809   fi
1810 done
1811
1812 if test -r "$cache_file"; then
1813   # Some versions of bash will fail to source /dev/null (special
1814   # files actually), so we avoid doing that.
1815   if test -f "$cache_file"; then
1816     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1817 echo "$as_me: loading cache $cache_file" >&6;}
1818     case $cache_file in
1819       [\\/]* | ?:[\\/]* ) . "$cache_file";;
1820       *)                      . "./$cache_file";;
1821     esac
1822   fi
1823 else
1824   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1825 echo "$as_me: creating cache $cache_file" >&6;}
1826   >$cache_file
1827 fi
1828
1829 # Check that the precious variables saved in the cache have kept the same
1830 # value.
1831 ac_cache_corrupted=false
1832 for ac_var in $ac_precious_vars; do
1833   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1834   eval ac_new_set=\$ac_env_${ac_var}_set
1835   eval ac_old_val=\$ac_cv_env_${ac_var}_value
1836   eval ac_new_val=\$ac_env_${ac_var}_value
1837   case $ac_old_set,$ac_new_set in
1838     set,)
1839       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1840 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1841       ac_cache_corrupted=: ;;
1842     ,set)
1843       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1844 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1845       ac_cache_corrupted=: ;;
1846     ,);;
1847     *)
1848       if test "x$ac_old_val" != "x$ac_new_val"; then
1849         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1850 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1851         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1852 echo "$as_me:   former value:  $ac_old_val" >&2;}
1853         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1854 echo "$as_me:   current value: $ac_new_val" >&2;}
1855         ac_cache_corrupted=:
1856       fi;;
1857   esac
1858   # Pass precious variables to config.status.
1859   if test "$ac_new_set" = set; then
1860     case $ac_new_val in
1861     *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1862     *) ac_arg=$ac_var=$ac_new_val ;;
1863     esac
1864     case " $ac_configure_args " in
1865       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1866       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1867     esac
1868   fi
1869 done
1870 if $ac_cache_corrupted; then
1871   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1872 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1873   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1874 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1875    { (exit 1); exit 1; }; }
1876 fi
1877
1878
1879
1880
1881
1882
1883
1884
1885
1886
1887
1888
1889
1890
1891
1892
1893
1894
1895
1896
1897
1898
1899
1900
1901
1902 ac_ext=c
1903 ac_cpp='$CPP $CPPFLAGS'
1904 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1905 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1906 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1907
1908
1909
1910 LLVM_COPYRIGHT="Copyright (c) 2003-2010 University of Illinois at Urbana-Champaign."
1911
1912
1913
1914
1915
1916
1917
1918 ac_aux_dir=
1919 for ac_dir in autoconf "$srcdir"/autoconf; do
1920   if test -f "$ac_dir/install-sh"; then
1921     ac_aux_dir=$ac_dir
1922     ac_install_sh="$ac_aux_dir/install-sh -c"
1923     break
1924   elif test -f "$ac_dir/install.sh"; then
1925     ac_aux_dir=$ac_dir
1926     ac_install_sh="$ac_aux_dir/install.sh -c"
1927     break
1928   elif test -f "$ac_dir/shtool"; then
1929     ac_aux_dir=$ac_dir
1930     ac_install_sh="$ac_aux_dir/shtool install -c"
1931     break
1932   fi
1933 done
1934 if test -z "$ac_aux_dir"; then
1935   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&5
1936 echo "$as_me: error: cannot find install-sh or install.sh in autoconf \"$srcdir\"/autoconf" >&2;}
1937    { (exit 1); exit 1; }; }
1938 fi
1939
1940 # These three variables are undocumented and unsupported,
1941 # and are intended to be withdrawn in a future Autoconf release.
1942 # They can cause serious problems if a builder's source tree is in a directory
1943 # whose full name contains unusual characters.
1944 ac_config_guess="$SHELL $ac_aux_dir/config.guess"  # Please don't use this var.
1945 ac_config_sub="$SHELL $ac_aux_dir/config.sub"  # Please don't use this var.
1946 ac_configure="$SHELL $ac_aux_dir/configure"  # Please don't use this var.
1947
1948
1949
1950 if test ${srcdir} != "." ; then
1951   if test -f ${srcdir}/include/llvm/Config/config.h ; then
1952     { { echo "$as_me:$LINENO: error: Already configured in ${srcdir}" >&5
1953 echo "$as_me: error: Already configured in ${srcdir}" >&2;}
1954    { (exit 1); exit 1; }; }
1955   fi
1956 fi
1957
1958
1959
1960 if test -d ${srcdir}/projects/llvm-gcc ; then
1961   subdirs="$subdirs projects/llvm-gcc"
1962
1963 fi
1964
1965 if test -d ${srcdir}/projects/test-suite ; then
1966   subdirs="$subdirs projects/test-suite"
1967
1968 fi
1969
1970 if test -d ${srcdir}/projects/llvm-test ; then
1971   subdirs="$subdirs projects/llvm-test"
1972
1973 fi
1974
1975 if test -d ${srcdir}/projects/poolalloc ; then
1976   subdirs="$subdirs projects/poolalloc"
1977
1978 fi
1979
1980 if test -d ${srcdir}/projects/llvm-poolalloc ; then
1981   subdirs="$subdirs projects/llvm-poolalloc"
1982
1983 fi
1984
1985 for i in `ls ${srcdir}/projects`
1986 do
1987   if test -d ${srcdir}/projects/${i} ; then
1988     case ${i} in
1989       sample)       subdirs="$subdirs projects/sample"
1990     ;;
1991       privbracket)  subdirs="$subdirs projects/privbracket"
1992  ;;
1993       llvm-stacker) subdirs="$subdirs projects/llvm-stacker"
1994  ;;
1995       llvm-reopt)   subdirs="$subdirs projects/llvm-reopt"
1996 ;;
1997       llvm-java)    subdirs="$subdirs projects/llvm-java"
1998  ;;
1999       llvm-tv)      subdirs="$subdirs projects/llvm-tv"
2000    ;;
2001       safecode)     subdirs="$subdirs projects/safecode"
2002  ;;
2003       llvm-kernel)  subdirs="$subdirs projects/llvm-kernel"
2004  ;;
2005       llvm-gcc)       ;;
2006       test-suite)     ;;
2007       llvm-test)      ;;
2008       poolalloc)      ;;
2009       llvm-poolalloc) ;;
2010       *)
2011         { echo "$as_me:$LINENO: WARNING: Unknown project (${i}) won't be configured automatically" >&5
2012 echo "$as_me: WARNING: Unknown project (${i}) won't be configured automatically" >&2;}
2013         ;;
2014     esac
2015   fi
2016 done
2017
2018
2019 # Make sure we can run config.sub.
2020 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2021   { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
2022 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
2023    { (exit 1); exit 1; }; }
2024
2025 { echo "$as_me:$LINENO: checking build system type" >&5
2026 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
2027 if test "${ac_cv_build+set}" = set; then
2028   echo $ECHO_N "(cached) $ECHO_C" >&6
2029 else
2030   ac_build_alias=$build_alias
2031 test "x$ac_build_alias" = x &&
2032   ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2033 test "x$ac_build_alias" = x &&
2034   { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
2035 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
2036    { (exit 1); exit 1; }; }
2037 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2038   { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
2039 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
2040    { (exit 1); exit 1; }; }
2041
2042 fi
2043 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
2044 echo "${ECHO_T}$ac_cv_build" >&6; }
2045 case $ac_cv_build in
2046 *-*-*) ;;
2047 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
2048 echo "$as_me: error: invalid value of canonical build" >&2;}
2049    { (exit 1); exit 1; }; };;
2050 esac
2051 build=$ac_cv_build
2052 ac_save_IFS=$IFS; IFS='-'
2053 set x $ac_cv_build
2054 shift
2055 build_cpu=$1
2056 build_vendor=$2
2057 shift; shift
2058 # Remember, the first character of IFS is used to create $*,
2059 # except with old shells:
2060 build_os=$*
2061 IFS=$ac_save_IFS
2062 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2063
2064
2065 { echo "$as_me:$LINENO: checking host system type" >&5
2066 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
2067 if test "${ac_cv_host+set}" = set; then
2068   echo $ECHO_N "(cached) $ECHO_C" >&6
2069 else
2070   if test "x$host_alias" = x; then
2071   ac_cv_host=$ac_cv_build
2072 else
2073   ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2074     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
2075 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
2076    { (exit 1); exit 1; }; }
2077 fi
2078
2079 fi
2080 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
2081 echo "${ECHO_T}$ac_cv_host" >&6; }
2082 case $ac_cv_host in
2083 *-*-*) ;;
2084 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
2085 echo "$as_me: error: invalid value of canonical host" >&2;}
2086    { (exit 1); exit 1; }; };;
2087 esac
2088 host=$ac_cv_host
2089 ac_save_IFS=$IFS; IFS='-'
2090 set x $ac_cv_host
2091 shift
2092 host_cpu=$1
2093 host_vendor=$2
2094 shift; shift
2095 # Remember, the first character of IFS is used to create $*,
2096 # except with old shells:
2097 host_os=$*
2098 IFS=$ac_save_IFS
2099 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2100
2101
2102 { echo "$as_me:$LINENO: checking target system type" >&5
2103 echo $ECHO_N "checking target system type... $ECHO_C" >&6; }
2104 if test "${ac_cv_target+set}" = set; then
2105   echo $ECHO_N "(cached) $ECHO_C" >&6
2106 else
2107   if test "x$target_alias" = x; then
2108   ac_cv_target=$ac_cv_host
2109 else
2110   ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2111     { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&5
2112 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $target_alias failed" >&2;}
2113    { (exit 1); exit 1; }; }
2114 fi
2115
2116 fi
2117 { echo "$as_me:$LINENO: result: $ac_cv_target" >&5
2118 echo "${ECHO_T}$ac_cv_target" >&6; }
2119 case $ac_cv_target in
2120 *-*-*) ;;
2121 *) { { echo "$as_me:$LINENO: error: invalid value of canonical target" >&5
2122 echo "$as_me: error: invalid value of canonical target" >&2;}
2123    { (exit 1); exit 1; }; };;
2124 esac
2125 target=$ac_cv_target
2126 ac_save_IFS=$IFS; IFS='-'
2127 set x $ac_cv_target
2128 shift
2129 target_cpu=$1
2130 target_vendor=$2
2131 shift; shift
2132 # Remember, the first character of IFS is used to create $*,
2133 # except with old shells:
2134 target_os=$*
2135 IFS=$ac_save_IFS
2136 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2137
2138
2139 # The aliases save the names the user supplied, while $host etc.
2140 # will get canonicalized.
2141 test -n "$target_alias" &&
2142   test "$program_prefix$program_suffix$program_transform_name" = \
2143     NONENONEs,x,x, &&
2144   program_prefix=${target_alias}-
2145
2146 { echo "$as_me:$LINENO: checking type of operating system we're going to host on" >&5
2147 echo $ECHO_N "checking type of operating system we're going to host on... $ECHO_C" >&6; }
2148 if test "${llvm_cv_os_type+set}" = set; then
2149   echo $ECHO_N "(cached) $ECHO_C" >&6
2150 else
2151   case $host in
2152   *-*-aix*)
2153     llvm_cv_link_all_option="-Wl,--whole-archive"
2154     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2155     llvm_cv_os_type="AIX"
2156     llvm_cv_platform_type="Unix" ;;
2157   *-*-irix*)
2158     llvm_cv_link_all_option="-Wl,--whole-archive"
2159     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2160     llvm_cv_os_type="IRIX"
2161     llvm_cv_platform_type="Unix" ;;
2162   *-*-cygwin*)
2163     llvm_cv_link_all_option="-Wl,--whole-archive"
2164     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2165     llvm_cv_os_type="Cygwin"
2166     llvm_cv_platform_type="Unix" ;;
2167   *-*-darwin*)
2168     llvm_cv_link_all_option="-Wl,-all_load"
2169     llvm_cv_no_link_all_option="-Wl,-noall_load"
2170     llvm_cv_os_type="Darwin"
2171     llvm_cv_platform_type="Unix" ;;
2172   *-*-minix*)
2173     llvm_cv_link_all_option="-Wl,-all_load"
2174     llvm_cv_no_link_all_option="-Wl,-noall_load"
2175     llvm_cv_os_type="Minix"
2176     llvm_cv_platform_type="Unix" ;;
2177   *-*-freebsd*)
2178     llvm_cv_link_all_option="-Wl,--whole-archive"
2179     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2180     llvm_cv_os_type="FreeBSD"
2181     llvm_cv_platform_type="Unix" ;;
2182   *-*-openbsd*)
2183     llvm_cv_link_all_option="-Wl,--whole-archive"
2184     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2185     llvm_cv_os_type="OpenBSD"
2186     llvm_cv_platform_type="Unix" ;;
2187   *-*-netbsd*)
2188     llvm_cv_link_all_option="-Wl,--whole-archive"
2189     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2190     llvm_cv_os_type="NetBSD"
2191     llvm_cv_platform_type="Unix" ;;
2192   *-*-dragonfly*)
2193     llvm_cv_link_all_option="-Wl,--whole-archive"
2194     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2195     llvm_cv_os_type="DragonFly"
2196     llvm_cv_platform_type="Unix" ;;
2197   *-*-hpux*)
2198     llvm_cv_link_all_option="-Wl,--whole-archive"
2199     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2200     llvm_cv_os_type="HP-UX"
2201     llvm_cv_platform_type="Unix" ;;
2202   *-*-interix*)
2203     llvm_cv_link_all_option="-Wl,--whole-archive"
2204     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2205     llvm_cv_os_type="Interix"
2206     llvm_cv_platform_type="Unix" ;;
2207   *-*-linux*)
2208     llvm_cv_link_all_option="-Wl,--whole-archive"
2209     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2210     llvm_cv_os_type="Linux"
2211     llvm_cv_platform_type="Unix" ;;
2212   *-*-solaris*)
2213     llvm_cv_link_all_option="-Wl,-z,allextract"
2214     llvm_cv_no_link_all_option="-Wl,-z,defaultextract"
2215     llvm_cv_os_type="SunOS"
2216     llvm_cv_platform_type="Unix" ;;
2217   *-*-auroraux*)
2218     llvm_cv_link_all_option="-Wl,-z,allextract"
2219     llvm_cv_link_all_option="-Wl,-z,defaultextract"
2220     llvm_cv_os_type="AuroraUX"
2221     llvm_cv_platform_type="Unix" ;;
2222   *-*-win32*)
2223     llvm_cv_link_all_option="-Wl,--whole-archive"
2224     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2225     llvm_cv_os_type="Win32"
2226     llvm_cv_platform_type="Win32" ;;
2227   *-*-mingw*)
2228     llvm_cv_link_all_option="-Wl,--whole-archive"
2229     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2230     llvm_cv_os_type="MingW"
2231     llvm_cv_platform_type="Win32" ;;
2232   *-*-haiku*)
2233     llvm_cv_link_all_option="-Wl,--whole-archive"
2234     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2235     llvm_cv_os_type="Haiku"
2236     llvm_cv_platform_type="Unix" ;;
2237   *-unknown-eabi*)
2238     llvm_cv_link_all_option="-Wl,--whole-archive"
2239     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2240     llvm_cv_os_type="Freestanding"
2241     llvm_cv_platform_type="Unix" ;;
2242   *-unknown-elf*)
2243     llvm_cv_link_all_option="-Wl,--whole-archive"
2244     llvm_cv_no_link_all_option="-Wl,--no-whole-archive"
2245     llvm_cv_os_type="Freestanding"
2246     llvm_cv_platform_type="Unix" ;;
2247   *)
2248     llvm_cv_link_all_option=""
2249     llvm_cv_no_link_all_option=""
2250     llvm_cv_os_type="Unknown"
2251     llvm_cv_platform_type="Unknown" ;;
2252 esac
2253 fi
2254 { echo "$as_me:$LINENO: result: $llvm_cv_os_type" >&5
2255 echo "${ECHO_T}$llvm_cv_os_type" >&6; }
2256
2257 { echo "$as_me:$LINENO: checking type of operating system we're going to target" >&5
2258 echo $ECHO_N "checking type of operating system we're going to target... $ECHO_C" >&6; }
2259 if test "${llvm_cv_target_os_type+set}" = set; then
2260   echo $ECHO_N "(cached) $ECHO_C" >&6
2261 else
2262   case $target in
2263   *-*-aix*)
2264     llvm_cv_target_os_type="AIX" ;;
2265   *-*-irix*)
2266     llvm_cv_target_os_type="IRIX" ;;
2267   *-*-cygwin*)
2268     llvm_cv_target_os_type="Cygwin" ;;
2269   *-*-darwin*)
2270     llvm_cv_target_os_type="Darwin" ;;
2271   *-*-minix*)
2272     llvm_cv_target_os_type="Minix" ;;
2273   *-*-freebsd*)
2274     llvm_cv_target_os_type="FreeBSD" ;;
2275   *-*-openbsd*)
2276     llvm_cv_target_os_type="OpenBSD" ;;
2277   *-*-netbsd*)
2278     llvm_cv_target_os_type="NetBSD" ;;
2279   *-*-dragonfly*)
2280     llvm_cv_target_os_type="DragonFly" ;;
2281   *-*-hpux*)
2282     llvm_cv_target_os_type="HP-UX" ;;
2283   *-*-interix*)
2284     llvm_cv_target_os_type="Interix" ;;
2285   *-*-linux*)
2286     llvm_cv_target_os_type="Linux" ;;
2287   *-*-solaris*)
2288     llvm_cv_target_os_type="SunOS" ;;
2289   *-*-auroraux*)
2290     llvm_cv_target_os_type="AuroraUX" ;;
2291   *-*-win32*)
2292     llvm_cv_target_os_type="Win32" ;;
2293   *-*-mingw*)
2294     llvm_cv_target_os_type="MingW" ;;
2295   *-*-haiku*)
2296     llvm_cv_target_os_type="Haiku" ;;
2297   *-unknown-eabi*)
2298     llvm_cv_target_os_type="Freestanding" ;;
2299   *)
2300     llvm_cv_target_os_type="Unknown" ;;
2301 esac
2302 fi
2303 { echo "$as_me:$LINENO: result: $llvm_cv_target_os_type" >&5
2304 echo "${ECHO_T}$llvm_cv_target_os_type" >&6; }
2305
2306 if test "$llvm_cv_os_type" = "Unknown" ; then
2307   { { echo "$as_me:$LINENO: error: Operating system is unknown, configure can't continue" >&5
2308 echo "$as_me: error: Operating system is unknown, configure can't continue" >&2;}
2309    { (exit 1); exit 1; }; }
2310 fi
2311
2312 OS=$llvm_cv_os_type
2313
2314 HOST_OS=$llvm_cv_os_type
2315
2316 TARGET_OS=$llvm_cv_target_os_type
2317
2318
2319 LINKALL=$llvm_cv_link_all_option
2320
2321 NOLINKALL=$llvm_cv_no_link_all_option
2322
2323
2324 case $llvm_cv_platform_type in
2325   Unix)
2326
2327 cat >>confdefs.h <<\_ACEOF
2328 #define LLVM_ON_UNIX 1
2329 _ACEOF
2330
2331     LLVM_ON_UNIX=1
2332
2333     LLVM_ON_WIN32=0
2334
2335     ;;
2336   Win32)
2337
2338 cat >>confdefs.h <<\_ACEOF
2339 #define LLVM_ON_WIN32 1
2340 _ACEOF
2341
2342     LLVM_ON_UNIX=0
2343
2344     LLVM_ON_WIN32=1
2345
2346     ;;
2347 esac
2348
2349 { echo "$as_me:$LINENO: checking target architecture" >&5
2350 echo $ECHO_N "checking target architecture... $ECHO_C" >&6; }
2351 if test "${llvm_cv_target_arch+set}" = set; then
2352   echo $ECHO_N "(cached) $ECHO_C" >&6
2353 else
2354   case $target in
2355   i?86-*)                 llvm_cv_target_arch="x86" ;;
2356   amd64-* | x86_64-*)     llvm_cv_target_arch="x86_64" ;;
2357   sparc*-*)               llvm_cv_target_arch="Sparc" ;;
2358   powerpc*-*)             llvm_cv_target_arch="PowerPC" ;;
2359   alpha*-*)               llvm_cv_target_arch="Alpha" ;;
2360   arm*-*)                 llvm_cv_target_arch="ARM" ;;
2361   mips-*)                 llvm_cv_target_arch="Mips" ;;
2362   xcore-*)                llvm_cv_target_arch="XCore" ;;
2363   msp430-*)               llvm_cv_target_arch="MSP430" ;;
2364   s390x-*)                llvm_cv_target_arch="SystemZ" ;;
2365   bfin-*)                 llvm_cv_target_arch="Blackfin" ;;
2366   mblaze-*)               llvm_cv_target_arch="MBlaze" ;;
2367   ptx-*)                  llvm_cv_target_arch="PTX" ;;
2368   *)                      llvm_cv_target_arch="Unknown" ;;
2369 esac
2370 fi
2371 { echo "$as_me:$LINENO: result: $llvm_cv_target_arch" >&5
2372 echo "${ECHO_T}$llvm_cv_target_arch" >&6; }
2373
2374 if test "$llvm_cv_target_arch" = "Unknown" ; then
2375   { echo "$as_me:$LINENO: WARNING: Configuring LLVM for an unknown target archicture" >&5
2376 echo "$as_me: WARNING: Configuring LLVM for an unknown target archicture" >&2;}
2377 fi
2378
2379 # Determine the LLVM native architecture for the target
2380 case "$llvm_cv_target_arch" in
2381     x86)     LLVM_NATIVE_ARCH="X86" ;;
2382     x86_64)  LLVM_NATIVE_ARCH="X86" ;;
2383     *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
2384 esac
2385
2386 ARCH=$llvm_cv_target_arch
2387
2388
2389 ac_ext=c
2390 ac_cpp='$CPP $CPPFLAGS'
2391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2394 if test -n "$ac_tool_prefix"; then
2395   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2396 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2397 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2398 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2399 if test "${ac_cv_prog_CC+set}" = set; then
2400   echo $ECHO_N "(cached) $ECHO_C" >&6
2401 else
2402   if test -n "$CC"; then
2403   ac_cv_prog_CC="$CC" # Let the user override the test.
2404 else
2405 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2406 for as_dir in $PATH
2407 do
2408   IFS=$as_save_IFS
2409   test -z "$as_dir" && as_dir=.
2410   for ac_exec_ext in '' $ac_executable_extensions; do
2411   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2412     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2413     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2414     break 2
2415   fi
2416 done
2417 done
2418 IFS=$as_save_IFS
2419
2420 fi
2421 fi
2422 CC=$ac_cv_prog_CC
2423 if test -n "$CC"; then
2424   { echo "$as_me:$LINENO: result: $CC" >&5
2425 echo "${ECHO_T}$CC" >&6; }
2426 else
2427   { echo "$as_me:$LINENO: result: no" >&5
2428 echo "${ECHO_T}no" >&6; }
2429 fi
2430
2431
2432 fi
2433 if test -z "$ac_cv_prog_CC"; then
2434   ac_ct_CC=$CC
2435   # Extract the first word of "gcc", so it can be a program name with args.
2436 set dummy gcc; ac_word=$2
2437 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2438 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2439 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2440   echo $ECHO_N "(cached) $ECHO_C" >&6
2441 else
2442   if test -n "$ac_ct_CC"; then
2443   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2444 else
2445 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2446 for as_dir in $PATH
2447 do
2448   IFS=$as_save_IFS
2449   test -z "$as_dir" && as_dir=.
2450   for ac_exec_ext in '' $ac_executable_extensions; do
2451   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2452     ac_cv_prog_ac_ct_CC="gcc"
2453     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2454     break 2
2455   fi
2456 done
2457 done
2458 IFS=$as_save_IFS
2459
2460 fi
2461 fi
2462 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2463 if test -n "$ac_ct_CC"; then
2464   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2465 echo "${ECHO_T}$ac_ct_CC" >&6; }
2466 else
2467   { echo "$as_me:$LINENO: result: no" >&5
2468 echo "${ECHO_T}no" >&6; }
2469 fi
2470
2471   if test "x$ac_ct_CC" = x; then
2472     CC=""
2473   else
2474     case $cross_compiling:$ac_tool_warned in
2475 yes:)
2476 { echo "$as_me:$LINENO: 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." >&5
2479 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2480 whose name does not start with the host triplet.  If you think this
2481 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2482 ac_tool_warned=yes ;;
2483 esac
2484     CC=$ac_ct_CC
2485   fi
2486 else
2487   CC="$ac_cv_prog_CC"
2488 fi
2489
2490 if test -z "$CC"; then
2491           if test -n "$ac_tool_prefix"; then
2492     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2493 set dummy ${ac_tool_prefix}cc; ac_word=$2
2494 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2495 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2496 if test "${ac_cv_prog_CC+set}" = set; then
2497   echo $ECHO_N "(cached) $ECHO_C" >&6
2498 else
2499   if test -n "$CC"; then
2500   ac_cv_prog_CC="$CC" # Let the user override the test.
2501 else
2502 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2503 for as_dir in $PATH
2504 do
2505   IFS=$as_save_IFS
2506   test -z "$as_dir" && as_dir=.
2507   for ac_exec_ext in '' $ac_executable_extensions; do
2508   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2509     ac_cv_prog_CC="${ac_tool_prefix}cc"
2510     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2511     break 2
2512   fi
2513 done
2514 done
2515 IFS=$as_save_IFS
2516
2517 fi
2518 fi
2519 CC=$ac_cv_prog_CC
2520 if test -n "$CC"; then
2521   { echo "$as_me:$LINENO: result: $CC" >&5
2522 echo "${ECHO_T}$CC" >&6; }
2523 else
2524   { echo "$as_me:$LINENO: result: no" >&5
2525 echo "${ECHO_T}no" >&6; }
2526 fi
2527
2528
2529   fi
2530 fi
2531 if test -z "$CC"; then
2532   # Extract the first word of "cc", so it can be a program name with args.
2533 set dummy cc; ac_word=$2
2534 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2535 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2536 if test "${ac_cv_prog_CC+set}" = set; then
2537   echo $ECHO_N "(cached) $ECHO_C" >&6
2538 else
2539   if test -n "$CC"; then
2540   ac_cv_prog_CC="$CC" # Let the user override the test.
2541 else
2542   ac_prog_rejected=no
2543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2544 for as_dir in $PATH
2545 do
2546   IFS=$as_save_IFS
2547   test -z "$as_dir" && as_dir=.
2548   for ac_exec_ext in '' $ac_executable_extensions; do
2549   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2550     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2551        ac_prog_rejected=yes
2552        continue
2553      fi
2554     ac_cv_prog_CC="cc"
2555     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2556     break 2
2557   fi
2558 done
2559 done
2560 IFS=$as_save_IFS
2561
2562 if test $ac_prog_rejected = yes; then
2563   # We found a bogon in the path, so make sure we never use it.
2564   set dummy $ac_cv_prog_CC
2565   shift
2566   if test $# != 0; then
2567     # We chose a different compiler from the bogus one.
2568     # However, it has the same basename, so the bogon will be chosen
2569     # first if we set CC to just the basename; use the full file name.
2570     shift
2571     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2572   fi
2573 fi
2574 fi
2575 fi
2576 CC=$ac_cv_prog_CC
2577 if test -n "$CC"; then
2578   { echo "$as_me:$LINENO: result: $CC" >&5
2579 echo "${ECHO_T}$CC" >&6; }
2580 else
2581   { echo "$as_me:$LINENO: result: no" >&5
2582 echo "${ECHO_T}no" >&6; }
2583 fi
2584
2585
2586 fi
2587 if test -z "$CC"; then
2588   if test -n "$ac_tool_prefix"; then
2589   for ac_prog in cl.exe
2590   do
2591     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2592 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2593 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2594 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2595 if test "${ac_cv_prog_CC+set}" = set; then
2596   echo $ECHO_N "(cached) $ECHO_C" >&6
2597 else
2598   if test -n "$CC"; then
2599   ac_cv_prog_CC="$CC" # Let the user override the test.
2600 else
2601 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2602 for as_dir in $PATH
2603 do
2604   IFS=$as_save_IFS
2605   test -z "$as_dir" && as_dir=.
2606   for ac_exec_ext in '' $ac_executable_extensions; do
2607   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2608     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2609     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2610     break 2
2611   fi
2612 done
2613 done
2614 IFS=$as_save_IFS
2615
2616 fi
2617 fi
2618 CC=$ac_cv_prog_CC
2619 if test -n "$CC"; then
2620   { echo "$as_me:$LINENO: result: $CC" >&5
2621 echo "${ECHO_T}$CC" >&6; }
2622 else
2623   { echo "$as_me:$LINENO: result: no" >&5
2624 echo "${ECHO_T}no" >&6; }
2625 fi
2626
2627
2628     test -n "$CC" && break
2629   done
2630 fi
2631 if test -z "$CC"; then
2632   ac_ct_CC=$CC
2633   for ac_prog in cl.exe
2634 do
2635   # Extract the first word of "$ac_prog", so it can be a program name with args.
2636 set dummy $ac_prog; ac_word=$2
2637 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2638 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2639 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
2640   echo $ECHO_N "(cached) $ECHO_C" >&6
2641 else
2642   if test -n "$ac_ct_CC"; then
2643   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2644 else
2645 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2646 for as_dir in $PATH
2647 do
2648   IFS=$as_save_IFS
2649   test -z "$as_dir" && as_dir=.
2650   for ac_exec_ext in '' $ac_executable_extensions; do
2651   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2652     ac_cv_prog_ac_ct_CC="$ac_prog"
2653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2654     break 2
2655   fi
2656 done
2657 done
2658 IFS=$as_save_IFS
2659
2660 fi
2661 fi
2662 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2663 if test -n "$ac_ct_CC"; then
2664   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
2665 echo "${ECHO_T}$ac_ct_CC" >&6; }
2666 else
2667   { echo "$as_me:$LINENO: result: no" >&5
2668 echo "${ECHO_T}no" >&6; }
2669 fi
2670
2671
2672   test -n "$ac_ct_CC" && break
2673 done
2674
2675   if test "x$ac_ct_CC" = x; then
2676     CC=""
2677   else
2678     case $cross_compiling:$ac_tool_warned in
2679 yes:)
2680 { echo "$as_me:$LINENO: 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." >&5
2683 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2684 whose name does not start with the host triplet.  If you think this
2685 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2686 ac_tool_warned=yes ;;
2687 esac
2688     CC=$ac_ct_CC
2689   fi
2690 fi
2691
2692 fi
2693
2694
2695 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
2696 See \`config.log' for more details." >&5
2697 echo "$as_me: error: no acceptable C compiler found in \$PATH
2698 See \`config.log' for more details." >&2;}
2699    { (exit 1); exit 1; }; }
2700
2701 # Provide some information about the compiler.
2702 echo "$as_me:$LINENO: checking for C compiler version" >&5
2703 ac_compiler=`set X $ac_compile; echo $2`
2704 { (ac_try="$ac_compiler --version >&5"
2705 case "(($ac_try" in
2706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707   *) ac_try_echo=$ac_try;;
2708 esac
2709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2710   (eval "$ac_compiler --version >&5") 2>&5
2711   ac_status=$?
2712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2713   (exit $ac_status); }
2714 { (ac_try="$ac_compiler -v >&5"
2715 case "(($ac_try" in
2716   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2717   *) ac_try_echo=$ac_try;;
2718 esac
2719 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2720   (eval "$ac_compiler -v >&5") 2>&5
2721   ac_status=$?
2722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2723   (exit $ac_status); }
2724 { (ac_try="$ac_compiler -V >&5"
2725 case "(($ac_try" in
2726   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2727   *) ac_try_echo=$ac_try;;
2728 esac
2729 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2730   (eval "$ac_compiler -V >&5") 2>&5
2731   ac_status=$?
2732   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733   (exit $ac_status); }
2734
2735 cat >conftest.$ac_ext <<_ACEOF
2736 /* confdefs.h.  */
2737 _ACEOF
2738 cat confdefs.h >>conftest.$ac_ext
2739 cat >>conftest.$ac_ext <<_ACEOF
2740 /* end confdefs.h.  */
2741
2742 int
2743 main ()
2744 {
2745
2746   ;
2747   return 0;
2748 }
2749 _ACEOF
2750 ac_clean_files_save=$ac_clean_files
2751 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2752 # Try to create an executable without -o first, disregard a.out.
2753 # It will help us diagnose broken compilers, and finding out an intuition
2754 # of exeext.
2755 { echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
2756 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6; }
2757 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2758 #
2759 # List of possible output files, starting from the most likely.
2760 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2761 # only as a last resort.  b.out is created by i960 compilers.
2762 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2763 #
2764 # The IRIX 6 linker writes into existing files which may not be
2765 # executable, retaining their permissions.  Remove them first so a
2766 # subsequent execution test works.
2767 ac_rmfiles=
2768 for ac_file in $ac_files
2769 do
2770   case $ac_file in
2771     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2772     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2773   esac
2774 done
2775 rm -f $ac_rmfiles
2776
2777 if { (ac_try="$ac_link_default"
2778 case "(($ac_try" in
2779   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2780   *) ac_try_echo=$ac_try;;
2781 esac
2782 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2783   (eval "$ac_link_default") 2>&5
2784   ac_status=$?
2785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2786   (exit $ac_status); }; then
2787   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2788 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2789 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
2790 # so that the user can short-circuit this test for compilers unknown to
2791 # Autoconf.
2792 for ac_file in $ac_files
2793 do
2794   test -f "$ac_file" || continue
2795   case $ac_file in
2796     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2797         ;;
2798     [ab].out )
2799         # We found the default executable, but exeext='' is most
2800         # certainly right.
2801         break;;
2802     *.* )
2803         if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2804         then :; else
2805            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2806         fi
2807         # We set ac_cv_exeext here because the later test for it is not
2808         # safe: cross compilers may not add the suffix if given an `-o'
2809         # argument, so we may need to know it at that point already.
2810         # Even if this section looks crufty: it has the advantage of
2811         # actually working.
2812         break;;
2813     * )
2814         break;;
2815   esac
2816 done
2817 test "$ac_cv_exeext" = no && ac_cv_exeext=
2818
2819 else
2820   echo "$as_me: failed program was:" >&5
2821 sed 's/^/| /' conftest.$ac_ext >&5
2822
2823 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
2824 See \`config.log' for more details." >&5
2825 echo "$as_me: error: C compiler cannot create executables
2826 See \`config.log' for more details." >&2;}
2827    { (exit 77); exit 77; }; }
2828 fi
2829
2830 ac_exeext=$ac_cv_exeext
2831 { echo "$as_me:$LINENO: result: $ac_file" >&5
2832 echo "${ECHO_T}$ac_file" >&6; }
2833
2834 # Check that the compiler produces executables we can run.  If not, either
2835 # the compiler is broken, or we cross compile.
2836 { echo "$as_me:$LINENO: checking whether the C compiler works" >&5
2837 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6; }
2838 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2839 # If not cross compiling, check that we can run a simple program.
2840 if test "$cross_compiling" != yes; then
2841   if { ac_try='./$ac_file'
2842   { (case "(($ac_try" in
2843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2844   *) ac_try_echo=$ac_try;;
2845 esac
2846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2847   (eval "$ac_try") 2>&5
2848   ac_status=$?
2849   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2850   (exit $ac_status); }; }; then
2851     cross_compiling=no
2852   else
2853     if test "$cross_compiling" = maybe; then
2854         cross_compiling=yes
2855     else
2856         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
2857 If you meant to cross compile, use \`--host'.
2858 See \`config.log' for more details." >&5
2859 echo "$as_me: error: cannot run C compiled programs.
2860 If you meant to cross compile, use \`--host'.
2861 See \`config.log' for more details." >&2;}
2862    { (exit 1); exit 1; }; }
2863     fi
2864   fi
2865 fi
2866 { echo "$as_me:$LINENO: result: yes" >&5
2867 echo "${ECHO_T}yes" >&6; }
2868
2869 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2870 ac_clean_files=$ac_clean_files_save
2871 # Check that the compiler produces executables we can run.  If not, either
2872 # the compiler is broken, or we cross compile.
2873 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2874 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2875 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2876 echo "${ECHO_T}$cross_compiling" >&6; }
2877
2878 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2879 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2880 if { (ac_try="$ac_link"
2881 case "(($ac_try" in
2882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2883   *) ac_try_echo=$ac_try;;
2884 esac
2885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2886   (eval "$ac_link") 2>&5
2887   ac_status=$?
2888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2889   (exit $ac_status); }; then
2890   # If both `conftest.exe' and `conftest' are `present' (well, observable)
2891 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
2892 # work properly (i.e., refer to `conftest.exe'), while it won't with
2893 # `rm'.
2894 for ac_file in conftest.exe conftest conftest.*; do
2895   test -f "$ac_file" || continue
2896   case $ac_file in
2897     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2898     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2899           break;;
2900     * ) break;;
2901   esac
2902 done
2903 else
2904   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2905 See \`config.log' for more details." >&5
2906 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2907 See \`config.log' for more details." >&2;}
2908    { (exit 1); exit 1; }; }
2909 fi
2910
2911 rm -f conftest$ac_cv_exeext
2912 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2913 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2914
2915 rm -f conftest.$ac_ext
2916 EXEEXT=$ac_cv_exeext
2917 ac_exeext=$EXEEXT
2918 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2919 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2920 if test "${ac_cv_objext+set}" = set; then
2921   echo $ECHO_N "(cached) $ECHO_C" >&6
2922 else
2923   cat >conftest.$ac_ext <<_ACEOF
2924 /* confdefs.h.  */
2925 _ACEOF
2926 cat confdefs.h >>conftest.$ac_ext
2927 cat >>conftest.$ac_ext <<_ACEOF
2928 /* end confdefs.h.  */
2929
2930 int
2931 main ()
2932 {
2933
2934   ;
2935   return 0;
2936 }
2937 _ACEOF
2938 rm -f conftest.o conftest.obj
2939 if { (ac_try="$ac_compile"
2940 case "(($ac_try" in
2941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2942   *) ac_try_echo=$ac_try;;
2943 esac
2944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2945   (eval "$ac_compile") 2>&5
2946   ac_status=$?
2947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2948   (exit $ac_status); }; then
2949   for ac_file in conftest.o conftest.obj conftest.*; do
2950   test -f "$ac_file" || continue;
2951   case $ac_file in
2952     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2953     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2954        break;;
2955   esac
2956 done
2957 else
2958   echo "$as_me: failed program was:" >&5
2959 sed 's/^/| /' conftest.$ac_ext >&5
2960
2961 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2962 See \`config.log' for more details." >&5
2963 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2964 See \`config.log' for more details." >&2;}
2965    { (exit 1); exit 1; }; }
2966 fi
2967
2968 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2969 fi
2970 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2971 echo "${ECHO_T}$ac_cv_objext" >&6; }
2972 OBJEXT=$ac_cv_objext
2973 ac_objext=$OBJEXT
2974 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
2975 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
2976 if test "${ac_cv_c_compiler_gnu+set}" = set; then
2977   echo $ECHO_N "(cached) $ECHO_C" >&6
2978 else
2979   cat >conftest.$ac_ext <<_ACEOF
2980 /* confdefs.h.  */
2981 _ACEOF
2982 cat confdefs.h >>conftest.$ac_ext
2983 cat >>conftest.$ac_ext <<_ACEOF
2984 /* end confdefs.h.  */
2985
2986 int
2987 main ()
2988 {
2989 #ifndef __GNUC__
2990        choke me
2991 #endif
2992
2993   ;
2994   return 0;
2995 }
2996 _ACEOF
2997 rm -f conftest.$ac_objext
2998 if { (ac_try="$ac_compile"
2999 case "(($ac_try" in
3000   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3001   *) ac_try_echo=$ac_try;;
3002 esac
3003 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3004   (eval "$ac_compile") 2>conftest.er1
3005   ac_status=$?
3006   grep -v '^ *+' conftest.er1 >conftest.err
3007   rm -f conftest.er1
3008   cat conftest.err >&5
3009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3010   (exit $ac_status); } &&
3011          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3012   { (case "(($ac_try" in
3013   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3014   *) ac_try_echo=$ac_try;;
3015 esac
3016 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3017   (eval "$ac_try") 2>&5
3018   ac_status=$?
3019   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3020   (exit $ac_status); }; } &&
3021          { ac_try='test -s conftest.$ac_objext'
3022   { (case "(($ac_try" in
3023   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3024   *) ac_try_echo=$ac_try;;
3025 esac
3026 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3027   (eval "$ac_try") 2>&5
3028   ac_status=$?
3029   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3030   (exit $ac_status); }; }; then
3031   ac_compiler_gnu=yes
3032 else
3033   echo "$as_me: failed program was:" >&5
3034 sed 's/^/| /' conftest.$ac_ext >&5
3035
3036         ac_compiler_gnu=no
3037 fi
3038
3039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3040 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3041
3042 fi
3043 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3044 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3045 GCC=`test $ac_compiler_gnu = yes && echo yes`
3046 ac_test_CFLAGS=${CFLAGS+set}
3047 ac_save_CFLAGS=$CFLAGS
3048 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3049 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3050 if test "${ac_cv_prog_cc_g+set}" = set; then
3051   echo $ECHO_N "(cached) $ECHO_C" >&6
3052 else
3053   ac_save_c_werror_flag=$ac_c_werror_flag
3054    ac_c_werror_flag=yes
3055    ac_cv_prog_cc_g=no
3056    CFLAGS="-g"
3057    cat >conftest.$ac_ext <<_ACEOF
3058 /* confdefs.h.  */
3059 _ACEOF
3060 cat confdefs.h >>conftest.$ac_ext
3061 cat >>conftest.$ac_ext <<_ACEOF
3062 /* end confdefs.h.  */
3063
3064 int
3065 main ()
3066 {
3067
3068   ;
3069   return 0;
3070 }
3071 _ACEOF
3072 rm -f conftest.$ac_objext
3073 if { (ac_try="$ac_compile"
3074 case "(($ac_try" in
3075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3076   *) ac_try_echo=$ac_try;;
3077 esac
3078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3079   (eval "$ac_compile") 2>conftest.er1
3080   ac_status=$?
3081   grep -v '^ *+' conftest.er1 >conftest.err
3082   rm -f conftest.er1
3083   cat conftest.err >&5
3084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3085   (exit $ac_status); } &&
3086          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3087   { (case "(($ac_try" in
3088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3089   *) ac_try_echo=$ac_try;;
3090 esac
3091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3092   (eval "$ac_try") 2>&5
3093   ac_status=$?
3094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3095   (exit $ac_status); }; } &&
3096          { ac_try='test -s conftest.$ac_objext'
3097   { (case "(($ac_try" in
3098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3099   *) ac_try_echo=$ac_try;;
3100 esac
3101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3102   (eval "$ac_try") 2>&5
3103   ac_status=$?
3104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3105   (exit $ac_status); }; }; then
3106   ac_cv_prog_cc_g=yes
3107 else
3108   echo "$as_me: failed program was:" >&5
3109 sed 's/^/| /' conftest.$ac_ext >&5
3110
3111         CFLAGS=""
3112       cat >conftest.$ac_ext <<_ACEOF
3113 /* confdefs.h.  */
3114 _ACEOF
3115 cat confdefs.h >>conftest.$ac_ext
3116 cat >>conftest.$ac_ext <<_ACEOF
3117 /* end confdefs.h.  */
3118
3119 int
3120 main ()
3121 {
3122
3123   ;
3124   return 0;
3125 }
3126 _ACEOF
3127 rm -f conftest.$ac_objext
3128 if { (ac_try="$ac_compile"
3129 case "(($ac_try" in
3130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3131   *) ac_try_echo=$ac_try;;
3132 esac
3133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3134   (eval "$ac_compile") 2>conftest.er1
3135   ac_status=$?
3136   grep -v '^ *+' conftest.er1 >conftest.err
3137   rm -f conftest.er1
3138   cat conftest.err >&5
3139   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3140   (exit $ac_status); } &&
3141          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3142   { (case "(($ac_try" in
3143   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3144   *) ac_try_echo=$ac_try;;
3145 esac
3146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3147   (eval "$ac_try") 2>&5
3148   ac_status=$?
3149   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3150   (exit $ac_status); }; } &&
3151          { ac_try='test -s conftest.$ac_objext'
3152   { (case "(($ac_try" in
3153   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3154   *) ac_try_echo=$ac_try;;
3155 esac
3156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3157   (eval "$ac_try") 2>&5
3158   ac_status=$?
3159   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3160   (exit $ac_status); }; }; then
3161   :
3162 else
3163   echo "$as_me: failed program was:" >&5
3164 sed 's/^/| /' conftest.$ac_ext >&5
3165
3166         ac_c_werror_flag=$ac_save_c_werror_flag
3167          CFLAGS="-g"
3168          cat >conftest.$ac_ext <<_ACEOF
3169 /* confdefs.h.  */
3170 _ACEOF
3171 cat confdefs.h >>conftest.$ac_ext
3172 cat >>conftest.$ac_ext <<_ACEOF
3173 /* end confdefs.h.  */
3174
3175 int
3176 main ()
3177 {
3178
3179   ;
3180   return 0;
3181 }
3182 _ACEOF
3183 rm -f conftest.$ac_objext
3184 if { (ac_try="$ac_compile"
3185 case "(($ac_try" in
3186   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3187   *) ac_try_echo=$ac_try;;
3188 esac
3189 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3190   (eval "$ac_compile") 2>conftest.er1
3191   ac_status=$?
3192   grep -v '^ *+' conftest.er1 >conftest.err
3193   rm -f conftest.er1
3194   cat conftest.err >&5
3195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196   (exit $ac_status); } &&
3197          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3198   { (case "(($ac_try" in
3199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3200   *) ac_try_echo=$ac_try;;
3201 esac
3202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3203   (eval "$ac_try") 2>&5
3204   ac_status=$?
3205   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3206   (exit $ac_status); }; } &&
3207          { ac_try='test -s conftest.$ac_objext'
3208   { (case "(($ac_try" in
3209   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3210   *) ac_try_echo=$ac_try;;
3211 esac
3212 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3213   (eval "$ac_try") 2>&5
3214   ac_status=$?
3215   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3216   (exit $ac_status); }; }; then
3217   ac_cv_prog_cc_g=yes
3218 else
3219   echo "$as_me: failed program was:" >&5
3220 sed 's/^/| /' conftest.$ac_ext >&5
3221
3222
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 fi
3230
3231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3232    ac_c_werror_flag=$ac_save_c_werror_flag
3233 fi
3234 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3235 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3236 if test "$ac_test_CFLAGS" = set; then
3237   CFLAGS=$ac_save_CFLAGS
3238 elif test $ac_cv_prog_cc_g = yes; then
3239   if test "$GCC" = yes; then
3240     CFLAGS="-g -O2"
3241   else
3242     CFLAGS="-g"
3243   fi
3244 else
3245   if test "$GCC" = yes; then
3246     CFLAGS="-O2"
3247   else
3248     CFLAGS=
3249   fi
3250 fi
3251 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3252 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3253 if test "${ac_cv_prog_cc_c89+set}" = set; then
3254   echo $ECHO_N "(cached) $ECHO_C" >&6
3255 else
3256   ac_cv_prog_cc_c89=no
3257 ac_save_CC=$CC
3258 cat >conftest.$ac_ext <<_ACEOF
3259 /* confdefs.h.  */
3260 _ACEOF
3261 cat confdefs.h >>conftest.$ac_ext
3262 cat >>conftest.$ac_ext <<_ACEOF
3263 /* end confdefs.h.  */
3264 #include <stdarg.h>
3265 #include <stdio.h>
3266 #include <sys/types.h>
3267 #include <sys/stat.h>
3268 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
3269 struct buf { int x; };
3270 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3271 static char *e (p, i)
3272      char **p;
3273      int i;
3274 {
3275   return p[i];
3276 }
3277 static char *f (char * (*g) (char **, int), char **p, ...)
3278 {
3279   char *s;
3280   va_list v;
3281   va_start (v,p);
3282   s = g (p, va_arg (v,int));
3283   va_end (v);
3284   return s;
3285 }
3286
3287 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
3288    function prototypes and stuff, but not '\xHH' hex character constants.
3289    These don't provoke an error unfortunately, instead are silently treated
3290    as 'x'.  The following induces an error, until -std is added to get
3291    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
3292    array size at least.  It's necessary to write '\x00'==0 to get something
3293    that's true only with -std.  */
3294 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3295
3296 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3297    inside strings and character constants.  */
3298 #define FOO(x) 'x'
3299 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3300
3301 int test (int i, double x);
3302 struct s1 {int (*f) (int a);};
3303 struct s2 {int (*f) (double a);};
3304 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3305 int argc;
3306 char **argv;
3307 int
3308 main ()
3309 {
3310 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
3311   ;
3312   return 0;
3313 }
3314 _ACEOF
3315 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3316         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3317 do
3318   CC="$ac_save_CC $ac_arg"
3319   rm -f conftest.$ac_objext
3320 if { (ac_try="$ac_compile"
3321 case "(($ac_try" in
3322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3323   *) ac_try_echo=$ac_try;;
3324 esac
3325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3326   (eval "$ac_compile") 2>conftest.er1
3327   ac_status=$?
3328   grep -v '^ *+' conftest.er1 >conftest.err
3329   rm -f conftest.er1
3330   cat conftest.err >&5
3331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3332   (exit $ac_status); } &&
3333          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3334   { (case "(($ac_try" in
3335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3336   *) ac_try_echo=$ac_try;;
3337 esac
3338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3339   (eval "$ac_try") 2>&5
3340   ac_status=$?
3341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3342   (exit $ac_status); }; } &&
3343          { ac_try='test -s conftest.$ac_objext'
3344   { (case "(($ac_try" in
3345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3346   *) ac_try_echo=$ac_try;;
3347 esac
3348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3349   (eval "$ac_try") 2>&5
3350   ac_status=$?
3351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3352   (exit $ac_status); }; }; then
3353   ac_cv_prog_cc_c89=$ac_arg
3354 else
3355   echo "$as_me: failed program was:" >&5
3356 sed 's/^/| /' conftest.$ac_ext >&5
3357
3358
3359 fi
3360
3361 rm -f core conftest.err conftest.$ac_objext
3362   test "x$ac_cv_prog_cc_c89" != "xno" && break
3363 done
3364 rm -f conftest.$ac_ext
3365 CC=$ac_save_CC
3366
3367 fi
3368 # AC_CACHE_VAL
3369 case "x$ac_cv_prog_cc_c89" in
3370   x)
3371     { echo "$as_me:$LINENO: result: none needed" >&5
3372 echo "${ECHO_T}none needed" >&6; } ;;
3373   xno)
3374     { echo "$as_me:$LINENO: result: unsupported" >&5
3375 echo "${ECHO_T}unsupported" >&6; } ;;
3376   *)
3377     CC="$CC $ac_cv_prog_cc_c89"
3378     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3379 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3380 esac
3381
3382
3383 ac_ext=c
3384 ac_cpp='$CPP $CPPFLAGS'
3385 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3386 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3387 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3388
3389
3390 ac_ext=c
3391 ac_cpp='$CPP $CPPFLAGS'
3392 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3393 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3394 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3395 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
3396 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
3397 # On Suns, sometimes $CPP names a directory.
3398 if test -n "$CPP" && test -d "$CPP"; then
3399   CPP=
3400 fi
3401 if test -z "$CPP"; then
3402   if test "${ac_cv_prog_CPP+set}" = set; then
3403   echo $ECHO_N "(cached) $ECHO_C" >&6
3404 else
3405       # Double quotes because CPP needs to be expanded
3406     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3407     do
3408       ac_preproc_ok=false
3409 for ac_c_preproc_warn_flag in '' yes
3410 do
3411   # Use a header file that comes with gcc, so configuring glibc
3412   # with a fresh cross-compiler works.
3413   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3414   # <limits.h> exists even on freestanding compilers.
3415   # On the NeXT, cc -E runs the code through the compiler's parser,
3416   # not just through cpp. "Syntax error" is here to catch this case.
3417   cat >conftest.$ac_ext <<_ACEOF
3418 /* confdefs.h.  */
3419 _ACEOF
3420 cat confdefs.h >>conftest.$ac_ext
3421 cat >>conftest.$ac_ext <<_ACEOF
3422 /* end confdefs.h.  */
3423 #ifdef __STDC__
3424 # include <limits.h>
3425 #else
3426 # include <assert.h>
3427 #endif
3428                      Syntax error
3429 _ACEOF
3430 if { (ac_try="$ac_cpp conftest.$ac_ext"
3431 case "(($ac_try" in
3432   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3433   *) ac_try_echo=$ac_try;;
3434 esac
3435 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3436   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3437   ac_status=$?
3438   grep -v '^ *+' conftest.er1 >conftest.err
3439   rm -f conftest.er1
3440   cat conftest.err >&5
3441   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3442   (exit $ac_status); } >/dev/null; then
3443   if test -s conftest.err; then
3444     ac_cpp_err=$ac_c_preproc_warn_flag
3445     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3446   else
3447     ac_cpp_err=
3448   fi
3449 else
3450   ac_cpp_err=yes
3451 fi
3452 if test -z "$ac_cpp_err"; then
3453   :
3454 else
3455   echo "$as_me: failed program was:" >&5
3456 sed 's/^/| /' conftest.$ac_ext >&5
3457
3458   # Broken: fails on valid input.
3459 continue
3460 fi
3461
3462 rm -f conftest.err conftest.$ac_ext
3463
3464   # OK, works on sane cases.  Now check whether nonexistent headers
3465   # can be detected and how.
3466   cat >conftest.$ac_ext <<_ACEOF
3467 /* confdefs.h.  */
3468 _ACEOF
3469 cat confdefs.h >>conftest.$ac_ext
3470 cat >>conftest.$ac_ext <<_ACEOF
3471 /* end confdefs.h.  */
3472 #include <ac_nonexistent.h>
3473 _ACEOF
3474 if { (ac_try="$ac_cpp conftest.$ac_ext"
3475 case "(($ac_try" in
3476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3477   *) ac_try_echo=$ac_try;;
3478 esac
3479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3480   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3481   ac_status=$?
3482   grep -v '^ *+' conftest.er1 >conftest.err
3483   rm -f conftest.er1
3484   cat conftest.err >&5
3485   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3486   (exit $ac_status); } >/dev/null; then
3487   if test -s conftest.err; then
3488     ac_cpp_err=$ac_c_preproc_warn_flag
3489     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3490   else
3491     ac_cpp_err=
3492   fi
3493 else
3494   ac_cpp_err=yes
3495 fi
3496 if test -z "$ac_cpp_err"; then
3497   # Broken: success on invalid input.
3498 continue
3499 else
3500   echo "$as_me: failed program was:" >&5
3501 sed 's/^/| /' conftest.$ac_ext >&5
3502
3503   # Passes both tests.
3504 ac_preproc_ok=:
3505 break
3506 fi
3507
3508 rm -f conftest.err conftest.$ac_ext
3509
3510 done
3511 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3512 rm -f conftest.err conftest.$ac_ext
3513 if $ac_preproc_ok; then
3514   break
3515 fi
3516
3517     done
3518     ac_cv_prog_CPP=$CPP
3519
3520 fi
3521   CPP=$ac_cv_prog_CPP
3522 else
3523   ac_cv_prog_CPP=$CPP
3524 fi
3525 { echo "$as_me:$LINENO: result: $CPP" >&5
3526 echo "${ECHO_T}$CPP" >&6; }
3527 ac_preproc_ok=false
3528 for ac_c_preproc_warn_flag in '' yes
3529 do
3530   # Use a header file that comes with gcc, so configuring glibc
3531   # with a fresh cross-compiler works.
3532   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3533   # <limits.h> exists even on freestanding compilers.
3534   # On the NeXT, cc -E runs the code through the compiler's parser,
3535   # not just through cpp. "Syntax error" is here to catch this case.
3536   cat >conftest.$ac_ext <<_ACEOF
3537 /* confdefs.h.  */
3538 _ACEOF
3539 cat confdefs.h >>conftest.$ac_ext
3540 cat >>conftest.$ac_ext <<_ACEOF
3541 /* end confdefs.h.  */
3542 #ifdef __STDC__
3543 # include <limits.h>
3544 #else
3545 # include <assert.h>
3546 #endif
3547                      Syntax error
3548 _ACEOF
3549 if { (ac_try="$ac_cpp conftest.$ac_ext"
3550 case "(($ac_try" in
3551   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3552   *) ac_try_echo=$ac_try;;
3553 esac
3554 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3555   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3556   ac_status=$?
3557   grep -v '^ *+' conftest.er1 >conftest.err
3558   rm -f conftest.er1
3559   cat conftest.err >&5
3560   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3561   (exit $ac_status); } >/dev/null; then
3562   if test -s conftest.err; then
3563     ac_cpp_err=$ac_c_preproc_warn_flag
3564     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3565   else
3566     ac_cpp_err=
3567   fi
3568 else
3569   ac_cpp_err=yes
3570 fi
3571 if test -z "$ac_cpp_err"; then
3572   :
3573 else
3574   echo "$as_me: failed program was:" >&5
3575 sed 's/^/| /' conftest.$ac_ext >&5
3576
3577   # Broken: fails on valid input.
3578 continue
3579 fi
3580
3581 rm -f conftest.err conftest.$ac_ext
3582
3583   # OK, works on sane cases.  Now check whether nonexistent headers
3584   # can be detected and how.
3585   cat >conftest.$ac_ext <<_ACEOF
3586 /* confdefs.h.  */
3587 _ACEOF
3588 cat confdefs.h >>conftest.$ac_ext
3589 cat >>conftest.$ac_ext <<_ACEOF
3590 /* end confdefs.h.  */
3591 #include <ac_nonexistent.h>
3592 _ACEOF
3593 if { (ac_try="$ac_cpp conftest.$ac_ext"
3594 case "(($ac_try" in
3595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3596   *) ac_try_echo=$ac_try;;
3597 esac
3598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3599   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
3600   ac_status=$?
3601   grep -v '^ *+' conftest.er1 >conftest.err
3602   rm -f conftest.er1
3603   cat conftest.err >&5
3604   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3605   (exit $ac_status); } >/dev/null; then
3606   if test -s conftest.err; then
3607     ac_cpp_err=$ac_c_preproc_warn_flag
3608     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3609   else
3610     ac_cpp_err=
3611   fi
3612 else
3613   ac_cpp_err=yes
3614 fi
3615 if test -z "$ac_cpp_err"; then
3616   # Broken: success on invalid input.
3617 continue
3618 else
3619   echo "$as_me: failed program was:" >&5
3620 sed 's/^/| /' conftest.$ac_ext >&5
3621
3622   # Passes both tests.
3623 ac_preproc_ok=:
3624 break
3625 fi
3626
3627 rm -f conftest.err conftest.$ac_ext
3628
3629 done
3630 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3631 rm -f conftest.err conftest.$ac_ext
3632 if $ac_preproc_ok; then
3633   :
3634 else
3635   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
3636 See \`config.log' for more details." >&5
3637 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
3638 See \`config.log' for more details." >&2;}
3639    { (exit 1); exit 1; }; }
3640 fi
3641
3642 ac_ext=c
3643 ac_cpp='$CPP $CPPFLAGS'
3644 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3645 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3646 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3647
3648
3649 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
3650 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
3651 if test "${ac_cv_path_GREP+set}" = set; then
3652   echo $ECHO_N "(cached) $ECHO_C" >&6
3653 else
3654   # Extract the first word of "grep ggrep" to use in msg output
3655 if test -z "$GREP"; then
3656 set dummy grep ggrep; ac_prog_name=$2
3657 if test "${ac_cv_path_GREP+set}" = set; then
3658   echo $ECHO_N "(cached) $ECHO_C" >&6
3659 else
3660   ac_path_GREP_found=false
3661 # Loop through the user's path and test for each of PROGNAME-LIST
3662 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3663 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3664 do
3665   IFS=$as_save_IFS
3666   test -z "$as_dir" && as_dir=.
3667   for ac_prog in grep ggrep; do
3668   for ac_exec_ext in '' $ac_executable_extensions; do
3669     ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3670     { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
3671     # Check for GNU ac_path_GREP and select it if it is found.
3672   # Check for GNU $ac_path_GREP
3673 case `"$ac_path_GREP" --version 2>&1` in
3674 *GNU*)
3675   ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3676 *)
3677   ac_count=0
3678   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3679   while :
3680   do
3681     cat "conftest.in" "conftest.in" >"conftest.tmp"
3682     mv "conftest.tmp" "conftest.in"
3683     cp "conftest.in" "conftest.nl"
3684     echo 'GREP' >> "conftest.nl"
3685     "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3686     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3687     ac_count=`expr $ac_count + 1`
3688     if test $ac_count -gt ${ac_path_GREP_max-0}; then
3689       # Best one so far, save it but keep looking for a better one
3690       ac_cv_path_GREP="$ac_path_GREP"
3691       ac_path_GREP_max=$ac_count
3692     fi
3693     # 10*(2^10) chars as input seems more than enough
3694     test $ac_count -gt 10 && break
3695   done
3696   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3697 esac
3698
3699
3700     $ac_path_GREP_found && break 3
3701   done
3702 done
3703
3704 done
3705 IFS=$as_save_IFS
3706
3707
3708 fi
3709
3710 GREP="$ac_cv_path_GREP"
3711 if test -z "$GREP"; then
3712   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3713 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3714    { (exit 1); exit 1; }; }
3715 fi
3716
3717 else
3718   ac_cv_path_GREP=$GREP
3719 fi
3720
3721
3722 fi
3723 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
3724 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
3725  GREP="$ac_cv_path_GREP"
3726
3727
3728 { echo "$as_me:$LINENO: checking for egrep" >&5
3729 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
3730 if test "${ac_cv_path_EGREP+set}" = set; then
3731   echo $ECHO_N "(cached) $ECHO_C" >&6
3732 else
3733   if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3734    then ac_cv_path_EGREP="$GREP -E"
3735    else
3736      # Extract the first word of "egrep" to use in msg output
3737 if test -z "$EGREP"; then
3738 set dummy egrep; ac_prog_name=$2
3739 if test "${ac_cv_path_EGREP+set}" = set; then
3740   echo $ECHO_N "(cached) $ECHO_C" >&6
3741 else
3742   ac_path_EGREP_found=false
3743 # Loop through the user's path and test for each of PROGNAME-LIST
3744 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3745 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3746 do
3747   IFS=$as_save_IFS
3748   test -z "$as_dir" && as_dir=.
3749   for ac_prog in egrep; do
3750   for ac_exec_ext in '' $ac_executable_extensions; do
3751     ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3752     { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
3753     # Check for GNU ac_path_EGREP and select it if it is found.
3754   # Check for GNU $ac_path_EGREP
3755 case `"$ac_path_EGREP" --version 2>&1` in
3756 *GNU*)
3757   ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3758 *)
3759   ac_count=0
3760   echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
3761   while :
3762   do
3763     cat "conftest.in" "conftest.in" >"conftest.tmp"
3764     mv "conftest.tmp" "conftest.in"
3765     cp "conftest.in" "conftest.nl"
3766     echo 'EGREP' >> "conftest.nl"
3767     "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3768     diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3769     ac_count=`expr $ac_count + 1`
3770     if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3771       # Best one so far, save it but keep looking for a better one
3772       ac_cv_path_EGREP="$ac_path_EGREP"
3773       ac_path_EGREP_max=$ac_count
3774     fi
3775     # 10*(2^10) chars as input seems more than enough
3776     test $ac_count -gt 10 && break
3777   done
3778   rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3779 esac
3780
3781
3782     $ac_path_EGREP_found && break 3
3783   done
3784 done
3785
3786 done
3787 IFS=$as_save_IFS
3788
3789
3790 fi
3791
3792 EGREP="$ac_cv_path_EGREP"
3793 if test -z "$EGREP"; then
3794   { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
3795 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
3796    { (exit 1); exit 1; }; }
3797 fi
3798
3799 else
3800   ac_cv_path_EGREP=$EGREP
3801 fi
3802
3803
3804    fi
3805 fi
3806 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
3807 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
3808  EGREP="$ac_cv_path_EGREP"
3809
3810
3811 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3812 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
3813 if test "${ac_cv_header_stdc+set}" = set; then
3814   echo $ECHO_N "(cached) $ECHO_C" >&6
3815 else
3816   cat >conftest.$ac_ext <<_ACEOF
3817 /* confdefs.h.  */
3818 _ACEOF
3819 cat confdefs.h >>conftest.$ac_ext
3820 cat >>conftest.$ac_ext <<_ACEOF
3821 /* end confdefs.h.  */
3822 #include <stdlib.h>
3823 #include <stdarg.h>
3824 #include <string.h>
3825 #include <float.h>
3826
3827 int
3828 main ()
3829 {
3830
3831   ;
3832   return 0;
3833 }
3834 _ACEOF
3835 rm -f conftest.$ac_objext
3836 if { (ac_try="$ac_compile"
3837 case "(($ac_try" in
3838   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3839   *) ac_try_echo=$ac_try;;
3840 esac
3841 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3842   (eval "$ac_compile") 2>conftest.er1
3843   ac_status=$?
3844   grep -v '^ *+' conftest.er1 >conftest.err
3845   rm -f conftest.er1
3846   cat conftest.err >&5
3847   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3848   (exit $ac_status); } &&
3849          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3850   { (case "(($ac_try" in
3851   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3852   *) ac_try_echo=$ac_try;;
3853 esac
3854 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3855   (eval "$ac_try") 2>&5
3856   ac_status=$?
3857   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858   (exit $ac_status); }; } &&
3859          { ac_try='test -s conftest.$ac_objext'
3860   { (case "(($ac_try" in
3861   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3862   *) ac_try_echo=$ac_try;;
3863 esac
3864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3865   (eval "$ac_try") 2>&5
3866   ac_status=$?
3867   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868   (exit $ac_status); }; }; then
3869   ac_cv_header_stdc=yes
3870 else
3871   echo "$as_me: failed program was:" >&5
3872 sed 's/^/| /' conftest.$ac_ext >&5
3873
3874         ac_cv_header_stdc=no
3875 fi
3876
3877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3878
3879 if test $ac_cv_header_stdc = yes; then
3880   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3881   cat >conftest.$ac_ext <<_ACEOF
3882 /* confdefs.h.  */
3883 _ACEOF
3884 cat confdefs.h >>conftest.$ac_ext
3885 cat >>conftest.$ac_ext <<_ACEOF
3886 /* end confdefs.h.  */
3887 #include <string.h>
3888
3889 _ACEOF
3890 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3891   $EGREP "memchr" >/dev/null 2>&1; then
3892   :
3893 else
3894   ac_cv_header_stdc=no
3895 fi
3896 rm -f conftest*
3897
3898 fi
3899
3900 if test $ac_cv_header_stdc = yes; then
3901   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3902   cat >conftest.$ac_ext <<_ACEOF
3903 /* confdefs.h.  */
3904 _ACEOF
3905 cat confdefs.h >>conftest.$ac_ext
3906 cat >>conftest.$ac_ext <<_ACEOF
3907 /* end confdefs.h.  */
3908 #include <stdlib.h>
3909
3910 _ACEOF
3911 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3912   $EGREP "free" >/dev/null 2>&1; then
3913   :
3914 else
3915   ac_cv_header_stdc=no
3916 fi
3917 rm -f conftest*
3918
3919 fi
3920
3921 if test $ac_cv_header_stdc = yes; then
3922   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3923   if test "$cross_compiling" = yes; then
3924   :
3925 else
3926   cat >conftest.$ac_ext <<_ACEOF
3927 /* confdefs.h.  */
3928 _ACEOF
3929 cat confdefs.h >>conftest.$ac_ext
3930 cat >>conftest.$ac_ext <<_ACEOF
3931 /* end confdefs.h.  */
3932 #include <ctype.h>
3933 #include <stdlib.h>
3934 #if ((' ' & 0x0FF) == 0x020)
3935 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3936 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3937 #else
3938 # define ISLOWER(c) \
3939                    (('a' <= (c) && (c) <= 'i') \
3940                      || ('j' <= (c) && (c) <= 'r') \
3941                      || ('s' <= (c) && (c) <= 'z'))
3942 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3943 #endif
3944
3945 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3946 int
3947 main ()
3948 {
3949   int i;
3950   for (i = 0; i < 256; i++)
3951     if (XOR (islower (i), ISLOWER (i))
3952         || toupper (i) != TOUPPER (i))
3953       return 2;
3954   return 0;
3955 }
3956 _ACEOF
3957 rm -f conftest$ac_exeext
3958 if { (ac_try="$ac_link"
3959 case "(($ac_try" in
3960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3961   *) ac_try_echo=$ac_try;;
3962 esac
3963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3964   (eval "$ac_link") 2>&5
3965   ac_status=$?
3966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3967   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3968   { (case "(($ac_try" in
3969   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3970   *) ac_try_echo=$ac_try;;
3971 esac
3972 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3973   (eval "$ac_try") 2>&5
3974   ac_status=$?
3975   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3976   (exit $ac_status); }; }; then
3977   :
3978 else
3979   echo "$as_me: program exited with status $ac_status" >&5
3980 echo "$as_me: failed program was:" >&5
3981 sed 's/^/| /' conftest.$ac_ext >&5
3982
3983 ( exit $ac_status )
3984 ac_cv_header_stdc=no
3985 fi
3986 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3987 fi
3988
3989
3990 fi
3991 fi
3992 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3993 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
3994 if test $ac_cv_header_stdc = yes; then
3995
3996 cat >>confdefs.h <<\_ACEOF
3997 #define STDC_HEADERS 1
3998 _ACEOF
3999
4000 fi
4001
4002 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
4003
4004
4005
4006
4007
4008
4009
4010
4011
4012 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
4013                   inttypes.h stdint.h unistd.h
4014 do
4015 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
4016 { echo "$as_me:$LINENO: checking for $ac_header" >&5
4017 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
4018 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
4019   echo $ECHO_N "(cached) $ECHO_C" >&6
4020 else
4021   cat >conftest.$ac_ext <<_ACEOF
4022 /* confdefs.h.  */
4023 _ACEOF
4024 cat confdefs.h >>conftest.$ac_ext
4025 cat >>conftest.$ac_ext <<_ACEOF
4026 /* end confdefs.h.  */
4027 $ac_includes_default
4028
4029 #include <$ac_header>
4030 _ACEOF
4031 rm -f conftest.$ac_objext
4032 if { (ac_try="$ac_compile"
4033 case "(($ac_try" in
4034   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4035   *) ac_try_echo=$ac_try;;
4036 esac
4037 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4038   (eval "$ac_compile") 2>conftest.er1
4039   ac_status=$?
4040   grep -v '^ *+' conftest.er1 >conftest.err
4041   rm -f conftest.er1
4042   cat conftest.err >&5
4043   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4044   (exit $ac_status); } &&
4045          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4046   { (case "(($ac_try" in
4047   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4048   *) ac_try_echo=$ac_try;;
4049 esac
4050 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4051   (eval "$ac_try") 2>&5
4052   ac_status=$?
4053   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4054   (exit $ac_status); }; } &&
4055          { ac_try='test -s conftest.$ac_objext'
4056   { (case "(($ac_try" in
4057   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4058   *) ac_try_echo=$ac_try;;
4059 esac
4060 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4061   (eval "$ac_try") 2>&5
4062   ac_status=$?
4063   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4064   (exit $ac_status); }; }; then
4065   eval "$as_ac_Header=yes"
4066 else
4067   echo "$as_me: failed program was:" >&5
4068 sed 's/^/| /' conftest.$ac_ext >&5
4069
4070         eval "$as_ac_Header=no"
4071 fi
4072
4073 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4074 fi
4075 ac_res=`eval echo '${'$as_ac_Header'}'`
4076                { echo "$as_me:$LINENO: result: $ac_res" >&5
4077 echo "${ECHO_T}$ac_res" >&6; }
4078 if test `eval echo '${'$as_ac_Header'}'` = yes; then
4079   cat >>confdefs.h <<_ACEOF
4080 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
4081 _ACEOF
4082
4083 fi
4084
4085 done
4086
4087
4088 { echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5
4089 echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6; }
4090 if test "${ac_cv_c_bigendian+set}" = set; then
4091   echo $ECHO_N "(cached) $ECHO_C" >&6
4092 else
4093   # See if sys/param.h defines the BYTE_ORDER macro.
4094 cat >conftest.$ac_ext <<_ACEOF
4095 /* confdefs.h.  */
4096 _ACEOF
4097 cat confdefs.h >>conftest.$ac_ext
4098 cat >>conftest.$ac_ext <<_ACEOF
4099 /* end confdefs.h.  */
4100 #include <sys/types.h>
4101 #include <sys/param.h>
4102
4103 int
4104 main ()
4105 {
4106 #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN
4107  bogus endian macros
4108 #endif
4109
4110   ;
4111   return 0;
4112 }
4113 _ACEOF
4114 rm -f conftest.$ac_objext
4115 if { (ac_try="$ac_compile"
4116 case "(($ac_try" in
4117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4118   *) ac_try_echo=$ac_try;;
4119 esac
4120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4121   (eval "$ac_compile") 2>conftest.er1
4122   ac_status=$?
4123   grep -v '^ *+' conftest.er1 >conftest.err
4124   rm -f conftest.er1
4125   cat conftest.err >&5
4126   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4127   (exit $ac_status); } &&
4128          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4129   { (case "(($ac_try" in
4130   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4131   *) ac_try_echo=$ac_try;;
4132 esac
4133 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4134   (eval "$ac_try") 2>&5
4135   ac_status=$?
4136   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4137   (exit $ac_status); }; } &&
4138          { ac_try='test -s conftest.$ac_objext'
4139   { (case "(($ac_try" in
4140   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4141   *) ac_try_echo=$ac_try;;
4142 esac
4143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4144   (eval "$ac_try") 2>&5
4145   ac_status=$?
4146   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4147   (exit $ac_status); }; }; then
4148   # It does; now see whether it defined to BIG_ENDIAN or not.
4149 cat >conftest.$ac_ext <<_ACEOF
4150 /* confdefs.h.  */
4151 _ACEOF
4152 cat confdefs.h >>conftest.$ac_ext
4153 cat >>conftest.$ac_ext <<_ACEOF
4154 /* end confdefs.h.  */
4155 #include <sys/types.h>
4156 #include <sys/param.h>
4157
4158 int
4159 main ()
4160 {
4161 #if BYTE_ORDER != BIG_ENDIAN
4162  not big endian
4163 #endif
4164
4165   ;
4166   return 0;
4167 }
4168 _ACEOF
4169 rm -f conftest.$ac_objext
4170 if { (ac_try="$ac_compile"
4171 case "(($ac_try" in
4172   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4173   *) ac_try_echo=$ac_try;;
4174 esac
4175 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4176   (eval "$ac_compile") 2>conftest.er1
4177   ac_status=$?
4178   grep -v '^ *+' conftest.er1 >conftest.err
4179   rm -f conftest.er1
4180   cat conftest.err >&5
4181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4182   (exit $ac_status); } &&
4183          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4184   { (case "(($ac_try" in
4185   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4186   *) ac_try_echo=$ac_try;;
4187 esac
4188 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4189   (eval "$ac_try") 2>&5
4190   ac_status=$?
4191   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4192   (exit $ac_status); }; } &&
4193          { ac_try='test -s conftest.$ac_objext'
4194   { (case "(($ac_try" in
4195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4196   *) ac_try_echo=$ac_try;;
4197 esac
4198 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4199   (eval "$ac_try") 2>&5
4200   ac_status=$?
4201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4202   (exit $ac_status); }; }; then
4203   ac_cv_c_bigendian=yes
4204 else
4205   echo "$as_me: failed program was:" >&5
4206 sed 's/^/| /' conftest.$ac_ext >&5
4207
4208         ac_cv_c_bigendian=no
4209 fi
4210
4211 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4212 else
4213   echo "$as_me: failed program was:" >&5
4214 sed 's/^/| /' conftest.$ac_ext >&5
4215
4216         # It does not; compile a test program.
4217 if test "$cross_compiling" = yes; then
4218   # try to guess the endianness by grepping values into an object file
4219   ac_cv_c_bigendian=unknown
4220   cat >conftest.$ac_ext <<_ACEOF
4221 /* confdefs.h.  */
4222 _ACEOF
4223 cat confdefs.h >>conftest.$ac_ext
4224 cat >>conftest.$ac_ext <<_ACEOF
4225 /* end confdefs.h.  */
4226 short int ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
4227 short int ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
4228 void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; }
4229 short int ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
4230 short int ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
4231 void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; }
4232 int
4233 main ()
4234 {
4235  _ascii (); _ebcdic ();
4236   ;
4237   return 0;
4238 }
4239 _ACEOF
4240 rm -f conftest.$ac_objext
4241 if { (ac_try="$ac_compile"
4242 case "(($ac_try" in
4243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4244   *) ac_try_echo=$ac_try;;
4245 esac
4246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4247   (eval "$ac_compile") 2>conftest.er1
4248   ac_status=$?
4249   grep -v '^ *+' conftest.er1 >conftest.err
4250   rm -f conftest.er1
4251   cat conftest.err >&5
4252   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4253   (exit $ac_status); } &&
4254          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
4255   { (case "(($ac_try" in
4256   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4257   *) ac_try_echo=$ac_try;;
4258 esac
4259 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4260   (eval "$ac_try") 2>&5
4261   ac_status=$?
4262   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4263   (exit $ac_status); }; } &&
4264          { ac_try='test -s conftest.$ac_objext'
4265   { (case "(($ac_try" in
4266   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4267   *) ac_try_echo=$ac_try;;
4268 esac
4269 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4270   (eval "$ac_try") 2>&5
4271   ac_status=$?
4272   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4273   (exit $ac_status); }; }; then
4274   if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then
4275   ac_cv_c_bigendian=yes
4276 fi
4277 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
4278   if test "$ac_cv_c_bigendian" = unknown; then
4279     ac_cv_c_bigendian=no
4280   else
4281     # finding both strings is unlikely to happen, but who knows?
4282     ac_cv_c_bigendian=unknown
4283   fi
4284 fi
4285 else
4286   echo "$as_me: failed program was:" >&5
4287 sed 's/^/| /' conftest.$ac_ext >&5
4288
4289
4290 fi
4291
4292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4293 else
4294   cat >conftest.$ac_ext <<_ACEOF
4295 /* confdefs.h.  */
4296 _ACEOF
4297 cat confdefs.h >>conftest.$ac_ext
4298 cat >>conftest.$ac_ext <<_ACEOF
4299 /* end confdefs.h.  */
4300 $ac_includes_default
4301 int
4302 main ()
4303 {
4304
4305   /* Are we little or big endian?  From Harbison&Steele.  */
4306   union
4307   {
4308     long int l;
4309     char c[sizeof (long int)];
4310   } u;
4311   u.l = 1;
4312   return u.c[sizeof (long int) - 1] == 1;
4313
4314   ;
4315   return 0;
4316 }
4317 _ACEOF
4318 rm -f conftest$ac_exeext
4319 if { (ac_try="$ac_link"
4320 case "(($ac_try" in
4321   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4322   *) ac_try_echo=$ac_try;;
4323 esac
4324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4325   (eval "$ac_link") 2>&5
4326   ac_status=$?
4327   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4328   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4329   { (case "(($ac_try" in
4330   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4331   *) ac_try_echo=$ac_try;;
4332 esac
4333 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4334   (eval "$ac_try") 2>&5
4335   ac_status=$?
4336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4337   (exit $ac_status); }; }; then
4338   ac_cv_c_bigendian=no
4339 else
4340   echo "$as_me: program exited with status $ac_status" >&5
4341 echo "$as_me: failed program was:" >&5
4342 sed 's/^/| /' conftest.$ac_ext >&5
4343
4344 ( exit $ac_status )
4345 ac_cv_c_bigendian=yes
4346 fi
4347 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
4348 fi
4349
4350
4351 fi
4352
4353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4354 fi
4355 { echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5
4356 echo "${ECHO_T}$ac_cv_c_bigendian" >&6; }
4357 case $ac_cv_c_bigendian in
4358   yes)
4359     ENDIAN=big
4360  ;;
4361   no)
4362     ENDIAN=little
4363  ;;
4364   *)
4365     { { echo "$as_me:$LINENO: error: unknown endianness
4366 presetting ac_cv_c_bigendian=no (or yes) will help" >&5
4367 echo "$as_me: error: unknown endianness
4368 presetting ac_cv_c_bigendian=no (or yes) will help" >&2;}
4369    { (exit 1); exit 1; }; } ;;
4370 esac
4371
4372
4373 if test "$cross_compiling" = yes; then
4374   LLVM_CROSS_COMPILING=1
4375
4376
4377 { echo "$as_me:$LINENO: checking for executable suffix on build platform" >&5
4378 echo $ECHO_N "checking for executable suffix on build platform... $ECHO_C" >&6; }
4379 if test "${ac_cv_build_exeext+set}" = set; then
4380   echo $ECHO_N "(cached) $ECHO_C" >&6
4381 else
4382   if test "$CYGWIN" = yes || test "$MINGW32" = yes; then
4383   ac_cv_build_exeext=.exe
4384 else
4385   ac_build_prefix=${build_alias}-
4386
4387   # Extract the first word of "${ac_build_prefix}gcc", so it can be a program name with args.
4388 set dummy ${ac_build_prefix}gcc; ac_word=$2
4389 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4390 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4391 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4392   echo $ECHO_N "(cached) $ECHO_C" >&6
4393 else
4394   if test -n "$BUILD_CC"; then
4395   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4396 else
4397 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4398 for as_dir in $PATH
4399 do
4400   IFS=$as_save_IFS
4401   test -z "$as_dir" && as_dir=.
4402   for ac_exec_ext in '' $ac_executable_extensions; do
4403   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4404     ac_cv_prog_BUILD_CC="${ac_build_prefix}gcc"
4405     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4406     break 2
4407   fi
4408 done
4409 done
4410 IFS=$as_save_IFS
4411
4412 fi
4413 fi
4414 BUILD_CC=$ac_cv_prog_BUILD_CC
4415 if test -n "$BUILD_CC"; then
4416   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4417 echo "${ECHO_T}$BUILD_CC" >&6; }
4418 else
4419   { echo "$as_me:$LINENO: result: no" >&5
4420 echo "${ECHO_T}no" >&6; }
4421 fi
4422
4423
4424   if test -z "$BUILD_CC"; then
4425      # Extract the first word of "gcc", so it can be a program name with args.
4426 set dummy gcc; ac_word=$2
4427 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4428 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4429 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4430   echo $ECHO_N "(cached) $ECHO_C" >&6
4431 else
4432   if test -n "$BUILD_CC"; then
4433   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4434 else
4435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4436 for as_dir in $PATH
4437 do
4438   IFS=$as_save_IFS
4439   test -z "$as_dir" && as_dir=.
4440   for ac_exec_ext in '' $ac_executable_extensions; do
4441   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4442     ac_cv_prog_BUILD_CC="gcc"
4443     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4444     break 2
4445   fi
4446 done
4447 done
4448 IFS=$as_save_IFS
4449
4450 fi
4451 fi
4452 BUILD_CC=$ac_cv_prog_BUILD_CC
4453 if test -n "$BUILD_CC"; then
4454   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4455 echo "${ECHO_T}$BUILD_CC" >&6; }
4456 else
4457   { echo "$as_me:$LINENO: result: no" >&5
4458 echo "${ECHO_T}no" >&6; }
4459 fi
4460
4461
4462      if test -z "$BUILD_CC"; then
4463        # Extract the first word of "cc", so it can be a program name with args.
4464 set dummy cc; ac_word=$2
4465 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4466 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4467 if test "${ac_cv_prog_BUILD_CC+set}" = set; then
4468   echo $ECHO_N "(cached) $ECHO_C" >&6
4469 else
4470   if test -n "$BUILD_CC"; then
4471   ac_cv_prog_BUILD_CC="$BUILD_CC" # Let the user override the test.
4472 else
4473   ac_prog_rejected=no
4474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4475 for as_dir in $PATH
4476 do
4477   IFS=$as_save_IFS
4478   test -z "$as_dir" && as_dir=.
4479   for ac_exec_ext in '' $ac_executable_extensions; do
4480   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4481     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
4482        ac_prog_rejected=yes
4483        continue
4484      fi
4485     ac_cv_prog_BUILD_CC="cc"
4486     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4487     break 2
4488   fi
4489 done
4490 done
4491 IFS=$as_save_IFS
4492
4493 if test $ac_prog_rejected = yes; then
4494   # We found a bogon in the path, so make sure we never use it.
4495   set dummy $ac_cv_prog_BUILD_CC
4496   shift
4497   if test $# != 0; then
4498     # We chose a different compiler from the bogus one.
4499     # However, it has the same basename, so the bogon will be chosen
4500     # first if we set BUILD_CC to just the basename; use the full file name.
4501     shift
4502     ac_cv_prog_BUILD_CC="$as_dir/$ac_word${1+' '}$@"
4503   fi
4504 fi
4505 fi
4506 fi
4507 BUILD_CC=$ac_cv_prog_BUILD_CC
4508 if test -n "$BUILD_CC"; then
4509   { echo "$as_me:$LINENO: result: $BUILD_CC" >&5
4510 echo "${ECHO_T}$BUILD_CC" >&6; }
4511 else
4512   { echo "$as_me:$LINENO: result: no" >&5
4513 echo "${ECHO_T}no" >&6; }
4514 fi
4515
4516
4517      fi
4518   fi
4519   test -z "$BUILD_CC" && { { echo "$as_me:$LINENO: error: no acceptable cc found in \$PATH" >&5
4520 echo "$as_me: error: no acceptable cc found in \$PATH" >&2;}
4521    { (exit 1); exit 1; }; }
4522   ac_build_link='${BUILD_CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
4523   rm -f conftest*
4524   echo 'int main () { return 0; }' > conftest.$ac_ext
4525   ac_cv_build_exeext=
4526   if { (eval echo "$as_me:$LINENO: \"$ac_build_link\"") >&5
4527   (eval $ac_build_link) 2>&5
4528   ac_status=$?
4529   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4530   (exit $ac_status); }; then
4531     for file in conftest.*; do
4532       case $file in
4533       *.c | *.o | *.obj | *.dSYM) ;;
4534       *) ac_cv_build_exeext=`echo $file | sed -e s/conftest//` ;;
4535       esac
4536     done
4537   else
4538     { { echo "$as_me:$LINENO: error: installation or configuration problem: compiler cannot create executables." >&5
4539 echo "$as_me: error: installation or configuration problem: compiler cannot create executables." >&2;}
4540    { (exit 1); exit 1; }; }
4541   fi
4542   rm -f conftest*
4543   test x"${ac_cv_build_exeext}" = x && ac_cv_build_exeext=blank
4544 fi
4545 fi
4546
4547 BUILD_EXEEXT=""
4548 test x"${ac_cv_build_exeext}" != xblank && BUILD_EXEEXT=${ac_cv_build_exeext}
4549 { echo "$as_me:$LINENO: result: ${ac_cv_build_exeext}" >&5
4550 echo "${ECHO_T}${ac_cv_build_exeext}" >&6; }
4551 ac_build_exeext=$BUILD_EXEEXT
4552
4553   ac_build_prefix=${build_alias}-
4554   # Extract the first word of "${ac_build_prefix}g++", so it can be a program name with args.
4555 set dummy ${ac_build_prefix}g++; ac_word=$2
4556 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4557 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4558 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4559   echo $ECHO_N "(cached) $ECHO_C" >&6
4560 else
4561   if test -n "$BUILD_CXX"; then
4562   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4563 else
4564 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4565 for as_dir in $PATH
4566 do
4567   IFS=$as_save_IFS
4568   test -z "$as_dir" && as_dir=.
4569   for ac_exec_ext in '' $ac_executable_extensions; do
4570   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4571     ac_cv_prog_BUILD_CXX="${ac_build_prefix}g++"
4572     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4573     break 2
4574   fi
4575 done
4576 done
4577 IFS=$as_save_IFS
4578
4579 fi
4580 fi
4581 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4582 if test -n "$BUILD_CXX"; then
4583   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4584 echo "${ECHO_T}$BUILD_CXX" >&6; }
4585 else
4586   { echo "$as_me:$LINENO: result: no" >&5
4587 echo "${ECHO_T}no" >&6; }
4588 fi
4589
4590
4591   if test -z "$BUILD_CXX"; then
4592      # Extract the first word of "g++", so it can be a program name with args.
4593 set dummy g++; ac_word=$2
4594 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4595 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4596 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4597   echo $ECHO_N "(cached) $ECHO_C" >&6
4598 else
4599   if test -n "$BUILD_CXX"; then
4600   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4601 else
4602 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4603 for as_dir in $PATH
4604 do
4605   IFS=$as_save_IFS
4606   test -z "$as_dir" && as_dir=.
4607   for ac_exec_ext in '' $ac_executable_extensions; do
4608   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4609     ac_cv_prog_BUILD_CXX="g++"
4610     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4611     break 2
4612   fi
4613 done
4614 done
4615 IFS=$as_save_IFS
4616
4617 fi
4618 fi
4619 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4620 if test -n "$BUILD_CXX"; then
4621   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4622 echo "${ECHO_T}$BUILD_CXX" >&6; }
4623 else
4624   { echo "$as_me:$LINENO: result: no" >&5
4625 echo "${ECHO_T}no" >&6; }
4626 fi
4627
4628
4629      if test -z "$BUILD_CXX"; then
4630        # Extract the first word of "c++", so it can be a program name with args.
4631 set dummy c++; ac_word=$2
4632 { echo "$as_me:$LINENO: checking for $ac_word" >&5
4633 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
4634 if test "${ac_cv_prog_BUILD_CXX+set}" = set; then
4635   echo $ECHO_N "(cached) $ECHO_C" >&6
4636 else
4637   if test -n "$BUILD_CXX"; then
4638   ac_cv_prog_BUILD_CXX="$BUILD_CXX" # Let the user override the test.
4639 else
4640   ac_prog_rejected=no
4641 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4642 for as_dir in $PATH
4643 do
4644   IFS=$as_save_IFS
4645   test -z "$as_dir" && as_dir=.
4646   for ac_exec_ext in '' $ac_executable_extensions; do
4647   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
4648     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/c++"; then
4649        ac_prog_rejected=yes
4650        continue
4651      fi
4652     ac_cv_prog_BUILD_CXX="c++"
4653     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
4654     break 2
4655   fi
4656 done
4657 done
4658 IFS=$as_save_IFS
4659
4660 if test $ac_prog_rejected = yes; then
4661   # We found a bogon in the path, so make sure we never use it.
4662   set dummy $ac_cv_prog_BUILD_CXX
4663   shift
4664   if test $# != 0; then
4665     # We chose a different compiler from the bogus one.
4666     # However, it has the same basename, so the bogon will be chosen
4667     # first if we set BUILD_CXX to just the basename; use the full file name.
4668     shift
4669     ac_cv_prog_BUILD_CXX="$as_dir/$ac_word${1+' '}$@"
4670   fi
4671 fi
4672 fi
4673 fi
4674 BUILD_CXX=$ac_cv_prog_BUILD_CXX
4675 if test -n "$BUILD_CXX"; then
4676   { echo "$as_me:$LINENO: result: $BUILD_CXX" >&5
4677 echo "${ECHO_T}$BUILD_CXX" >&6; }
4678 else
4679   { echo "$as_me:$LINENO: result: no" >&5
4680 echo "${ECHO_T}no" >&6; }
4681 fi
4682
4683
4684      fi
4685   fi
4686 else
4687   LLVM_CROSS_COMPILING=0
4688
4689 fi
4690
4691 if test -d ".svn" -o -d "${srcdir}/.svn" -o -d ".git" -o -d "${srcdir}/.git"; then
4692   cvsbuild="yes"
4693   optimize="no"
4694   CVSBUILD=CVSBUILD=1
4695
4696 else
4697   cvsbuild="no"
4698   optimize="yes"
4699 fi
4700
4701
4702 # Check whether --enable-optimized was given.
4703 if test "${enable_optimized+set}" = set; then
4704   enableval=$enable_optimized;
4705 else
4706   enableval=$optimize
4707 fi
4708
4709 if test ${enableval} = "no" ; then
4710   ENABLE_OPTIMIZED=
4711
4712 else
4713   ENABLE_OPTIMIZED=ENABLE_OPTIMIZED=1
4714
4715 fi
4716
4717 # Check whether --enable-profiling was given.
4718 if test "${enable_profiling+set}" = set; then
4719   enableval=$enable_profiling;
4720 else
4721   enableval="no"
4722 fi
4723
4724 if test ${enableval} = "no" ; then
4725   ENABLE_PROFILING=
4726
4727 else
4728   ENABLE_PROFILING=ENABLE_PROFILING=1
4729
4730 fi
4731
4732 # Check whether --enable-assertions was given.
4733 if test "${enable_assertions+set}" = set; then
4734   enableval=$enable_assertions;
4735 else
4736   enableval="yes"
4737 fi
4738
4739 if test ${enableval} = "yes" ; then
4740   DISABLE_ASSERTIONS=
4741
4742 else
4743   DISABLE_ASSERTIONS=DISABLE_ASSERTIONS=1
4744
4745 fi
4746
4747 # Check whether --enable-expensive-checks was given.
4748 if test "${enable_expensive_checks+set}" = set; then
4749   enableval=$enable_expensive_checks;
4750 else
4751   enableval="no"
4752 fi
4753
4754 if test ${enableval} = "yes" ; then
4755   ENABLE_EXPENSIVE_CHECKS=ENABLE_EXPENSIVE_CHECKS=1
4756
4757   EXPENSIVE_CHECKS=yes
4758
4759 else
4760   ENABLE_EXPENSIVE_CHECKS=
4761
4762   EXPENSIVE_CHECKS=no
4763
4764 fi
4765
4766 # Check whether --enable-debug-runtime was given.
4767 if test "${enable_debug_runtime+set}" = set; then
4768   enableval=$enable_debug_runtime;
4769 else
4770   enableval=no
4771 fi
4772
4773 if test ${enableval} = "no" ; then
4774   DEBUG_RUNTIME=
4775
4776 else
4777   DEBUG_RUNTIME=DEBUG_RUNTIME=1
4778
4779 fi
4780
4781 # Check whether --enable-debug-symbols was given.
4782 if test "${enable_debug_symbols+set}" = set; then
4783   enableval=$enable_debug_symbols;
4784 else
4785   enableval=no
4786 fi
4787
4788 if test ${enableval} = "no" ; then
4789   DEBUG_SYMBOLS=
4790
4791 else
4792   DEBUG_SYMBOLS=DEBUG_SYMBOLS=1
4793
4794 fi
4795
4796 # Check whether --enable-jit was given.
4797 if test "${enable_jit+set}" = set; then
4798   enableval=$enable_jit;
4799 else
4800   enableval=default
4801 fi
4802
4803 if test ${enableval} = "no"
4804 then
4805   JIT=
4806
4807 else
4808   case "$llvm_cv_target_arch" in
4809     x86)         TARGET_HAS_JIT=1
4810  ;;
4811     Sparc)       TARGET_HAS_JIT=0
4812  ;;
4813     PowerPC)     TARGET_HAS_JIT=1
4814  ;;
4815     x86_64)      TARGET_HAS_JIT=1
4816  ;;
4817     Alpha)       TARGET_HAS_JIT=1
4818  ;;
4819     ARM)         TARGET_HAS_JIT=1
4820  ;;
4821     Mips)        TARGET_HAS_JIT=0
4822  ;;
4823     XCore)       TARGET_HAS_JIT=0
4824  ;;
4825     MSP430)      TARGET_HAS_JIT=0
4826  ;;
4827     SystemZ)     TARGET_HAS_JIT=0
4828  ;;
4829     Blackfin)    TARGET_HAS_JIT=0
4830  ;;
4831     MBlaze)      TARGET_HAS_JIT=0
4832  ;;
4833     PTX)         TARGET_HAS_JIT=0
4834  ;;
4835     *)           TARGET_HAS_JIT=0
4836  ;;
4837   esac
4838 fi
4839
4840 # Check whether --enable-doxygen was given.
4841 if test "${enable_doxygen+set}" = set; then
4842   enableval=$enable_doxygen;
4843 else
4844   enableval=default
4845 fi
4846
4847 case "$enableval" in
4848   yes) ENABLE_DOXYGEN=1
4849  ;;
4850   no)  ENABLE_DOXYGEN=0
4851  ;;
4852   default) ENABLE_DOXYGEN=0
4853  ;;
4854   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&5
4855 echo "$as_me: error: Invalid setting for --enable-doxygen. Use \"yes\" or \"no\"" >&2;}
4856    { (exit 1); exit 1; }; } ;;
4857 esac
4858
4859 # Check whether --enable-threads was given.
4860 if test "${enable_threads+set}" = set; then
4861   enableval=$enable_threads;
4862 else
4863   enableval=default
4864 fi
4865
4866 case "$enableval" in
4867   yes) ENABLE_THREADS=1
4868  ;;
4869   no)  ENABLE_THREADS=0
4870  ;;
4871   default) ENABLE_THREADS=1
4872  ;;
4873   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&5
4874 echo "$as_me: error: Invalid setting for --enable-threads. Use \"yes\" or \"no\"" >&2;}
4875    { (exit 1); exit 1; }; } ;;
4876 esac
4877
4878 cat >>confdefs.h <<_ACEOF
4879 #define ENABLE_THREADS $ENABLE_THREADS
4880 _ACEOF
4881
4882
4883 # Check whether --enable-pic was given.
4884 if test "${enable_pic+set}" = set; then
4885   enableval=$enable_pic;
4886 else
4887   enableval=default
4888 fi
4889
4890 case "$enableval" in
4891   yes) ENABLE_PIC=1
4892  ;;
4893   no)  ENABLE_PIC=0
4894  ;;
4895   default) ENABLE_PIC=1
4896  ;;
4897   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&5
4898 echo "$as_me: error: Invalid setting for --enable-pic. Use \"yes\" or \"no\"" >&2;}
4899    { (exit 1); exit 1; }; } ;;
4900 esac
4901
4902 cat >>confdefs.h <<_ACEOF
4903 #define ENABLE_PIC $ENABLE_PIC
4904 _ACEOF
4905
4906
4907 # Check whether --enable-shared was given.
4908 if test "${enable_shared+set}" = set; then
4909   enableval=$enable_shared;
4910 else
4911   enableval=default
4912 fi
4913
4914 case "$enableval" in
4915   yes) ENABLE_SHARED=1
4916  ;;
4917   no)  ENABLE_SHARED=0
4918  ;;
4919   default) ENABLE_SHARED=0
4920  ;;
4921   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&5
4922 echo "$as_me: error: Invalid setting for --enable-shared. Use \"yes\" or \"no\"" >&2;}
4923    { (exit 1); exit 1; }; } ;;
4924 esac
4925
4926 # Check whether --enable-timestamps was given.
4927 if test "${enable_timestamps+set}" = set; then
4928   enableval=$enable_timestamps;
4929 else
4930   enableval=default
4931 fi
4932
4933 case "$enableval" in
4934   yes) ENABLE_TIMESTAMPS=1
4935  ;;
4936   no)  ENABLE_TIMESTAMPS=0
4937  ;;
4938   default) ENABLE_TIMESTAMPS=1
4939  ;;
4940   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&5
4941 echo "$as_me: error: Invalid setting for --enable-timestamps. Use \"yes\" or \"no\"" >&2;}
4942    { (exit 1); exit 1; }; } ;;
4943 esac
4944
4945 cat >>confdefs.h <<_ACEOF
4946 #define ENABLE_TIMESTAMPS $ENABLE_TIMESTAMPS
4947 _ACEOF
4948
4949
4950 TARGETS_TO_BUILD=""
4951 # Check whether --enable-targets was given.
4952 if test "${enable_targets+set}" = set; then
4953   enableval=$enable_targets;
4954 else
4955   enableval=all
4956 fi
4957
4958 if test "$enableval" = host-only ; then
4959   enableval=host
4960 fi
4961 case "$enableval" in
4962   all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 SystemZ Blackfin CBackend CppBackend MBlaze PTX" ;;
4963   *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
4964       case "$a_target" in
4965         x86)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4966         x86_64)   TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4967         sparc)    TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4968         powerpc)  TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4969         alpha)    TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4970         arm)      TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4971         mips)     TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4972         spu)      TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4973         xcore)    TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4974         msp430)   TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4975         systemz)  TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4976         blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4977         cbe)      TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
4978         cpp)      TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
4979         mblaze)   TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4980         ptx)      TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
4981         host) case "$llvm_cv_target_arch" in
4982             x86)         TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4983             x86_64)      TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
4984             Sparc)       TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
4985             PowerPC)     TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
4986             Alpha)       TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
4987             ARM)         TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
4988             Mips)        TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
4989             MBlaze)      TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
4990             CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
4991             XCore)       TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
4992             MSP430)      TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
4993             s390x)       TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
4994             Blackfin)    TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
4995             PTX)         TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
4996             *)       { { echo "$as_me:$LINENO: error: Can not set target to build" >&5
4997 echo "$as_me: error: Can not set target to build" >&2;}
4998    { (exit 1); exit 1; }; } ;;
4999           esac ;;
5000         *) { { echo "$as_me:$LINENO: error: Unrecognized target $a_target" >&5
5001 echo "$as_me: error: Unrecognized target $a_target" >&2;}
5002    { (exit 1); exit 1; }; } ;;
5003       esac
5004   done
5005   ;;
5006 esac
5007 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
5008
5009
5010 # Determine whether we are building LLVM support for the native architecture.
5011 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
5012 for a_target in $TARGETS_TO_BUILD; do
5013   if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
5014
5015 cat >>confdefs.h <<_ACEOF
5016 #define LLVM_NATIVE_ARCH $LLVM_NATIVE_ARCH
5017 _ACEOF
5018
5019     LLVM_NATIVE_TARGET="LLVMInitialize${LLVM_NATIVE_ARCH}Target"
5020     LLVM_NATIVE_TARGETINFO="LLVMInitialize${LLVM_NATIVE_ARCH}TargetInfo"
5021     LLVM_NATIVE_ASMPRINTER="LLVMInitialize${LLVM_NATIVE_ARCH}AsmPrinter"
5022
5023 cat >>confdefs.h <<_ACEOF
5024 #define LLVM_NATIVE_TARGET $LLVM_NATIVE_TARGET
5025 _ACEOF
5026
5027
5028 cat >>confdefs.h <<_ACEOF
5029 #define LLVM_NATIVE_TARGETINFO $LLVM_NATIVE_TARGETINFO
5030 _ACEOF
5031
5032
5033 cat >>confdefs.h <<_ACEOF
5034 #define LLVM_NATIVE_ASMPRINTER $LLVM_NATIVE_ASMPRINTER
5035 _ACEOF
5036
5037   fi
5038 done
5039
5040 # Build the LLVM_TARGET and LLVM_... macros for Targets.def and the individual
5041 # target feature def files.
5042 LLVM_ENUM_TARGETS=""
5043 LLVM_ENUM_ASM_PRINTERS=""
5044 LLVM_ENUM_ASM_PARSERS=""
5045 LLVM_ENUM_DISASSEMBLERS=""
5046 for target_to_build in $TARGETS_TO_BUILD; do
5047   LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS"
5048   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then
5049     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5050   fi
5051   # MC-ized AsmPrinters live in TARGET/InstPrinter, not AsmPrinter
5052   if test -f ${srcdir}/lib/Target/${target_to_build}/InstPrinter/Makefile ; then
5053     LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS";
5054   fi
5055   if test -f ${srcdir}/lib/Target/${target_to_build}/AsmParser/Makefile ; then
5056     LLVM_ENUM_ASM_PARSERS="LLVM_ASM_PARSER($target_to_build) $LLVM_ENUM_ASM_PARSERS";
5057   fi
5058   if test -f ${srcdir}/lib/Target/${target_to_build}/Disassembler/Makefile ; then
5059     LLVM_ENUM_DISASSEMBLERS="LLVM_DISASSEMBLER($target_to_build) $LLVM_ENUM_DISASSEMBLERS";
5060   fi
5061 done
5062
5063
5064
5065
5066
5067 # Check whether --enable-cbe-printf-a was given.
5068 if test "${enable_cbe_printf_a+set}" = set; then
5069   enableval=$enable_cbe_printf_a;
5070 else
5071   enableval=default
5072 fi
5073
5074 case "$enableval" in
5075   yes) ENABLE_CBE_PRINTF_A=1
5076  ;;
5077   no)  ENABLE_CBE_PRINTF_A=0
5078  ;;
5079   default)  ENABLE_CBE_PRINTF_A=1
5080  ;;
5081   *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&5
5082 echo "$as_me: error: Invalid setting for --enable-cbe-printf-a. Use \"yes\" or \"no\"" >&2;}
5083    { (exit 1); exit 1; }; } ;;
5084 esac
5085
5086 cat >>confdefs.h <<_ACEOF
5087 #define ENABLE_CBE_PRINTF_A $ENABLE_CBE_PRINTF_A
5088 _ACEOF
5089
5090
5091
5092 # Check whether --with-llvmgccdir was given.
5093 if test "${with_llvmgccdir+set}" = set; then
5094   withval=$with_llvmgccdir;
5095 else
5096   withval=default
5097 fi
5098
5099 case "$withval" in
5100   default) WITH_LLVMGCCDIR=default ;;
5101   /* | [A-Za-z]:[\\/]*)      WITH_LLVMGCCDIR=$withval ;;
5102   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-llvmgccdir. Provide full path" >&5
5103 echo "$as_me: error: Invalid path for --with-llvmgccdir. Provide full path" >&2;}
5104    { (exit 1); exit 1; }; } ;;
5105 esac
5106
5107
5108 # Check whether --with-llvmgcc was given.
5109 if test "${with_llvmgcc+set}" = set; then
5110   withval=$with_llvmgcc; LLVMGCC=$with_llvmgcc
5111       WITH_LLVMGCCDIR=""
5112 fi
5113
5114
5115
5116 # Check whether --with-llvmgxx was given.
5117 if test "${with_llvmgxx+set}" = set; then
5118   withval=$with_llvmgxx; LLVMGXX=$with_llvmgxx
5119     WITH_LLVMGCCDIR=""
5120 fi
5121
5122
5123 if test -n "$LLVMGCC"; then
5124    LLVMGCCCOMMAND="$LLVMGCC"
5125 fi
5126
5127 if test -n "$LLVMGXX"; then
5128    LLVMGXXCOMMAND="$LLVMGXX"
5129 fi
5130
5131 if test -n "$LLVMGCC" && test -z "$LLVMGXX"; then
5132    { { echo "$as_me:$LINENO: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&5
5133 echo "$as_me: error: Invalid llvm-g++. Use --with-llvmgxx when --with-llvmgcc is used" >&2;}
5134    { (exit 1); exit 1; }; };
5135 fi
5136
5137 if test -n "$LLVMGXX" && test -z "$LLVMGCC"; then
5138    { { echo "$as_me:$LINENO: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&5
5139 echo "$as_me: error: Invalid llvm-gcc. Use --with-llvmgcc when --with-llvmgxx is used" >&2;}
5140    { (exit 1); exit 1; }; };
5141 fi
5142
5143
5144 # Check whether --with-clang was given.
5145 if test "${with_clang+set}" = set; then
5146   withval=$with_clang;
5147 else
5148   with_clang=default
5149 fi
5150
5151
5152
5153 # Check whether --with-built-clang was given.
5154 if test "${with_built_clang+set}" = set; then
5155   withval=$with_built_clang;
5156 else
5157   with_built_clang=check
5158 fi
5159
5160
5161 { echo "$as_me:$LINENO: checking clang compiler" >&5
5162 echo $ECHO_N "checking clang compiler... $ECHO_C" >&6; }
5163 WITH_CLANGPATH=""
5164 WITH_BUILT_CLANG=0
5165 if test "$with_clang" != "default"; then
5166    WITH_CLANGPATH="$with_clang"
5167    if ! test -x "$WITH_CLANGPATH"; then
5168      { { echo "$as_me:$LINENO: error: invalid --with-clang, path does not specify an executable" >&5
5169 echo "$as_me: error: invalid --with-clang, path does not specify an executable" >&2;}
5170    { (exit 1); exit 1; }; }
5171    fi
5172 elif test "$with_built_clang" = "yes"; then
5173    WITH_BUILT_CLANG=1
5174 elif test "$with_built_clang" = "no"; then
5175    WITH_BUILT_CLANG=0
5176 else
5177    if test "$with_built_clang" != "check"; then
5178       { { echo "$as_me:$LINENO: error: invalid value for --with-built-clang." >&5
5179 echo "$as_me: error: invalid value for --with-built-clang." >&2;}
5180    { (exit 1); exit 1; }; }
5181    fi
5182
5183    if test -f ${srcdir}/tools/clang/README.txt; then
5184      WITH_BUILT_CLANG=1
5185    fi
5186 fi
5187
5188 if ! test -z "$WITH_CLANGPATH"; then
5189    { echo "$as_me:$LINENO: result: $WITH_CLANGPATH" >&5
5190 echo "${ECHO_T}$WITH_CLANGPATH" >&6; }
5191    WITH_CLANGXXPATH=`"$WITH_CLANGPATH" --print-prog-name=clang++`
5192 elif test "$WITH_BUILT_CLANG" = "1"; then
5193    { echo "$as_me:$LINENO: result: built" >&5
5194 echo "${ECHO_T}built" >&6; }
5195 else
5196    { echo "$as_me:$LINENO: result: none" >&5
5197 echo "${ECHO_T}none" >&6; }
5198 fi
5199 CLANGPATH=$WITH_CLANGPATH
5200
5201 CLANGXXPATH=$WITH_CLANGXXPATH
5202
5203 ENABLE_BUILT_CLANG=$WITH_BUILT_CLANG
5204
5205
5206
5207 # Check whether --with-optimize-option was given.
5208 if test "${with_optimize_option+set}" = set; then
5209   withval=$with_optimize_option;
5210 else
5211   withval=default
5212 fi
5213
5214 { echo "$as_me:$LINENO: checking optimization flags" >&5
5215 echo $ECHO_N "checking optimization flags... $ECHO_C" >&6; }
5216 case "$withval" in
5217   default)
5218     case "$llvm_cv_os_type" in
5219     FreeBSD) optimize_option=-O2 ;;
5220     MingW) optimize_option=-O2 ;;
5221     *)     optimize_option=-O3 ;;
5222     esac ;;
5223   *) optimize_option="$withval" ;;
5224 esac
5225 OPTIMIZE_OPTION=$optimize_option
5226
5227 { echo "$as_me:$LINENO: result: $optimize_option" >&5
5228 echo "${ECHO_T}$optimize_option" >&6; }
5229
5230
5231 # Check whether --with-extra-options was given.
5232 if test "${with_extra_options+set}" = set; then
5233   withval=$with_extra_options;
5234 else
5235   withval=default
5236 fi
5237
5238 case "$withval" in
5239   default) EXTRA_OPTIONS= ;;
5240   *) EXTRA_OPTIONS=$withval ;;
5241 esac
5242 EXTRA_OPTIONS=$EXTRA_OPTIONS
5243
5244
5245 # Check whether --enable-bindings was given.
5246 if test "${enable_bindings+set}" = set; then
5247   enableval=$enable_bindings;
5248 else
5249   enableval=default
5250 fi
5251
5252 BINDINGS_TO_BUILD=""
5253 case "$enableval" in
5254   yes | default | auto) BINDINGS_TO_BUILD="auto" ;;
5255   all ) BINDINGS_TO_BUILD="ocaml" ;;
5256   none | no) BINDINGS_TO_BUILD="" ;;
5257   *)for a_binding in `echo $enableval|sed -e 's/,/ /g' ` ; do
5258       case "$a_binding" in
5259         ocaml) BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD" ;;
5260         *) { { echo "$as_me:$LINENO: error: Unrecognized binding $a_binding" >&5
5261 echo "$as_me: error: Unrecognized binding $a_binding" >&2;}
5262    { (exit 1); exit 1; }; } ;;
5263       esac
5264   done
5265   ;;
5266 esac
5267
5268
5269 # Check whether --with-ocaml-libdir was given.
5270 if test "${with_ocaml_libdir+set}" = set; then
5271   withval=$with_ocaml_libdir;
5272 else
5273   withval=auto
5274 fi
5275
5276 case "$withval" in
5277   auto) with_ocaml_libdir="$withval" ;;
5278   /* | [A-Za-z]:[\\/]*) with_ocaml_libdir="$withval" ;;
5279   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-ocaml-libdir. Provide full path" >&5
5280 echo "$as_me: error: Invalid path for --with-ocaml-libdir. Provide full path" >&2;}
5281    { (exit 1); exit 1; }; } ;;
5282 esac
5283
5284
5285 # Check whether --with-clang-resource-dir was given.
5286 if test "${with_clang_resource_dir+set}" = set; then
5287   withval=$with_clang_resource_dir;
5288 else
5289   withval=""
5290 fi
5291
5292
5293 cat >>confdefs.h <<_ACEOF
5294 #define CLANG_RESOURCE_DIR "$withval"
5295 _ACEOF
5296
5297
5298
5299 # Check whether --with-c-include-dirs was given.
5300 if test "${with_c_include_dirs+set}" = set; then
5301   withval=$with_c_include_dirs;
5302 else
5303   withval=""
5304 fi
5305
5306
5307 cat >>confdefs.h <<_ACEOF
5308 #define C_INCLUDE_DIRS "$withval"
5309 _ACEOF
5310
5311
5312
5313 # Check whether --with-cxx-include-root was given.
5314 if test "${with_cxx_include_root+set}" = set; then
5315   withval=$with_cxx_include_root;
5316 else
5317   withval=""
5318 fi
5319
5320
5321 cat >>confdefs.h <<_ACEOF
5322 #define CXX_INCLUDE_ROOT "$withval"
5323 _ACEOF
5324
5325
5326
5327 # Check whether --with-cxx-include-arch was given.
5328 if test "${with_cxx_include_arch+set}" = set; then
5329   withval=$with_cxx_include_arch;
5330 else
5331   withval=""
5332 fi
5333
5334
5335 cat >>confdefs.h <<_ACEOF
5336 #define CXX_INCLUDE_ARCH "$withval"
5337 _ACEOF
5338
5339
5340
5341 # Check whether --with-cxx-include-32bit-dir was given.
5342 if test "${with_cxx_include_32bit_dir+set}" = set; then
5343   withval=$with_cxx_include_32bit_dir;
5344 else
5345   withval=""
5346 fi
5347
5348
5349 cat >>confdefs.h <<_ACEOF
5350 #define CXX_INCLUDE_32BIT_DIR "$withval"
5351 _ACEOF
5352
5353
5354
5355 # Check whether --with-cxx-include-64bit-dir was given.
5356 if test "${with_cxx_include_64bit_dir+set}" = set; then
5357   withval=$with_cxx_include_64bit_dir;
5358 else
5359   withval=""
5360 fi
5361
5362
5363 cat >>confdefs.h <<_ACEOF
5364 #define CXX_INCLUDE_64BIT_DIR "$withval"
5365 _ACEOF
5366
5367
5368
5369 # Check whether --with-binutils-include was given.
5370 if test "${with_binutils_include+set}" = set; then
5371   withval=$with_binutils_include;
5372 else
5373   withval=default
5374 fi
5375
5376 case "$withval" in
5377   default) WITH_BINUTILS_INCDIR=default ;;
5378   /* | [A-Za-z]:[\\/]*)      WITH_BINUTILS_INCDIR=$withval ;;
5379   *) { { echo "$as_me:$LINENO: error: Invalid path for --with-binutils-include. Provide full path" >&5
5380 echo "$as_me: error: Invalid path for --with-binutils-include. Provide full path" >&2;}
5381    { (exit 1); exit 1; }; } ;;
5382 esac
5383 if test "x$WITH_BINUTILS_INCDIR" != xdefault ; then
5384   BINUTILS_INCDIR=$WITH_BINUTILS_INCDIR
5385
5386   if test ! -f "$WITH_BINUTILS_INCDIR/plugin-api.h"; then
5387      echo "$WITH_BINUTILS_INCDIR/plugin-api.h"
5388      { { echo "$as_me:$LINENO: error: Invalid path to directory containing plugin-api.h." >&5
5389 echo "$as_me: error: Invalid path to directory containing plugin-api.h." >&2;}
5390    { (exit 1); exit 1; }; };
5391   fi
5392 fi
5393
5394 # Check whether --enable-libffi was given.
5395 if test "${enable_libffi+set}" = set; then
5396   enableval=$enable_libffi; case "$enableval" in
5397     yes) llvm_cv_enable_libffi="yes" ;;
5398     no)  llvm_cv_enable_libffi="no"  ;;
5399     *) { { echo "$as_me:$LINENO: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&5
5400 echo "$as_me: error: Invalid setting for --enable-libffi. Use \"yes\" or \"no\"" >&2;}
5401    { (exit 1); exit 1; }; } ;;
5402   esac
5403 else
5404   llvm_cv_enable_libffi=no
5405 fi
5406
5407
5408
5409 ac_ext=c
5410 ac_cpp='$CPP $CPPFLAGS'
5411 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5412 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5413 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5414 { echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
5415 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6; }
5416 # On Suns, sometimes $CPP names a directory.
5417 if test -n "$CPP" && test -d "$CPP"; then
5418   CPP=
5419 fi
5420 if test -z "$CPP"; then
5421   if test "${ac_cv_prog_CPP+set}" = set; then
5422   echo $ECHO_N "(cached) $ECHO_C" >&6
5423 else
5424       # Double quotes because CPP needs to be expanded
5425     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5426     do
5427       ac_preproc_ok=false
5428 for ac_c_preproc_warn_flag in '' yes
5429 do
5430   # Use a header file that comes with gcc, so configuring glibc
5431   # with a fresh cross-compiler works.
5432   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5433   # <limits.h> exists even on freestanding compilers.
5434   # On the NeXT, cc -E runs the code through the compiler's parser,
5435   # not just through cpp. "Syntax error" is here to catch this case.
5436   cat >conftest.$ac_ext <<_ACEOF
5437 /* confdefs.h.  */
5438 _ACEOF
5439 cat confdefs.h >>conftest.$ac_ext
5440 cat >>conftest.$ac_ext <<_ACEOF
5441 /* end confdefs.h.  */
5442 #ifdef __STDC__
5443 # include <limits.h>
5444 #else
5445 # include <assert.h>
5446 #endif
5447                      Syntax error
5448 _ACEOF
5449 if { (ac_try="$ac_cpp conftest.$ac_ext"
5450 case "(($ac_try" in
5451   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5452   *) ac_try_echo=$ac_try;;
5453 esac
5454 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5455   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5456   ac_status=$?
5457   grep -v '^ *+' conftest.er1 >conftest.err
5458   rm -f conftest.er1
5459   cat conftest.err >&5
5460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5461   (exit $ac_status); } >/dev/null; then
5462   if test -s conftest.err; then
5463     ac_cpp_err=$ac_c_preproc_warn_flag
5464     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5465   else
5466     ac_cpp_err=
5467   fi
5468 else
5469   ac_cpp_err=yes
5470 fi
5471 if test -z "$ac_cpp_err"; then
5472   :
5473 else
5474   echo "$as_me: failed program was:" >&5
5475 sed 's/^/| /' conftest.$ac_ext >&5
5476
5477   # Broken: fails on valid input.
5478 continue
5479 fi
5480
5481 rm -f conftest.err conftest.$ac_ext
5482
5483   # OK, works on sane cases.  Now check whether nonexistent headers
5484   # can be detected and how.
5485   cat >conftest.$ac_ext <<_ACEOF
5486 /* confdefs.h.  */
5487 _ACEOF
5488 cat confdefs.h >>conftest.$ac_ext
5489 cat >>conftest.$ac_ext <<_ACEOF
5490 /* end confdefs.h.  */
5491 #include <ac_nonexistent.h>
5492 _ACEOF
5493 if { (ac_try="$ac_cpp conftest.$ac_ext"
5494 case "(($ac_try" in
5495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5496   *) ac_try_echo=$ac_try;;
5497 esac
5498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5499   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5500   ac_status=$?
5501   grep -v '^ *+' conftest.er1 >conftest.err
5502   rm -f conftest.er1
5503   cat conftest.err >&5
5504   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5505   (exit $ac_status); } >/dev/null; then
5506   if test -s conftest.err; then
5507     ac_cpp_err=$ac_c_preproc_warn_flag
5508     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5509   else
5510     ac_cpp_err=
5511   fi
5512 else
5513   ac_cpp_err=yes
5514 fi
5515 if test -z "$ac_cpp_err"; then
5516   # Broken: success on invalid input.
5517 continue
5518 else
5519   echo "$as_me: failed program was:" >&5
5520 sed 's/^/| /' conftest.$ac_ext >&5
5521
5522   # Passes both tests.
5523 ac_preproc_ok=:
5524 break
5525 fi
5526
5527 rm -f conftest.err conftest.$ac_ext
5528
5529 done
5530 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5531 rm -f conftest.err conftest.$ac_ext
5532 if $ac_preproc_ok; then
5533   break
5534 fi
5535
5536     done
5537     ac_cv_prog_CPP=$CPP
5538
5539 fi
5540   CPP=$ac_cv_prog_CPP
5541 else
5542   ac_cv_prog_CPP=$CPP
5543 fi
5544 { echo "$as_me:$LINENO: result: $CPP" >&5
5545 echo "${ECHO_T}$CPP" >&6; }
5546 ac_preproc_ok=false
5547 for ac_c_preproc_warn_flag in '' yes
5548 do
5549   # Use a header file that comes with gcc, so configuring glibc
5550   # with a fresh cross-compiler works.
5551   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5552   # <limits.h> exists even on freestanding compilers.
5553   # On the NeXT, cc -E runs the code through the compiler's parser,
5554   # not just through cpp. "Syntax error" is here to catch this case.
5555   cat >conftest.$ac_ext <<_ACEOF
5556 /* confdefs.h.  */
5557 _ACEOF
5558 cat confdefs.h >>conftest.$ac_ext
5559 cat >>conftest.$ac_ext <<_ACEOF
5560 /* end confdefs.h.  */
5561 #ifdef __STDC__
5562 # include <limits.h>
5563 #else
5564 # include <assert.h>
5565 #endif
5566                      Syntax error
5567 _ACEOF
5568 if { (ac_try="$ac_cpp conftest.$ac_ext"
5569 case "(($ac_try" in
5570   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5571   *) ac_try_echo=$ac_try;;
5572 esac
5573 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5574   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5575   ac_status=$?
5576   grep -v '^ *+' conftest.er1 >conftest.err
5577   rm -f conftest.er1
5578   cat conftest.err >&5
5579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5580   (exit $ac_status); } >/dev/null; then
5581   if test -s conftest.err; then
5582     ac_cpp_err=$ac_c_preproc_warn_flag
5583     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5584   else
5585     ac_cpp_err=
5586   fi
5587 else
5588   ac_cpp_err=yes
5589 fi
5590 if test -z "$ac_cpp_err"; then
5591   :
5592 else
5593   echo "$as_me: failed program was:" >&5
5594 sed 's/^/| /' conftest.$ac_ext >&5
5595
5596   # Broken: fails on valid input.
5597 continue
5598 fi
5599
5600 rm -f conftest.err conftest.$ac_ext
5601
5602   # OK, works on sane cases.  Now check whether nonexistent headers
5603   # can be detected and how.
5604   cat >conftest.$ac_ext <<_ACEOF
5605 /* confdefs.h.  */
5606 _ACEOF
5607 cat confdefs.h >>conftest.$ac_ext
5608 cat >>conftest.$ac_ext <<_ACEOF
5609 /* end confdefs.h.  */
5610 #include <ac_nonexistent.h>
5611 _ACEOF
5612 if { (ac_try="$ac_cpp conftest.$ac_ext"
5613 case "(($ac_try" in
5614   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5615   *) ac_try_echo=$ac_try;;
5616 esac
5617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5618   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5619   ac_status=$?
5620   grep -v '^ *+' conftest.er1 >conftest.err
5621   rm -f conftest.er1
5622   cat conftest.err >&5
5623   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5624   (exit $ac_status); } >/dev/null; then
5625   if test -s conftest.err; then
5626     ac_cpp_err=$ac_c_preproc_warn_flag
5627     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
5628   else
5629     ac_cpp_err=
5630   fi
5631 else
5632   ac_cpp_err=yes
5633 fi
5634 if test -z "$ac_cpp_err"; then
5635   # Broken: success on invalid input.
5636 continue
5637 else
5638   echo "$as_me: failed program was:" >&5
5639 sed 's/^/| /' conftest.$ac_ext >&5
5640
5641   # Passes both tests.
5642 ac_preproc_ok=:
5643 break
5644 fi
5645
5646 rm -f conftest.err conftest.$ac_ext
5647
5648 done
5649 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5650 rm -f conftest.err conftest.$ac_ext
5651 if $ac_preproc_ok; then
5652   :
5653 else
5654   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
5655 See \`config.log' for more details." >&5
5656 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
5657 See \`config.log' for more details." >&2;}
5658    { (exit 1); exit 1; }; }
5659 fi
5660
5661 ac_ext=c
5662 ac_cpp='$CPP $CPPFLAGS'
5663 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5664 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5665 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5666
5667 ac_ext=c
5668 ac_cpp='$CPP $CPPFLAGS'
5669 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5670 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5671 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5672 if test -n "$ac_tool_prefix"; then
5673   for ac_prog in gcc
5674   do
5675     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5676 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5677 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5678 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5679 if test "${ac_cv_prog_CC+set}" = set; then
5680   echo $ECHO_N "(cached) $ECHO_C" >&6
5681 else
5682   if test -n "$CC"; then
5683   ac_cv_prog_CC="$CC" # Let the user override the test.
5684 else
5685 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5686 for as_dir in $PATH
5687 do
5688   IFS=$as_save_IFS
5689   test -z "$as_dir" && as_dir=.
5690   for ac_exec_ext in '' $ac_executable_extensions; do
5691   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5692     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
5693     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5694     break 2
5695   fi
5696 done
5697 done
5698 IFS=$as_save_IFS
5699
5700 fi
5701 fi
5702 CC=$ac_cv_prog_CC
5703 if test -n "$CC"; then
5704   { echo "$as_me:$LINENO: result: $CC" >&5
5705 echo "${ECHO_T}$CC" >&6; }
5706 else
5707   { echo "$as_me:$LINENO: result: no" >&5
5708 echo "${ECHO_T}no" >&6; }
5709 fi
5710
5711
5712     test -n "$CC" && break
5713   done
5714 fi
5715 if test -z "$CC"; then
5716   ac_ct_CC=$CC
5717   for ac_prog in gcc
5718 do
5719   # Extract the first word of "$ac_prog", so it can be a program name with args.
5720 set dummy $ac_prog; ac_word=$2
5721 { echo "$as_me:$LINENO: checking for $ac_word" >&5
5722 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
5723 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
5724   echo $ECHO_N "(cached) $ECHO_C" >&6
5725 else
5726   if test -n "$ac_ct_CC"; then
5727   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
5728 else
5729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5730 for as_dir in $PATH
5731 do
5732   IFS=$as_save_IFS
5733   test -z "$as_dir" && as_dir=.
5734   for ac_exec_ext in '' $ac_executable_extensions; do
5735   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
5736     ac_cv_prog_ac_ct_CC="$ac_prog"
5737     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
5738     break 2
5739   fi
5740 done
5741 done
5742 IFS=$as_save_IFS
5743
5744 fi
5745 fi
5746 ac_ct_CC=$ac_cv_prog_ac_ct_CC
5747 if test -n "$ac_ct_CC"; then
5748   { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
5749 echo "${ECHO_T}$ac_ct_CC" >&6; }
5750 else
5751   { echo "$as_me:$LINENO: result: no" >&5
5752 echo "${ECHO_T}no" >&6; }
5753 fi
5754
5755
5756   test -n "$ac_ct_CC" && break
5757 done
5758
5759   if test "x$ac_ct_CC" = x; then
5760     CC=""
5761   else
5762     case $cross_compiling:$ac_tool_warned in
5763 yes:)
5764 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
5765 whose name does not start with the host triplet.  If you think this
5766 configuration is useful to you, please write to autoconf@gnu.org." >&5
5767 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
5768 whose name does not start with the host triplet.  If you think this
5769 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
5770 ac_tool_warned=yes ;;
5771 esac
5772     CC=$ac_ct_CC
5773   fi
5774 fi
5775
5776
5777 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
5778 See \`config.log' for more details." >&5
5779 echo "$as_me: error: no acceptable C compiler found in \$PATH
5780 See \`config.log' for more details." >&2;}
5781    { (exit 1); exit 1; }; }
5782
5783 # Provide some information about the compiler.
5784 echo "$as_me:$LINENO: checking for C compiler version" >&5
5785 ac_compiler=`set X $ac_compile; echo $2`
5786 { (ac_try="$ac_compiler --version >&5"
5787 case "(($ac_try" in
5788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5789   *) ac_try_echo=$ac_try;;
5790 esac
5791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5792   (eval "$ac_compiler --version >&5") 2>&5
5793   ac_status=$?
5794   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5795   (exit $ac_status); }
5796 { (ac_try="$ac_compiler -v >&5"
5797 case "(($ac_try" in
5798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5799   *) ac_try_echo=$ac_try;;
5800 esac
5801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5802   (eval "$ac_compiler -v >&5") 2>&5
5803   ac_status=$?
5804   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5805   (exit $ac_status); }
5806 { (ac_try="$ac_compiler -V >&5"
5807 case "(($ac_try" in
5808   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5809   *) ac_try_echo=$ac_try;;
5810 esac
5811 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5812   (eval "$ac_compiler -V >&5") 2>&5
5813   ac_status=$?
5814   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5815   (exit $ac_status); }
5816
5817 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
5818 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
5819 if test "${ac_cv_c_compiler_gnu+set}" = set; then
5820   echo $ECHO_N "(cached) $ECHO_C" >&6
5821 else
5822   cat >conftest.$ac_ext <<_ACEOF
5823 /* confdefs.h.  */
5824 _ACEOF
5825 cat confdefs.h >>conftest.$ac_ext
5826 cat >>conftest.$ac_ext <<_ACEOF
5827 /* end confdefs.h.  */
5828
5829 int
5830 main ()
5831 {
5832 #ifndef __GNUC__
5833        choke me
5834 #endif
5835
5836   ;
5837   return 0;
5838 }
5839 _ACEOF
5840 rm -f conftest.$ac_objext
5841 if { (ac_try="$ac_compile"
5842 case "(($ac_try" in
5843   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5844   *) ac_try_echo=$ac_try;;
5845 esac
5846 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5847   (eval "$ac_compile") 2>conftest.er1
5848   ac_status=$?
5849   grep -v '^ *+' conftest.er1 >conftest.err
5850   rm -f conftest.er1
5851   cat conftest.err >&5
5852   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5853   (exit $ac_status); } &&
5854          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5855   { (case "(($ac_try" in
5856   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5857   *) ac_try_echo=$ac_try;;
5858 esac
5859 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5860   (eval "$ac_try") 2>&5
5861   ac_status=$?
5862   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5863   (exit $ac_status); }; } &&
5864          { ac_try='test -s conftest.$ac_objext'
5865   { (case "(($ac_try" in
5866   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5867   *) ac_try_echo=$ac_try;;
5868 esac
5869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5870   (eval "$ac_try") 2>&5
5871   ac_status=$?
5872   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873   (exit $ac_status); }; }; then
5874   ac_compiler_gnu=yes
5875 else
5876   echo "$as_me: failed program was:" >&5
5877 sed 's/^/| /' conftest.$ac_ext >&5
5878
5879         ac_compiler_gnu=no
5880 fi
5881
5882 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5883 ac_cv_c_compiler_gnu=$ac_compiler_gnu
5884
5885 fi
5886 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
5887 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
5888 GCC=`test $ac_compiler_gnu = yes && echo yes`
5889 ac_test_CFLAGS=${CFLAGS+set}
5890 ac_save_CFLAGS=$CFLAGS
5891 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
5892 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
5893 if test "${ac_cv_prog_cc_g+set}" = set; then
5894   echo $ECHO_N "(cached) $ECHO_C" >&6
5895 else
5896   ac_save_c_werror_flag=$ac_c_werror_flag
5897    ac_c_werror_flag=yes
5898    ac_cv_prog_cc_g=no
5899    CFLAGS="-g"
5900    cat >conftest.$ac_ext <<_ACEOF
5901 /* confdefs.h.  */
5902 _ACEOF
5903 cat confdefs.h >>conftest.$ac_ext
5904 cat >>conftest.$ac_ext <<_ACEOF
5905 /* end confdefs.h.  */
5906
5907 int
5908 main ()
5909 {
5910
5911   ;
5912   return 0;
5913 }
5914 _ACEOF
5915 rm -f conftest.$ac_objext
5916 if { (ac_try="$ac_compile"
5917 case "(($ac_try" in
5918   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5919   *) ac_try_echo=$ac_try;;
5920 esac
5921 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5922   (eval "$ac_compile") 2>conftest.er1
5923   ac_status=$?
5924   grep -v '^ *+' conftest.er1 >conftest.err
5925   rm -f conftest.er1
5926   cat conftest.err >&5
5927   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5928   (exit $ac_status); } &&
5929          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5930   { (case "(($ac_try" in
5931   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5932   *) ac_try_echo=$ac_try;;
5933 esac
5934 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5935   (eval "$ac_try") 2>&5
5936   ac_status=$?
5937   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5938   (exit $ac_status); }; } &&
5939          { ac_try='test -s conftest.$ac_objext'
5940   { (case "(($ac_try" in
5941   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5942   *) ac_try_echo=$ac_try;;
5943 esac
5944 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5945   (eval "$ac_try") 2>&5
5946   ac_status=$?
5947   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5948   (exit $ac_status); }; }; then
5949   ac_cv_prog_cc_g=yes
5950 else
5951   echo "$as_me: failed program was:" >&5
5952 sed 's/^/| /' conftest.$ac_ext >&5
5953
5954         CFLAGS=""
5955       cat >conftest.$ac_ext <<_ACEOF
5956 /* confdefs.h.  */
5957 _ACEOF
5958 cat confdefs.h >>conftest.$ac_ext
5959 cat >>conftest.$ac_ext <<_ACEOF
5960 /* end confdefs.h.  */
5961
5962 int
5963 main ()
5964 {
5965
5966   ;
5967   return 0;
5968 }
5969 _ACEOF
5970 rm -f conftest.$ac_objext
5971 if { (ac_try="$ac_compile"
5972 case "(($ac_try" in
5973   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5974   *) ac_try_echo=$ac_try;;
5975 esac
5976 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5977   (eval "$ac_compile") 2>conftest.er1
5978   ac_status=$?
5979   grep -v '^ *+' conftest.er1 >conftest.err
5980   rm -f conftest.er1
5981   cat conftest.err >&5
5982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5983   (exit $ac_status); } &&
5984          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
5985   { (case "(($ac_try" in
5986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5987   *) ac_try_echo=$ac_try;;
5988 esac
5989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5990   (eval "$ac_try") 2>&5
5991   ac_status=$?
5992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
5993   (exit $ac_status); }; } &&
5994          { ac_try='test -s conftest.$ac_objext'
5995   { (case "(($ac_try" in
5996   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5997   *) ac_try_echo=$ac_try;;
5998 esac
5999 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6000   (eval "$ac_try") 2>&5
6001   ac_status=$?
6002   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6003   (exit $ac_status); }; }; then
6004   :
6005 else
6006   echo "$as_me: failed program was:" >&5
6007 sed 's/^/| /' conftest.$ac_ext >&5
6008
6009         ac_c_werror_flag=$ac_save_c_werror_flag
6010          CFLAGS="-g"
6011          cat >conftest.$ac_ext <<_ACEOF
6012 /* confdefs.h.  */
6013 _ACEOF
6014 cat confdefs.h >>conftest.$ac_ext
6015 cat >>conftest.$ac_ext <<_ACEOF
6016 /* end confdefs.h.  */
6017
6018 int
6019 main ()
6020 {
6021
6022   ;
6023   return 0;
6024 }
6025 _ACEOF
6026 rm -f conftest.$ac_objext
6027 if { (ac_try="$ac_compile"
6028 case "(($ac_try" in
6029   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6030   *) ac_try_echo=$ac_try;;
6031 esac
6032 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6033   (eval "$ac_compile") 2>conftest.er1
6034   ac_status=$?
6035   grep -v '^ *+' conftest.er1 >conftest.err
6036   rm -f conftest.er1
6037   cat conftest.err >&5
6038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6039   (exit $ac_status); } &&
6040          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6041   { (case "(($ac_try" in
6042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6043   *) ac_try_echo=$ac_try;;
6044 esac
6045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6046   (eval "$ac_try") 2>&5
6047   ac_status=$?
6048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6049   (exit $ac_status); }; } &&
6050          { ac_try='test -s conftest.$ac_objext'
6051   { (case "(($ac_try" in
6052   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6053   *) ac_try_echo=$ac_try;;
6054 esac
6055 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6056   (eval "$ac_try") 2>&5
6057   ac_status=$?
6058   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6059   (exit $ac_status); }; }; then
6060   ac_cv_prog_cc_g=yes
6061 else
6062   echo "$as_me: failed program was:" >&5
6063 sed 's/^/| /' conftest.$ac_ext >&5
6064
6065
6066 fi
6067
6068 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6069 fi
6070
6071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6072 fi
6073
6074 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6075    ac_c_werror_flag=$ac_save_c_werror_flag
6076 fi
6077 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
6078 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
6079 if test "$ac_test_CFLAGS" = set; then
6080   CFLAGS=$ac_save_CFLAGS
6081 elif test $ac_cv_prog_cc_g = yes; then
6082   if test "$GCC" = yes; then
6083     CFLAGS="-g -O2"
6084   else
6085     CFLAGS="-g"
6086   fi
6087 else
6088   if test "$GCC" = yes; then
6089     CFLAGS="-O2"
6090   else
6091     CFLAGS=
6092   fi
6093 fi
6094 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
6095 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
6096 if test "${ac_cv_prog_cc_c89+set}" = set; then
6097   echo $ECHO_N "(cached) $ECHO_C" >&6
6098 else
6099   ac_cv_prog_cc_c89=no
6100 ac_save_CC=$CC
6101 cat >conftest.$ac_ext <<_ACEOF
6102 /* confdefs.h.  */
6103 _ACEOF
6104 cat confdefs.h >>conftest.$ac_ext
6105 cat >>conftest.$ac_ext <<_ACEOF
6106 /* end confdefs.h.  */
6107 #include <stdarg.h>
6108 #include <stdio.h>
6109 #include <sys/types.h>
6110 #include <sys/stat.h>
6111 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
6112 struct buf { int x; };
6113 FILE * (*rcsopen) (struct buf *, struct stat *, int);
6114 static char *e (p, i)
6115      char **p;
6116      int i;
6117 {
6118   return p[i];
6119 }
6120 static char *f (char * (*g) (char **, int), char **p, ...)
6121 {
6122   char *s;
6123   va_list v;
6124   va_start (v,p);
6125   s = g (p, va_arg (v,int));
6126   va_end (v);
6127   return s;
6128 }
6129
6130 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
6131    function prototypes and stuff, but not '\xHH' hex character constants.
6132    These don't provoke an error unfortunately, instead are silently treated
6133    as 'x'.  The following induces an error, until -std is added to get
6134    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
6135    array size at least.  It's necessary to write '\x00'==0 to get something
6136    that's true only with -std.  */
6137 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
6138
6139 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
6140    inside strings and character constants.  */
6141 #define FOO(x) 'x'
6142 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
6143
6144 int test (int i, double x);
6145 struct s1 {int (*f) (int a);};
6146 struct s2 {int (*f) (double a);};
6147 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
6148 int argc;
6149 char **argv;
6150 int
6151 main ()
6152 {
6153 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
6154   ;
6155   return 0;
6156 }
6157 _ACEOF
6158 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
6159         -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
6160 do
6161   CC="$ac_save_CC $ac_arg"
6162   rm -f conftest.$ac_objext
6163 if { (ac_try="$ac_compile"
6164 case "(($ac_try" in
6165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6166   *) ac_try_echo=$ac_try;;
6167 esac
6168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6169   (eval "$ac_compile") 2>conftest.er1
6170   ac_status=$?
6171   grep -v '^ *+' conftest.er1 >conftest.err
6172   rm -f conftest.er1
6173   cat conftest.err >&5
6174   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6175   (exit $ac_status); } &&
6176          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
6177   { (case "(($ac_try" in
6178   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6179   *) ac_try_echo=$ac_try;;
6180 esac
6181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6182   (eval "$ac_try") 2>&5
6183   ac_status=$?
6184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6185   (exit $ac_status); }; } &&
6186          { ac_try='test -s conftest.$ac_objext'
6187   { (case "(($ac_try" in
6188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6189   *) ac_try_echo=$ac_try;;
6190 esac
6191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6192   (eval "$ac_try") 2>&5
6193   ac_status=$?
6194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6195   (exit $ac_status); }; }; then
6196   ac_cv_prog_cc_c89=$ac_arg
6197 else
6198   echo "$as_me: failed program was:" >&5
6199 sed 's/^/| /' conftest.$ac_ext >&5
6200
6201
6202 fi
6203
6204 rm -f core conftest.err conftest.$ac_objext
6205   test "x$ac_cv_prog_cc_c89" != "xno" && break
6206 done
6207 rm -f conftest.$ac_ext
6208 CC=$ac_save_CC
6209
6210 fi
6211 # AC_CACHE_VAL
6212 case "x$ac_cv_prog_cc_c89" in
6213   x)
6214     { echo "$as_me:$LINENO: result: none needed" >&5
6215 echo "${ECHO_T}none needed" >&6; } ;;
6216   xno)
6217     { echo "$as_me:$LINENO: result: unsupported" >&5
6218 echo "${ECHO_T}unsupported" >&6; } ;;
6219   *)
6220     CC="$CC $ac_cv_prog_cc_c89"
6221     { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
6222 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
6223 esac
6224
6225
6226 ac_ext=c
6227 ac_cpp='$CPP $CPPFLAGS'
6228 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6229 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6230 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6231
6232 ac_ext=cpp
6233 ac_cpp='$CXXCPP $CPPFLAGS'
6234 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6235 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6236 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
6237 if test -z "$CXX"; then
6238   if test -n "$CCC"; then
6239     CXX=$CCC
6240   else
6241     if test -n "$ac_tool_prefix"; then
6242   for ac_prog in g++
6243   do
6244     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
6245 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
6246 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6247 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6248 if test "${ac_cv_prog_CXX+set}" = set; then
6249   echo $ECHO_N "(cached) $ECHO_C" >&6
6250 else
6251   if test -n "$CXX"; then
6252   ac_cv_prog_CXX="$CXX" # Let the user override the test.
6253 else
6254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6255 for as_dir in $PATH
6256 do
6257   IFS=$as_save_IFS
6258   test -z "$as_dir" && as_dir=.
6259   for ac_exec_ext in '' $ac_executable_extensions; do
6260   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6261     ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
6262     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6263     break 2
6264   fi
6265 done
6266 done
6267 IFS=$as_save_IFS
6268
6269 fi
6270 fi
6271 CXX=$ac_cv_prog_CXX
6272 if test -n "$CXX"; then
6273   { echo "$as_me:$LINENO: result: $CXX" >&5
6274 echo "${ECHO_T}$CXX" >&6; }
6275 else
6276   { echo "$as_me:$LINENO: result: no" >&5
6277 echo "${ECHO_T}no" >&6; }
6278 fi
6279
6280
6281     test -n "$CXX" && break
6282   done
6283 fi
6284 if test -z "$CXX"; then
6285   ac_ct_CXX=$CXX
6286   for ac_prog in g++
6287 do
6288   # Extract the first word of "$ac_prog", so it can be a program name with args.
6289 set dummy $ac_prog; ac_word=$2
6290 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6291 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6292 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
6293   echo $ECHO_N "(cached) $ECHO_C" >&6
6294 else
6295   if test -n "$ac_ct_CXX"; then
6296   ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
6297 else
6298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6299 for as_dir in $PATH
6300 do
6301   IFS=$as_save_IFS
6302   test -z "$as_dir" && as_dir=.
6303   for ac_exec_ext in '' $ac_executable_extensions; do
6304   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6305     ac_cv_prog_ac_ct_CXX="$ac_prog"
6306     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6307     break 2
6308   fi
6309 done
6310 done
6311 IFS=$as_save_IFS
6312
6313 fi
6314 fi
6315 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
6316 if test -n "$ac_ct_CXX"; then
6317   { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
6318 echo "${ECHO_T}$ac_ct_CXX" >&6; }
6319 else
6320   { echo "$as_me:$LINENO: result: no" >&5
6321 echo "${ECHO_T}no" >&6; }
6322 fi
6323
6324
6325   test -n "$ac_ct_CXX" && break
6326 done
6327
6328   if test "x$ac_ct_CXX" = x; then
6329     CXX="g++"
6330   else
6331     case $cross_compiling:$ac_tool_warned in
6332 yes:)
6333 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
6334 whose name does not start with the host triplet.  If you think this
6335 configuration is useful to you, please write to autoconf@gnu.org." >&5
6336 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
6337 whose name does not start with the host triplet.  If you think this
6338 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
6339 ac_tool_warned=yes ;;
6340 esac
6341     CXX=$ac_ct_CXX
6342   fi
6343 fi
6344
6345   fi
6346 fi
6347 # Provide some information about the compiler.
6348 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
6349 ac_compiler=`set X $ac_compile; echo $2`
6350 { (ac_try="$ac_compiler --version >&5"
6351 case "(($ac_try" in
6352   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6353   *) ac_try_echo=$ac_try;;
6354 esac
6355 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6356   (eval "$ac_compiler --version >&5") 2>&5
6357   ac_status=$?
6358   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6359   (exit $ac_status); }
6360 { (ac_try="$ac_compiler -v >&5"
6361 case "(($ac_try" in
6362   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6363   *) ac_try_echo=$ac_try;;
6364 esac
6365 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6366   (eval "$ac_compiler -v >&5") 2>&5
6367   ac_status=$?
6368   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6369   (exit $ac_status); }
6370 { (ac_try="$ac_compiler -V >&5"
6371 case "(($ac_try" in
6372   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6373   *) ac_try_echo=$ac_try;;
6374 esac
6375 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6376   (eval "$ac_compiler -V >&5") 2>&5
6377   ac_status=$?
6378   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6379   (exit $ac_status); }
6380
6381 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
6382 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
6383 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
6384   echo $ECHO_N "(cached) $ECHO_C" >&6
6385 else
6386   cat >conftest.$ac_ext <<_ACEOF
6387 /* confdefs.h.  */
6388 _ACEOF
6389 cat confdefs.h >>conftest.$ac_ext
6390 cat >>conftest.$ac_ext <<_ACEOF
6391 /* end confdefs.h.  */
6392
6393 int
6394 main ()
6395 {
6396 #ifndef __GNUC__
6397        choke me
6398 #endif
6399
6400   ;
6401   return 0;
6402 }
6403 _ACEOF
6404 rm -f conftest.$ac_objext
6405 if { (ac_try="$ac_compile"
6406 case "(($ac_try" in
6407   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6408   *) ac_try_echo=$ac_try;;
6409 esac
6410 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6411   (eval "$ac_compile") 2>conftest.er1
6412   ac_status=$?
6413   grep -v '^ *+' conftest.er1 >conftest.err
6414   rm -f conftest.er1
6415   cat conftest.err >&5
6416   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6417   (exit $ac_status); } &&
6418          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6419   { (case "(($ac_try" in
6420   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6421   *) ac_try_echo=$ac_try;;
6422 esac
6423 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6424   (eval "$ac_try") 2>&5
6425   ac_status=$?
6426   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6427   (exit $ac_status); }; } &&
6428          { ac_try='test -s conftest.$ac_objext'
6429   { (case "(($ac_try" in
6430   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6431   *) ac_try_echo=$ac_try;;
6432 esac
6433 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6434   (eval "$ac_try") 2>&5
6435   ac_status=$?
6436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6437   (exit $ac_status); }; }; then
6438   ac_compiler_gnu=yes
6439 else
6440   echo "$as_me: failed program was:" >&5
6441 sed 's/^/| /' conftest.$ac_ext >&5
6442
6443         ac_compiler_gnu=no
6444 fi
6445
6446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6447 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
6448
6449 fi
6450 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
6451 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
6452 GXX=`test $ac_compiler_gnu = yes && echo yes`
6453 ac_test_CXXFLAGS=${CXXFLAGS+set}
6454 ac_save_CXXFLAGS=$CXXFLAGS
6455 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
6456 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
6457 if test "${ac_cv_prog_cxx_g+set}" = set; then
6458   echo $ECHO_N "(cached) $ECHO_C" >&6
6459 else
6460   ac_save_cxx_werror_flag=$ac_cxx_werror_flag
6461    ac_cxx_werror_flag=yes
6462    ac_cv_prog_cxx_g=no
6463    CXXFLAGS="-g"
6464    cat >conftest.$ac_ext <<_ACEOF
6465 /* confdefs.h.  */
6466 _ACEOF
6467 cat confdefs.h >>conftest.$ac_ext
6468 cat >>conftest.$ac_ext <<_ACEOF
6469 /* end confdefs.h.  */
6470
6471 int
6472 main ()
6473 {
6474
6475   ;
6476   return 0;
6477 }
6478 _ACEOF
6479 rm -f conftest.$ac_objext
6480 if { (ac_try="$ac_compile"
6481 case "(($ac_try" in
6482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6483   *) ac_try_echo=$ac_try;;
6484 esac
6485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6486   (eval "$ac_compile") 2>conftest.er1
6487   ac_status=$?
6488   grep -v '^ *+' conftest.er1 >conftest.err
6489   rm -f conftest.er1
6490   cat conftest.err >&5
6491   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6492   (exit $ac_status); } &&
6493          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6494   { (case "(($ac_try" in
6495   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6496   *) ac_try_echo=$ac_try;;
6497 esac
6498 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6499   (eval "$ac_try") 2>&5
6500   ac_status=$?
6501   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6502   (exit $ac_status); }; } &&
6503          { ac_try='test -s conftest.$ac_objext'
6504   { (case "(($ac_try" in
6505   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6506   *) ac_try_echo=$ac_try;;
6507 esac
6508 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6509   (eval "$ac_try") 2>&5
6510   ac_status=$?
6511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6512   (exit $ac_status); }; }; then
6513   ac_cv_prog_cxx_g=yes
6514 else
6515   echo "$as_me: failed program was:" >&5
6516 sed 's/^/| /' conftest.$ac_ext >&5
6517
6518         CXXFLAGS=""
6519       cat >conftest.$ac_ext <<_ACEOF
6520 /* confdefs.h.  */
6521 _ACEOF
6522 cat confdefs.h >>conftest.$ac_ext
6523 cat >>conftest.$ac_ext <<_ACEOF
6524 /* end confdefs.h.  */
6525
6526 int
6527 main ()
6528 {
6529
6530   ;
6531   return 0;
6532 }
6533 _ACEOF
6534 rm -f conftest.$ac_objext
6535 if { (ac_try="$ac_compile"
6536 case "(($ac_try" in
6537   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6538   *) ac_try_echo=$ac_try;;
6539 esac
6540 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6541   (eval "$ac_compile") 2>conftest.er1
6542   ac_status=$?
6543   grep -v '^ *+' conftest.er1 >conftest.err
6544   rm -f conftest.er1
6545   cat conftest.err >&5
6546   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6547   (exit $ac_status); } &&
6548          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6549   { (case "(($ac_try" in
6550   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6551   *) ac_try_echo=$ac_try;;
6552 esac
6553 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6554   (eval "$ac_try") 2>&5
6555   ac_status=$?
6556   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6557   (exit $ac_status); }; } &&
6558          { ac_try='test -s conftest.$ac_objext'
6559   { (case "(($ac_try" in
6560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6561   *) ac_try_echo=$ac_try;;
6562 esac
6563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6564   (eval "$ac_try") 2>&5
6565   ac_status=$?
6566   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6567   (exit $ac_status); }; }; then
6568   :
6569 else
6570   echo "$as_me: failed program was:" >&5
6571 sed 's/^/| /' conftest.$ac_ext >&5
6572
6573         ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6574          CXXFLAGS="-g"
6575          cat >conftest.$ac_ext <<_ACEOF
6576 /* confdefs.h.  */
6577 _ACEOF
6578 cat confdefs.h >>conftest.$ac_ext
6579 cat >>conftest.$ac_ext <<_ACEOF
6580 /* end confdefs.h.  */
6581
6582 int
6583 main ()
6584 {
6585
6586   ;
6587   return 0;
6588 }
6589 _ACEOF
6590 rm -f conftest.$ac_objext
6591 if { (ac_try="$ac_compile"
6592 case "(($ac_try" in
6593   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6594   *) ac_try_echo=$ac_try;;
6595 esac
6596 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6597   (eval "$ac_compile") 2>conftest.er1
6598   ac_status=$?
6599   grep -v '^ *+' conftest.er1 >conftest.err
6600   rm -f conftest.er1
6601   cat conftest.err >&5
6602   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6603   (exit $ac_status); } &&
6604          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6605   { (case "(($ac_try" in
6606   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6607   *) ac_try_echo=$ac_try;;
6608 esac
6609 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6610   (eval "$ac_try") 2>&5
6611   ac_status=$?
6612   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6613   (exit $ac_status); }; } &&
6614          { ac_try='test -s conftest.$ac_objext'
6615   { (case "(($ac_try" in
6616   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6617   *) ac_try_echo=$ac_try;;
6618 esac
6619 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6620   (eval "$ac_try") 2>&5
6621   ac_status=$?
6622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
6623   (exit $ac_status); }; }; then
6624   ac_cv_prog_cxx_g=yes
6625 else
6626   echo "$as_me: failed program was:" >&5
6627 sed 's/^/| /' conftest.$ac_ext >&5
6628
6629
6630 fi
6631
6632 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6633 fi
6634
6635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6636 fi
6637
6638 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6639    ac_cxx_werror_flag=$ac_save_cxx_werror_flag
6640 fi
6641 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
6642 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
6643 if test "$ac_test_CXXFLAGS" = set; then
6644   CXXFLAGS=$ac_save_CXXFLAGS
6645 elif test $ac_cv_prog_cxx_g = yes; then
6646   if test "$GXX" = yes; then
6647     CXXFLAGS="-g -O2"
6648   else
6649     CXXFLAGS="-g"
6650   fi
6651 else
6652   if test "$GXX" = yes; then
6653     CXXFLAGS="-O2"
6654   else
6655     CXXFLAGS=
6656   fi
6657 fi
6658 ac_ext=c
6659 ac_cpp='$CPP $CPPFLAGS'
6660 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6661 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6662 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6663
6664
6665 { echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
6666 echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6; }
6667 if test "${lt_cv_path_NM+set}" = set; then
6668   echo $ECHO_N "(cached) $ECHO_C" >&6
6669 else
6670   if test -n "$NM"; then
6671   # Let the user override the test.
6672   lt_cv_path_NM="$NM"
6673 else
6674   lt_nm_to_check="${ac_tool_prefix}nm"
6675   if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
6676     lt_nm_to_check="$lt_nm_to_check nm"
6677   fi
6678   for lt_tmp_nm in $lt_nm_to_check; do
6679     lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
6680     for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
6681       IFS="$lt_save_ifs"
6682       test -z "$ac_dir" && ac_dir=.
6683       tmp_nm="$ac_dir/$lt_tmp_nm"
6684       if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
6685         # Check to see if the nm accepts a BSD-compat flag.
6686         # Adding the `sed 1q' prevents false positives on HP-UX, which says:
6687         #   nm: unknown option "B" ignored
6688         # Tru64's nm complains that /dev/null is an invalid object file
6689         case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
6690         */dev/null* | *'Invalid file or object type'*)
6691           lt_cv_path_NM="$tmp_nm -B"
6692           break
6693           ;;
6694         *)
6695           case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
6696           */dev/null*)
6697             lt_cv_path_NM="$tmp_nm -p"
6698             break
6699             ;;
6700           *)
6701             lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
6702             continue # so that we can try to find one that supports BSD flags
6703             ;;
6704           esac
6705           ;;
6706         esac
6707       fi
6708     done
6709     IFS="$lt_save_ifs"
6710   done
6711   test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
6712 fi
6713 fi
6714 { echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
6715 echo "${ECHO_T}$lt_cv_path_NM" >&6; }
6716 NM="$lt_cv_path_NM"
6717
6718
6719
6720 { echo "$as_me:$LINENO: checking for GNU make" >&5
6721 echo $ECHO_N "checking for GNU make... $ECHO_C" >&6; }
6722 if test "${llvm_cv_gnu_make_command+set}" = set; then
6723   echo $ECHO_N "(cached) $ECHO_C" >&6
6724 else
6725   llvm_cv_gnu_make_command=''
6726  for a in "$MAKE" make gmake gnumake ; do
6727   if test -z "$a" ; then continue ; fi ;
6728   if  ( sh -c "$a --version" 2> /dev/null | grep GNU 2>&1 > /dev/null )
6729   then
6730    llvm_cv_gnu_make_command=$a ;
6731    break;
6732   fi
6733  done
6734 fi
6735 { echo "$as_me:$LINENO: result: $llvm_cv_gnu_make_command" >&5
6736 echo "${ECHO_T}$llvm_cv_gnu_make_command" >&6; }
6737  if test "x$llvm_cv_gnu_make_command" != "x"  ; then
6738    ifGNUmake='' ;
6739  else
6740    ifGNUmake='#' ;
6741    { echo "$as_me:$LINENO: result: \"Not found\"" >&5
6742 echo "${ECHO_T}\"Not found\"" >&6; };
6743  fi
6744
6745
6746 { echo "$as_me:$LINENO: checking whether ln -s works" >&5
6747 echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6; }
6748 LN_S=$as_ln_s
6749 if test "$LN_S" = "ln -s"; then
6750   { echo "$as_me:$LINENO: result: yes" >&5
6751 echo "${ECHO_T}yes" >&6; }
6752 else
6753   { echo "$as_me:$LINENO: result: no, using $LN_S" >&5
6754 echo "${ECHO_T}no, using $LN_S" >&6; }
6755 fi
6756
6757 # Extract the first word of "cmp", so it can be a program name with args.
6758 set dummy cmp; ac_word=$2
6759 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6760 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6761 if test "${ac_cv_path_CMP+set}" = set; then
6762   echo $ECHO_N "(cached) $ECHO_C" >&6
6763 else
6764   case $CMP in
6765   [\\/]* | ?:[\\/]*)
6766   ac_cv_path_CMP="$CMP" # Let the user override the test with a path.
6767   ;;
6768   *)
6769   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6770 for as_dir in $PATH
6771 do
6772   IFS=$as_save_IFS
6773   test -z "$as_dir" && as_dir=.
6774   for ac_exec_ext in '' $ac_executable_extensions; do
6775   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6776     ac_cv_path_CMP="$as_dir/$ac_word$ac_exec_ext"
6777     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6778     break 2
6779   fi
6780 done
6781 done
6782 IFS=$as_save_IFS
6783
6784   test -z "$ac_cv_path_CMP" && ac_cv_path_CMP="cmp"
6785   ;;
6786 esac
6787 fi
6788 CMP=$ac_cv_path_CMP
6789 if test -n "$CMP"; then
6790   { echo "$as_me:$LINENO: result: $CMP" >&5
6791 echo "${ECHO_T}$CMP" >&6; }
6792 else
6793   { echo "$as_me:$LINENO: result: no" >&5
6794 echo "${ECHO_T}no" >&6; }
6795 fi
6796
6797
6798 # Extract the first word of "cp", so it can be a program name with args.
6799 set dummy cp; ac_word=$2
6800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6802 if test "${ac_cv_path_CP+set}" = set; then
6803   echo $ECHO_N "(cached) $ECHO_C" >&6
6804 else
6805   case $CP in
6806   [\\/]* | ?:[\\/]*)
6807   ac_cv_path_CP="$CP" # Let the user override the test with a path.
6808   ;;
6809   *)
6810   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6811 for as_dir in $PATH
6812 do
6813   IFS=$as_save_IFS
6814   test -z "$as_dir" && as_dir=.
6815   for ac_exec_ext in '' $ac_executable_extensions; do
6816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6817     ac_cv_path_CP="$as_dir/$ac_word$ac_exec_ext"
6818     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6819     break 2
6820   fi
6821 done
6822 done
6823 IFS=$as_save_IFS
6824
6825   test -z "$ac_cv_path_CP" && ac_cv_path_CP="cp"
6826   ;;
6827 esac
6828 fi
6829 CP=$ac_cv_path_CP
6830 if test -n "$CP"; then
6831   { echo "$as_me:$LINENO: result: $CP" >&5
6832 echo "${ECHO_T}$CP" >&6; }
6833 else
6834   { echo "$as_me:$LINENO: result: no" >&5
6835 echo "${ECHO_T}no" >&6; }
6836 fi
6837
6838
6839 # Extract the first word of "date", so it can be a program name with args.
6840 set dummy date; ac_word=$2
6841 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6842 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6843 if test "${ac_cv_path_DATE+set}" = set; then
6844   echo $ECHO_N "(cached) $ECHO_C" >&6
6845 else
6846   case $DATE in
6847   [\\/]* | ?:[\\/]*)
6848   ac_cv_path_DATE="$DATE" # Let the user override the test with a path.
6849   ;;
6850   *)
6851   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6852 for as_dir in $PATH
6853 do
6854   IFS=$as_save_IFS
6855   test -z "$as_dir" && as_dir=.
6856   for ac_exec_ext in '' $ac_executable_extensions; do
6857   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6858     ac_cv_path_DATE="$as_dir/$ac_word$ac_exec_ext"
6859     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6860     break 2
6861   fi
6862 done
6863 done
6864 IFS=$as_save_IFS
6865
6866   test -z "$ac_cv_path_DATE" && ac_cv_path_DATE="date"
6867   ;;
6868 esac
6869 fi
6870 DATE=$ac_cv_path_DATE
6871 if test -n "$DATE"; then
6872   { echo "$as_me:$LINENO: result: $DATE" >&5
6873 echo "${ECHO_T}$DATE" >&6; }
6874 else
6875   { echo "$as_me:$LINENO: result: no" >&5
6876 echo "${ECHO_T}no" >&6; }
6877 fi
6878
6879
6880 # Extract the first word of "find", so it can be a program name with args.
6881 set dummy find; ac_word=$2
6882 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6883 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6884 if test "${ac_cv_path_FIND+set}" = set; then
6885   echo $ECHO_N "(cached) $ECHO_C" >&6
6886 else
6887   case $FIND in
6888   [\\/]* | ?:[\\/]*)
6889   ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
6890   ;;
6891   *)
6892   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6893 for as_dir in $PATH
6894 do
6895   IFS=$as_save_IFS
6896   test -z "$as_dir" && as_dir=.
6897   for ac_exec_ext in '' $ac_executable_extensions; do
6898   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6899     ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
6900     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6901     break 2
6902   fi
6903 done
6904 done
6905 IFS=$as_save_IFS
6906
6907   test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="find"
6908   ;;
6909 esac
6910 fi
6911 FIND=$ac_cv_path_FIND
6912 if test -n "$FIND"; then
6913   { echo "$as_me:$LINENO: result: $FIND" >&5
6914 echo "${ECHO_T}$FIND" >&6; }
6915 else
6916   { echo "$as_me:$LINENO: result: no" >&5
6917 echo "${ECHO_T}no" >&6; }
6918 fi
6919
6920
6921 # Extract the first word of "grep", so it can be a program name with args.
6922 set dummy grep; ac_word=$2
6923 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6924 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6925 if test "${ac_cv_path_GREP+set}" = set; then
6926   echo $ECHO_N "(cached) $ECHO_C" >&6
6927 else
6928   case $GREP in
6929   [\\/]* | ?:[\\/]*)
6930   ac_cv_path_GREP="$GREP" # Let the user override the test with a path.
6931   ;;
6932   *)
6933   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934 for as_dir in $PATH
6935 do
6936   IFS=$as_save_IFS
6937   test -z "$as_dir" && as_dir=.
6938   for ac_exec_ext in '' $ac_executable_extensions; do
6939   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6940     ac_cv_path_GREP="$as_dir/$ac_word$ac_exec_ext"
6941     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6942     break 2
6943   fi
6944 done
6945 done
6946 IFS=$as_save_IFS
6947
6948   test -z "$ac_cv_path_GREP" && ac_cv_path_GREP="grep"
6949   ;;
6950 esac
6951 fi
6952 GREP=$ac_cv_path_GREP
6953 if test -n "$GREP"; then
6954   { echo "$as_me:$LINENO: result: $GREP" >&5
6955 echo "${ECHO_T}$GREP" >&6; }
6956 else
6957   { echo "$as_me:$LINENO: result: no" >&5
6958 echo "${ECHO_T}no" >&6; }
6959 fi
6960
6961
6962 # Extract the first word of "mkdir", so it can be a program name with args.
6963 set dummy mkdir; ac_word=$2
6964 { echo "$as_me:$LINENO: checking for $ac_word" >&5
6965 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
6966 if test "${ac_cv_path_MKDIR+set}" = set; then
6967   echo $ECHO_N "(cached) $ECHO_C" >&6
6968 else
6969   case $MKDIR in
6970   [\\/]* | ?:[\\/]*)
6971   ac_cv_path_MKDIR="$MKDIR" # Let the user override the test with a path.
6972   ;;
6973   *)
6974   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6975 for as_dir in $PATH
6976 do
6977   IFS=$as_save_IFS
6978   test -z "$as_dir" && as_dir=.
6979   for ac_exec_ext in '' $ac_executable_extensions; do
6980   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
6981     ac_cv_path_MKDIR="$as_dir/$ac_word$ac_exec_ext"
6982     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
6983     break 2
6984   fi
6985 done
6986 done
6987 IFS=$as_save_IFS
6988
6989   test -z "$ac_cv_path_MKDIR" && ac_cv_path_MKDIR="mkdir"
6990   ;;
6991 esac
6992 fi
6993 MKDIR=$ac_cv_path_MKDIR
6994 if test -n "$MKDIR"; then
6995   { echo "$as_me:$LINENO: result: $MKDIR" >&5
6996 echo "${ECHO_T}$MKDIR" >&6; }
6997 else
6998   { echo "$as_me:$LINENO: result: no" >&5
6999 echo "${ECHO_T}no" >&6; }
7000 fi
7001
7002
7003 # Extract the first word of "mv", so it can be a program name with args.
7004 set dummy mv; ac_word=$2
7005 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7006 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7007 if test "${ac_cv_path_MV+set}" = set; then
7008   echo $ECHO_N "(cached) $ECHO_C" >&6
7009 else
7010   case $MV in
7011   [\\/]* | ?:[\\/]*)
7012   ac_cv_path_MV="$MV" # Let the user override the test with a path.
7013   ;;
7014   *)
7015   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7016 for as_dir in $PATH
7017 do
7018   IFS=$as_save_IFS
7019   test -z "$as_dir" && as_dir=.
7020   for ac_exec_ext in '' $ac_executable_extensions; do
7021   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7022     ac_cv_path_MV="$as_dir/$ac_word$ac_exec_ext"
7023     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7024     break 2
7025   fi
7026 done
7027 done
7028 IFS=$as_save_IFS
7029
7030   test -z "$ac_cv_path_MV" && ac_cv_path_MV="mv"
7031   ;;
7032 esac
7033 fi
7034 MV=$ac_cv_path_MV
7035 if test -n "$MV"; then
7036   { echo "$as_me:$LINENO: result: $MV" >&5
7037 echo "${ECHO_T}$MV" >&6; }
7038 else
7039   { echo "$as_me:$LINENO: result: no" >&5
7040 echo "${ECHO_T}no" >&6; }
7041 fi
7042
7043
7044 if test -n "$ac_tool_prefix"; then
7045   # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
7046 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
7047 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7048 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7049 if test "${ac_cv_prog_RANLIB+set}" = set; then
7050   echo $ECHO_N "(cached) $ECHO_C" >&6
7051 else
7052   if test -n "$RANLIB"; then
7053   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
7054 else
7055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056 for as_dir in $PATH
7057 do
7058   IFS=$as_save_IFS
7059   test -z "$as_dir" && as_dir=.
7060   for ac_exec_ext in '' $ac_executable_extensions; do
7061   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7062     ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
7063     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7064     break 2
7065   fi
7066 done
7067 done
7068 IFS=$as_save_IFS
7069
7070 fi
7071 fi
7072 RANLIB=$ac_cv_prog_RANLIB
7073 if test -n "$RANLIB"; then
7074   { echo "$as_me:$LINENO: result: $RANLIB" >&5
7075 echo "${ECHO_T}$RANLIB" >&6; }
7076 else
7077   { echo "$as_me:$LINENO: result: no" >&5
7078 echo "${ECHO_T}no" >&6; }
7079 fi
7080
7081
7082 fi
7083 if test -z "$ac_cv_prog_RANLIB"; then
7084   ac_ct_RANLIB=$RANLIB
7085   # Extract the first word of "ranlib", so it can be a program name with args.
7086 set dummy ranlib; ac_word=$2
7087 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7088 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7089 if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
7090   echo $ECHO_N "(cached) $ECHO_C" >&6
7091 else
7092   if test -n "$ac_ct_RANLIB"; then
7093   ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
7094 else
7095 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7096 for as_dir in $PATH
7097 do
7098   IFS=$as_save_IFS
7099   test -z "$as_dir" && as_dir=.
7100   for ac_exec_ext in '' $ac_executable_extensions; do
7101   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7102     ac_cv_prog_ac_ct_RANLIB="ranlib"
7103     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7104     break 2
7105   fi
7106 done
7107 done
7108 IFS=$as_save_IFS
7109
7110 fi
7111 fi
7112 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
7113 if test -n "$ac_ct_RANLIB"; then
7114   { echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
7115 echo "${ECHO_T}$ac_ct_RANLIB" >&6; }
7116 else
7117   { echo "$as_me:$LINENO: result: no" >&5
7118 echo "${ECHO_T}no" >&6; }
7119 fi
7120
7121   if test "x$ac_ct_RANLIB" = x; then
7122     RANLIB=":"
7123   else
7124     case $cross_compiling:$ac_tool_warned in
7125 yes:)
7126 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7127 whose name does not start with the host triplet.  If you think this
7128 configuration is useful to you, please write to autoconf@gnu.org." >&5
7129 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7130 whose name does not start with the host triplet.  If you think this
7131 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7132 ac_tool_warned=yes ;;
7133 esac
7134     RANLIB=$ac_ct_RANLIB
7135   fi
7136 else
7137   RANLIB="$ac_cv_prog_RANLIB"
7138 fi
7139
7140 if test -n "$ac_tool_prefix"; then
7141   # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
7142 set dummy ${ac_tool_prefix}ar; ac_word=$2
7143 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7144 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7145 if test "${ac_cv_prog_AR+set}" = set; then
7146   echo $ECHO_N "(cached) $ECHO_C" >&6
7147 else
7148   if test -n "$AR"; then
7149   ac_cv_prog_AR="$AR" # Let the user override the test.
7150 else
7151 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7152 for as_dir in $PATH
7153 do
7154   IFS=$as_save_IFS
7155   test -z "$as_dir" && as_dir=.
7156   for ac_exec_ext in '' $ac_executable_extensions; do
7157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7158     ac_cv_prog_AR="${ac_tool_prefix}ar"
7159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7160     break 2
7161   fi
7162 done
7163 done
7164 IFS=$as_save_IFS
7165
7166 fi
7167 fi
7168 AR=$ac_cv_prog_AR
7169 if test -n "$AR"; then
7170   { echo "$as_me:$LINENO: result: $AR" >&5
7171 echo "${ECHO_T}$AR" >&6; }
7172 else
7173   { echo "$as_me:$LINENO: result: no" >&5
7174 echo "${ECHO_T}no" >&6; }
7175 fi
7176
7177
7178 fi
7179 if test -z "$ac_cv_prog_AR"; then
7180   ac_ct_AR=$AR
7181   # Extract the first word of "ar", so it can be a program name with args.
7182 set dummy ar; ac_word=$2
7183 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7184 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7185 if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
7186   echo $ECHO_N "(cached) $ECHO_C" >&6
7187 else
7188   if test -n "$ac_ct_AR"; then
7189   ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
7190 else
7191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7192 for as_dir in $PATH
7193 do
7194   IFS=$as_save_IFS
7195   test -z "$as_dir" && as_dir=.
7196   for ac_exec_ext in '' $ac_executable_extensions; do
7197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7198     ac_cv_prog_ac_ct_AR="ar"
7199     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7200     break 2
7201   fi
7202 done
7203 done
7204 IFS=$as_save_IFS
7205
7206 fi
7207 fi
7208 ac_ct_AR=$ac_cv_prog_ac_ct_AR
7209 if test -n "$ac_ct_AR"; then
7210   { echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
7211 echo "${ECHO_T}$ac_ct_AR" >&6; }
7212 else
7213   { echo "$as_me:$LINENO: result: no" >&5
7214 echo "${ECHO_T}no" >&6; }
7215 fi
7216
7217   if test "x$ac_ct_AR" = x; then
7218     AR="false"
7219   else
7220     case $cross_compiling:$ac_tool_warned in
7221 yes:)
7222 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
7223 whose name does not start with the host triplet.  If you think this
7224 configuration is useful to you, please write to autoconf@gnu.org." >&5
7225 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
7226 whose name does not start with the host triplet.  If you think this
7227 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
7228 ac_tool_warned=yes ;;
7229 esac
7230     AR=$ac_ct_AR
7231   fi
7232 else
7233   AR="$ac_cv_prog_AR"
7234 fi
7235
7236 # Extract the first word of "rm", so it can be a program name with args.
7237 set dummy rm; ac_word=$2
7238 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7239 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7240 if test "${ac_cv_path_RM+set}" = set; then
7241   echo $ECHO_N "(cached) $ECHO_C" >&6
7242 else
7243   case $RM in
7244   [\\/]* | ?:[\\/]*)
7245   ac_cv_path_RM="$RM" # Let the user override the test with a path.
7246   ;;
7247   *)
7248   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7249 for as_dir in $PATH
7250 do
7251   IFS=$as_save_IFS
7252   test -z "$as_dir" && as_dir=.
7253   for ac_exec_ext in '' $ac_executable_extensions; do
7254   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7255     ac_cv_path_RM="$as_dir/$ac_word$ac_exec_ext"
7256     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7257     break 2
7258   fi
7259 done
7260 done
7261 IFS=$as_save_IFS
7262
7263   test -z "$ac_cv_path_RM" && ac_cv_path_RM="rm"
7264   ;;
7265 esac
7266 fi
7267 RM=$ac_cv_path_RM
7268 if test -n "$RM"; then
7269   { echo "$as_me:$LINENO: result: $RM" >&5
7270 echo "${ECHO_T}$RM" >&6; }
7271 else
7272   { echo "$as_me:$LINENO: result: no" >&5
7273 echo "${ECHO_T}no" >&6; }
7274 fi
7275
7276
7277 # Extract the first word of "sed", so it can be a program name with args.
7278 set dummy sed; ac_word=$2
7279 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7280 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7281 if test "${ac_cv_path_SED+set}" = set; then
7282   echo $ECHO_N "(cached) $ECHO_C" >&6
7283 else
7284   case $SED in
7285   [\\/]* | ?:[\\/]*)
7286   ac_cv_path_SED="$SED" # Let the user override the test with a path.
7287   ;;
7288   *)
7289   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7290 for as_dir in $PATH
7291 do
7292   IFS=$as_save_IFS
7293   test -z "$as_dir" && as_dir=.
7294   for ac_exec_ext in '' $ac_executable_extensions; do
7295   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7296     ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
7297     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7298     break 2
7299   fi
7300 done
7301 done
7302 IFS=$as_save_IFS
7303
7304   test -z "$ac_cv_path_SED" && ac_cv_path_SED="sed"
7305   ;;
7306 esac
7307 fi
7308 SED=$ac_cv_path_SED
7309 if test -n "$SED"; then
7310   { echo "$as_me:$LINENO: result: $SED" >&5
7311 echo "${ECHO_T}$SED" >&6; }
7312 else
7313   { echo "$as_me:$LINENO: result: no" >&5
7314 echo "${ECHO_T}no" >&6; }
7315 fi
7316
7317
7318 # Extract the first word of "tar", so it can be a program name with args.
7319 set dummy tar; ac_word=$2
7320 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7321 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7322 if test "${ac_cv_path_TAR+set}" = set; then
7323   echo $ECHO_N "(cached) $ECHO_C" >&6
7324 else
7325   case $TAR in
7326   [\\/]* | ?:[\\/]*)
7327   ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7328   ;;
7329   *)
7330   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7331 for as_dir in $PATH
7332 do
7333   IFS=$as_save_IFS
7334   test -z "$as_dir" && as_dir=.
7335   for ac_exec_ext in '' $ac_executable_extensions; do
7336   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7337     ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7338     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7339     break 2
7340   fi
7341 done
7342 done
7343 IFS=$as_save_IFS
7344
7345   test -z "$ac_cv_path_TAR" && ac_cv_path_TAR="gtar"
7346   ;;
7347 esac
7348 fi
7349 TAR=$ac_cv_path_TAR
7350 if test -n "$TAR"; then
7351   { echo "$as_me:$LINENO: result: $TAR" >&5
7352 echo "${ECHO_T}$TAR" >&6; }
7353 else
7354   { echo "$as_me:$LINENO: result: no" >&5
7355 echo "${ECHO_T}no" >&6; }
7356 fi
7357
7358
7359 # Extract the first word of "pwd", so it can be a program name with args.
7360 set dummy pwd; ac_word=$2
7361 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7362 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7363 if test "${ac_cv_path_BINPWD+set}" = set; then
7364   echo $ECHO_N "(cached) $ECHO_C" >&6
7365 else
7366   case $BINPWD in
7367   [\\/]* | ?:[\\/]*)
7368   ac_cv_path_BINPWD="$BINPWD" # Let the user override the test with a path.
7369   ;;
7370   *)
7371   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7372 for as_dir in $PATH
7373 do
7374   IFS=$as_save_IFS
7375   test -z "$as_dir" && as_dir=.
7376   for ac_exec_ext in '' $ac_executable_extensions; do
7377   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7378     ac_cv_path_BINPWD="$as_dir/$ac_word$ac_exec_ext"
7379     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7380     break 2
7381   fi
7382 done
7383 done
7384 IFS=$as_save_IFS
7385
7386   test -z "$ac_cv_path_BINPWD" && ac_cv_path_BINPWD="pwd"
7387   ;;
7388 esac
7389 fi
7390 BINPWD=$ac_cv_path_BINPWD
7391 if test -n "$BINPWD"; then
7392   { echo "$as_me:$LINENO: result: $BINPWD" >&5
7393 echo "${ECHO_T}$BINPWD" >&6; }
7394 else
7395   { echo "$as_me:$LINENO: result: no" >&5
7396 echo "${ECHO_T}no" >&6; }
7397 fi
7398
7399
7400
7401 # Extract the first word of "Graphviz", so it can be a program name with args.
7402 set dummy Graphviz; ac_word=$2
7403 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7404 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7405 if test "${ac_cv_path_GRAPHVIZ+set}" = set; then
7406   echo $ECHO_N "(cached) $ECHO_C" >&6
7407 else
7408   case $GRAPHVIZ in
7409   [\\/]* | ?:[\\/]*)
7410   ac_cv_path_GRAPHVIZ="$GRAPHVIZ" # Let the user override the test with a path.
7411   ;;
7412   *)
7413   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7414 for as_dir in $PATH
7415 do
7416   IFS=$as_save_IFS
7417   test -z "$as_dir" && as_dir=.
7418   for ac_exec_ext in '' $ac_executable_extensions; do
7419   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7420     ac_cv_path_GRAPHVIZ="$as_dir/$ac_word$ac_exec_ext"
7421     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7422     break 2
7423   fi
7424 done
7425 done
7426 IFS=$as_save_IFS
7427
7428   test -z "$ac_cv_path_GRAPHVIZ" && ac_cv_path_GRAPHVIZ="echo Graphviz"
7429   ;;
7430 esac
7431 fi
7432 GRAPHVIZ=$ac_cv_path_GRAPHVIZ
7433 if test -n "$GRAPHVIZ"; then
7434   { echo "$as_me:$LINENO: result: $GRAPHVIZ" >&5
7435 echo "${ECHO_T}$GRAPHVIZ" >&6; }
7436 else
7437   { echo "$as_me:$LINENO: result: no" >&5
7438 echo "${ECHO_T}no" >&6; }
7439 fi
7440
7441
7442 if test "$GRAPHVIZ" != "echo Graphviz" ; then
7443
7444 cat >>confdefs.h <<\_ACEOF
7445 #define HAVE_GRAPHVIZ 1
7446 _ACEOF
7447
7448     if test "$llvm_cv_os_type" = "MingW" ; then
7449     GRAPHVIZ=`echo $GRAPHVIZ | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7450   fi
7451
7452 cat >>confdefs.h <<_ACEOF
7453 #define LLVM_PATH_GRAPHVIZ "$GRAPHVIZ${EXEEXT}"
7454 _ACEOF
7455
7456 fi
7457 # Extract the first word of "dot", so it can be a program name with args.
7458 set dummy dot; ac_word=$2
7459 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7460 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7461 if test "${ac_cv_path_DOT+set}" = set; then
7462   echo $ECHO_N "(cached) $ECHO_C" >&6
7463 else
7464   case $DOT in
7465   [\\/]* | ?:[\\/]*)
7466   ac_cv_path_DOT="$DOT" # Let the user override the test with a path.
7467   ;;
7468   *)
7469   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7470 for as_dir in $PATH
7471 do
7472   IFS=$as_save_IFS
7473   test -z "$as_dir" && as_dir=.
7474   for ac_exec_ext in '' $ac_executable_extensions; do
7475   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7476     ac_cv_path_DOT="$as_dir/$ac_word$ac_exec_ext"
7477     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7478     break 2
7479   fi
7480 done
7481 done
7482 IFS=$as_save_IFS
7483
7484   test -z "$ac_cv_path_DOT" && ac_cv_path_DOT="echo dot"
7485   ;;
7486 esac
7487 fi
7488 DOT=$ac_cv_path_DOT
7489 if test -n "$DOT"; then
7490   { echo "$as_me:$LINENO: result: $DOT" >&5
7491 echo "${ECHO_T}$DOT" >&6; }
7492 else
7493   { echo "$as_me:$LINENO: result: no" >&5
7494 echo "${ECHO_T}no" >&6; }
7495 fi
7496
7497
7498 if test "$DOT" != "echo dot" ; then
7499
7500 cat >>confdefs.h <<\_ACEOF
7501 #define HAVE_DOT 1
7502 _ACEOF
7503
7504     if test "$llvm_cv_os_type" = "MingW" ; then
7505     DOT=`echo $DOT | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7506   fi
7507
7508 cat >>confdefs.h <<_ACEOF
7509 #define LLVM_PATH_DOT "$DOT${EXEEXT}"
7510 _ACEOF
7511
7512 fi
7513 # Extract the first word of "fdp", so it can be a program name with args.
7514 set dummy fdp; ac_word=$2
7515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7517 if test "${ac_cv_path_FDP+set}" = set; then
7518   echo $ECHO_N "(cached) $ECHO_C" >&6
7519 else
7520   case $FDP in
7521   [\\/]* | ?:[\\/]*)
7522   ac_cv_path_FDP="$FDP" # Let the user override the test with a path.
7523   ;;
7524   *)
7525   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7526 for as_dir in $PATH
7527 do
7528   IFS=$as_save_IFS
7529   test -z "$as_dir" && as_dir=.
7530   for ac_exec_ext in '' $ac_executable_extensions; do
7531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7532     ac_cv_path_FDP="$as_dir/$ac_word$ac_exec_ext"
7533     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7534     break 2
7535   fi
7536 done
7537 done
7538 IFS=$as_save_IFS
7539
7540   test -z "$ac_cv_path_FDP" && ac_cv_path_FDP="echo fdp"
7541   ;;
7542 esac
7543 fi
7544 FDP=$ac_cv_path_FDP
7545 if test -n "$FDP"; then
7546   { echo "$as_me:$LINENO: result: $FDP" >&5
7547 echo "${ECHO_T}$FDP" >&6; }
7548 else
7549   { echo "$as_me:$LINENO: result: no" >&5
7550 echo "${ECHO_T}no" >&6; }
7551 fi
7552
7553
7554 if test "$FDP" != "echo fdp" ; then
7555
7556 cat >>confdefs.h <<\_ACEOF
7557 #define HAVE_FDP 1
7558 _ACEOF
7559
7560     if test "$llvm_cv_os_type" = "MingW" ; then
7561     FDP=`echo $FDP | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7562   fi
7563
7564 cat >>confdefs.h <<_ACEOF
7565 #define LLVM_PATH_FDP "$FDP${EXEEXT}"
7566 _ACEOF
7567
7568 fi
7569 # Extract the first word of "neato", so it can be a program name with args.
7570 set dummy neato; ac_word=$2
7571 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7572 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7573 if test "${ac_cv_path_NEATO+set}" = set; then
7574   echo $ECHO_N "(cached) $ECHO_C" >&6
7575 else
7576   case $NEATO in
7577   [\\/]* | ?:[\\/]*)
7578   ac_cv_path_NEATO="$NEATO" # Let the user override the test with a path.
7579   ;;
7580   *)
7581   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7582 for as_dir in $PATH
7583 do
7584   IFS=$as_save_IFS
7585   test -z "$as_dir" && as_dir=.
7586   for ac_exec_ext in '' $ac_executable_extensions; do
7587   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7588     ac_cv_path_NEATO="$as_dir/$ac_word$ac_exec_ext"
7589     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7590     break 2
7591   fi
7592 done
7593 done
7594 IFS=$as_save_IFS
7595
7596   test -z "$ac_cv_path_NEATO" && ac_cv_path_NEATO="echo neato"
7597   ;;
7598 esac
7599 fi
7600 NEATO=$ac_cv_path_NEATO
7601 if test -n "$NEATO"; then
7602   { echo "$as_me:$LINENO: result: $NEATO" >&5
7603 echo "${ECHO_T}$NEATO" >&6; }
7604 else
7605   { echo "$as_me:$LINENO: result: no" >&5
7606 echo "${ECHO_T}no" >&6; }
7607 fi
7608
7609
7610 if test "$NEATO" != "echo neato" ; then
7611
7612 cat >>confdefs.h <<\_ACEOF
7613 #define HAVE_NEATO 1
7614 _ACEOF
7615
7616     if test "$llvm_cv_os_type" = "MingW" ; then
7617     NEATO=`echo $NEATO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7618   fi
7619
7620 cat >>confdefs.h <<_ACEOF
7621 #define LLVM_PATH_NEATO "$NEATO${EXEEXT}"
7622 _ACEOF
7623
7624 fi
7625 # Extract the first word of "twopi", so it can be a program name with args.
7626 set dummy twopi; ac_word=$2
7627 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7628 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7629 if test "${ac_cv_path_TWOPI+set}" = set; then
7630   echo $ECHO_N "(cached) $ECHO_C" >&6
7631 else
7632   case $TWOPI in
7633   [\\/]* | ?:[\\/]*)
7634   ac_cv_path_TWOPI="$TWOPI" # Let the user override the test with a path.
7635   ;;
7636   *)
7637   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638 for as_dir in $PATH
7639 do
7640   IFS=$as_save_IFS
7641   test -z "$as_dir" && as_dir=.
7642   for ac_exec_ext in '' $ac_executable_extensions; do
7643   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7644     ac_cv_path_TWOPI="$as_dir/$ac_word$ac_exec_ext"
7645     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7646     break 2
7647   fi
7648 done
7649 done
7650 IFS=$as_save_IFS
7651
7652   test -z "$ac_cv_path_TWOPI" && ac_cv_path_TWOPI="echo twopi"
7653   ;;
7654 esac
7655 fi
7656 TWOPI=$ac_cv_path_TWOPI
7657 if test -n "$TWOPI"; then
7658   { echo "$as_me:$LINENO: result: $TWOPI" >&5
7659 echo "${ECHO_T}$TWOPI" >&6; }
7660 else
7661   { echo "$as_me:$LINENO: result: no" >&5
7662 echo "${ECHO_T}no" >&6; }
7663 fi
7664
7665
7666 if test "$TWOPI" != "echo twopi" ; then
7667
7668 cat >>confdefs.h <<\_ACEOF
7669 #define HAVE_TWOPI 1
7670 _ACEOF
7671
7672     if test "$llvm_cv_os_type" = "MingW" ; then
7673     TWOPI=`echo $TWOPI | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7674   fi
7675
7676 cat >>confdefs.h <<_ACEOF
7677 #define LLVM_PATH_TWOPI "$TWOPI${EXEEXT}"
7678 _ACEOF
7679
7680 fi
7681 # Extract the first word of "circo", so it can be a program name with args.
7682 set dummy circo; ac_word=$2
7683 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7684 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7685 if test "${ac_cv_path_CIRCO+set}" = set; then
7686   echo $ECHO_N "(cached) $ECHO_C" >&6
7687 else
7688   case $CIRCO in
7689   [\\/]* | ?:[\\/]*)
7690   ac_cv_path_CIRCO="$CIRCO" # Let the user override the test with a path.
7691   ;;
7692   *)
7693   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7694 for as_dir in $PATH
7695 do
7696   IFS=$as_save_IFS
7697   test -z "$as_dir" && as_dir=.
7698   for ac_exec_ext in '' $ac_executable_extensions; do
7699   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7700     ac_cv_path_CIRCO="$as_dir/$ac_word$ac_exec_ext"
7701     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7702     break 2
7703   fi
7704 done
7705 done
7706 IFS=$as_save_IFS
7707
7708   test -z "$ac_cv_path_CIRCO" && ac_cv_path_CIRCO="echo circo"
7709   ;;
7710 esac
7711 fi
7712 CIRCO=$ac_cv_path_CIRCO
7713 if test -n "$CIRCO"; then
7714   { echo "$as_me:$LINENO: result: $CIRCO" >&5
7715 echo "${ECHO_T}$CIRCO" >&6; }
7716 else
7717   { echo "$as_me:$LINENO: result: no" >&5
7718 echo "${ECHO_T}no" >&6; }
7719 fi
7720
7721
7722 if test "$CIRCO" != "echo circo" ; then
7723
7724 cat >>confdefs.h <<\_ACEOF
7725 #define HAVE_CIRCO 1
7726 _ACEOF
7727
7728     if test "$llvm_cv_os_type" = "MingW" ; then
7729     CIRCO=`echo $CIRCO | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7730   fi
7731
7732 cat >>confdefs.h <<_ACEOF
7733 #define LLVM_PATH_CIRCO "$CIRCO${EXEEXT}"
7734 _ACEOF
7735
7736 fi
7737 for ac_prog in gv gsview32
7738 do
7739   # Extract the first word of "$ac_prog", so it can be a program name with args.
7740 set dummy $ac_prog; ac_word=$2
7741 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7742 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7743 if test "${ac_cv_path_GV+set}" = set; then
7744   echo $ECHO_N "(cached) $ECHO_C" >&6
7745 else
7746   case $GV in
7747   [\\/]* | ?:[\\/]*)
7748   ac_cv_path_GV="$GV" # Let the user override the test with a path.
7749   ;;
7750   *)
7751   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7752 for as_dir in $PATH
7753 do
7754   IFS=$as_save_IFS
7755   test -z "$as_dir" && as_dir=.
7756   for ac_exec_ext in '' $ac_executable_extensions; do
7757   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7758     ac_cv_path_GV="$as_dir/$ac_word$ac_exec_ext"
7759     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7760     break 2
7761   fi
7762 done
7763 done
7764 IFS=$as_save_IFS
7765
7766   ;;
7767 esac
7768 fi
7769 GV=$ac_cv_path_GV
7770 if test -n "$GV"; then
7771   { echo "$as_me:$LINENO: result: $GV" >&5
7772 echo "${ECHO_T}$GV" >&6; }
7773 else
7774   { echo "$as_me:$LINENO: result: no" >&5
7775 echo "${ECHO_T}no" >&6; }
7776 fi
7777
7778
7779   test -n "$GV" && break
7780 done
7781 test -n "$GV" || GV="echo gv"
7782
7783 if test "$GV" != "echo gv" ; then
7784
7785 cat >>confdefs.h <<\_ACEOF
7786 #define HAVE_GV 1
7787 _ACEOF
7788
7789     if test "$llvm_cv_os_type" = "MingW" ; then
7790     GV=`echo $GV | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7791   fi
7792
7793 cat >>confdefs.h <<_ACEOF
7794 #define LLVM_PATH_GV "$GV${EXEEXT}"
7795 _ACEOF
7796
7797 fi
7798 # Extract the first word of "dotty", so it can be a program name with args.
7799 set dummy dotty; ac_word=$2
7800 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7801 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7802 if test "${ac_cv_path_DOTTY+set}" = set; then
7803   echo $ECHO_N "(cached) $ECHO_C" >&6
7804 else
7805   case $DOTTY in
7806   [\\/]* | ?:[\\/]*)
7807   ac_cv_path_DOTTY="$DOTTY" # Let the user override the test with a path.
7808   ;;
7809   *)
7810   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7811 for as_dir in $PATH
7812 do
7813   IFS=$as_save_IFS
7814   test -z "$as_dir" && as_dir=.
7815   for ac_exec_ext in '' $ac_executable_extensions; do
7816   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7817     ac_cv_path_DOTTY="$as_dir/$ac_word$ac_exec_ext"
7818     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7819     break 2
7820   fi
7821 done
7822 done
7823 IFS=$as_save_IFS
7824
7825   test -z "$ac_cv_path_DOTTY" && ac_cv_path_DOTTY="echo dotty"
7826   ;;
7827 esac
7828 fi
7829 DOTTY=$ac_cv_path_DOTTY
7830 if test -n "$DOTTY"; then
7831   { echo "$as_me:$LINENO: result: $DOTTY" >&5
7832 echo "${ECHO_T}$DOTTY" >&6; }
7833 else
7834   { echo "$as_me:$LINENO: result: no" >&5
7835 echo "${ECHO_T}no" >&6; }
7836 fi
7837
7838
7839 if test "$DOTTY" != "echo dotty" ; then
7840
7841 cat >>confdefs.h <<\_ACEOF
7842 #define HAVE_DOTTY 1
7843 _ACEOF
7844
7845     if test "$llvm_cv_os_type" = "MingW" ; then
7846     DOTTY=`echo $DOTTY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7847   fi
7848
7849 cat >>confdefs.h <<_ACEOF
7850 #define LLVM_PATH_DOTTY "$DOTTY${EXEEXT}"
7851 _ACEOF
7852
7853 fi
7854 # Extract the first word of "xdot.py", so it can be a program name with args.
7855 set dummy xdot.py; ac_word=$2
7856 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7857 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7858 if test "${ac_cv_path_XDOT_PY+set}" = set; then
7859   echo $ECHO_N "(cached) $ECHO_C" >&6
7860 else
7861   case $XDOT_PY in
7862   [\\/]* | ?:[\\/]*)
7863   ac_cv_path_XDOT_PY="$XDOT_PY" # Let the user override the test with a path.
7864   ;;
7865   *)
7866   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7867 for as_dir in $PATH
7868 do
7869   IFS=$as_save_IFS
7870   test -z "$as_dir" && as_dir=.
7871   for ac_exec_ext in '' $ac_executable_extensions; do
7872   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7873     ac_cv_path_XDOT_PY="$as_dir/$ac_word$ac_exec_ext"
7874     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7875     break 2
7876   fi
7877 done
7878 done
7879 IFS=$as_save_IFS
7880
7881   test -z "$ac_cv_path_XDOT_PY" && ac_cv_path_XDOT_PY="echo xdot.py"
7882   ;;
7883 esac
7884 fi
7885 XDOT_PY=$ac_cv_path_XDOT_PY
7886 if test -n "$XDOT_PY"; then
7887   { echo "$as_me:$LINENO: result: $XDOT_PY" >&5
7888 echo "${ECHO_T}$XDOT_PY" >&6; }
7889 else
7890   { echo "$as_me:$LINENO: result: no" >&5
7891 echo "${ECHO_T}no" >&6; }
7892 fi
7893
7894
7895 if test "$XDOT_PY" != "echo xdot.py" ; then
7896
7897 cat >>confdefs.h <<\_ACEOF
7898 #define HAVE_XDOT_PY 1
7899 _ACEOF
7900
7901     if test "$llvm_cv_os_type" = "MingW" ; then
7902     XDOT_PY=`echo $XDOT_PY | sed 's/^\/\([A-Za-z]\)\//\1:\//' `
7903   fi
7904
7905 cat >>confdefs.h <<_ACEOF
7906 #define LLVM_PATH_XDOT_PY "$XDOT_PY${EXEEXT}"
7907 _ACEOF
7908
7909 fi
7910
7911
7912 # Extract the first word of "perl", so it can be a program name with args.
7913 set dummy perl; ac_word=$2
7914 { echo "$as_me:$LINENO: checking for $ac_word" >&5
7915 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
7916 if test "${ac_cv_path_PERL+set}" = set; then
7917   echo $ECHO_N "(cached) $ECHO_C" >&6
7918 else
7919   case $PERL in
7920   [\\/]* | ?:[\\/]*)
7921   ac_cv_path_PERL="$PERL" # Let the user override the test with a path.
7922   ;;
7923   *)
7924   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7925 for as_dir in $PATH
7926 do
7927   IFS=$as_save_IFS
7928   test -z "$as_dir" && as_dir=.
7929   for ac_exec_ext in '' $ac_executable_extensions; do
7930   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
7931     ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext"
7932     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
7933     break 2
7934   fi
7935 done
7936 done
7937 IFS=$as_save_IFS
7938
7939   test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="none"
7940   ;;
7941 esac
7942 fi
7943 PERL=$ac_cv_path_PERL
7944 if test -n "$PERL"; then
7945   { echo "$as_me:$LINENO: result: $PERL" >&5
7946 echo "${ECHO_T}$PERL" >&6; }
7947 else
7948   { echo "$as_me:$LINENO: result: no" >&5
7949 echo "${ECHO_T}no" >&6; }
7950 fi
7951
7952
7953 if test "$PERL" != "none"; then
7954   { echo "$as_me:$LINENO: checking for Perl 5.006 or newer" >&5
7955 echo $ECHO_N "checking for Perl 5.006 or newer... $ECHO_C" >&6; }
7956   if $PERL -e 'use 5.006;' 2>&1 > /dev/null; then
7957     { echo "$as_me:$LINENO: result: yes" >&5
7958 echo "${ECHO_T}yes" >&6; }
7959   else
7960     PERL=none
7961     { echo "$as_me:$LINENO: result: not found" >&5
7962 echo "${ECHO_T}not found" >&6; }
7963   fi
7964 fi
7965
7966
7967 if test x"$PERL" = xnone; then
7968    HAVE_PERL=0
7969
7970    { { echo "$as_me:$LINENO: error: perl is required but was not found, please install it" >&5
7971 echo "$as_me: error: perl is required but was not found, please install it" >&2;}
7972    { (exit 1); exit 1; }; }
7973 else
7974    HAVE_PERL=1
7975
7976 fi
7977
7978 # Find a good install program.  We prefer a C program (faster),
7979 # so one script is as good as another.  But avoid the broken or
7980 # incompatible versions:
7981 # SysV /etc/install, /usr/sbin/install
7982 # SunOS /usr/etc/install
7983 # IRIX /sbin/install
7984 # AIX /bin/install
7985 # AmigaOS /C/install, which installs bootblocks on floppy discs
7986 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
7987 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
7988 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
7989 # OS/2's system install, which has a completely different semantic
7990 # ./install, which can be erroneously created by make from ./install.sh.
7991 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
7992 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
7993 if test -z "$INSTALL"; then
7994 if test "${ac_cv_path_install+set}" = set; then
7995   echo $ECHO_N "(cached) $ECHO_C" >&6
7996 else
7997   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7998 for as_dir in $PATH
7999 do
8000   IFS=$as_save_IFS
8001   test -z "$as_dir" && as_dir=.
8002   # Account for people who put trailing slashes in PATH elements.
8003 case $as_dir/ in
8004   ./ | .// | /cC/* | \
8005   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
8006   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
8007   /usr/ucb/* ) ;;
8008   *)
8009     # OSF1 and SCO ODT 3.0 have their own names for install.
8010     # Don't use installbsd from OSF since it installs stuff as root
8011     # by default.
8012     for ac_prog in ginstall scoinst install; do
8013       for ac_exec_ext in '' $ac_executable_extensions; do
8014         if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
8015           if test $ac_prog = install &&
8016             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8017             # AIX install.  It has an incompatible calling convention.
8018             :
8019           elif test $ac_prog = install &&
8020             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
8021             # program-specific install script used by HP pwplus--don't use.
8022             :
8023           else
8024             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
8025             break 3
8026           fi
8027         fi
8028       done
8029     done
8030     ;;
8031 esac
8032 done
8033 IFS=$as_save_IFS
8034
8035
8036 fi
8037   if test "${ac_cv_path_install+set}" = set; then
8038     INSTALL=$ac_cv_path_install
8039   else
8040     # As a last resort, use the slow shell script.  Don't cache a
8041     # value for INSTALL within a source directory, because that will
8042     # break other packages using the cache if that directory is
8043     # removed, or if the value is a relative name.
8044     INSTALL=$ac_install_sh
8045   fi
8046 fi
8047 { echo "$as_me:$LINENO: result: $INSTALL" >&5
8048 echo "${ECHO_T}$INSTALL" >&6; }
8049
8050 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
8051 # It thinks the first close brace ends the variable substitution.
8052 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
8053
8054 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
8055
8056 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
8057
8058 case "$INSTALL" in
8059  [\\/$]* | ?:[\\/]* ) ;;
8060  *)  INSTALL="\\\$(TOPSRCDIR)/$INSTALL" ;;
8061 esac
8062
8063 # Extract the first word of "bzip2", so it can be a program name with args.
8064 set dummy bzip2; ac_word=$2
8065 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8066 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8067 if test "${ac_cv_path_BZIP2+set}" = set; then
8068   echo $ECHO_N "(cached) $ECHO_C" >&6
8069 else
8070   case $BZIP2 in
8071   [\\/]* | ?:[\\/]*)
8072   ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8073   ;;
8074   *)
8075   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8076 for as_dir in $PATH
8077 do
8078   IFS=$as_save_IFS
8079   test -z "$as_dir" && as_dir=.
8080   for ac_exec_ext in '' $ac_executable_extensions; do
8081   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8082     ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8083     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8084     break 2
8085   fi
8086 done
8087 done
8088 IFS=$as_save_IFS
8089
8090   ;;
8091 esac
8092 fi
8093 BZIP2=$ac_cv_path_BZIP2
8094 if test -n "$BZIP2"; then
8095   { echo "$as_me:$LINENO: result: $BZIP2" >&5
8096 echo "${ECHO_T}$BZIP2" >&6; }
8097 else
8098   { echo "$as_me:$LINENO: result: no" >&5
8099 echo "${ECHO_T}no" >&6; }
8100 fi
8101
8102
8103 # Extract the first word of "cat", so it can be a program name with args.
8104 set dummy cat; ac_word=$2
8105 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8106 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8107 if test "${ac_cv_path_CAT+set}" = set; then
8108   echo $ECHO_N "(cached) $ECHO_C" >&6
8109 else
8110   case $CAT in
8111   [\\/]* | ?:[\\/]*)
8112   ac_cv_path_CAT="$CAT" # Let the user override the test with a path.
8113   ;;
8114   *)
8115   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8116 for as_dir in $PATH
8117 do
8118   IFS=$as_save_IFS
8119   test -z "$as_dir" && as_dir=.
8120   for ac_exec_ext in '' $ac_executable_extensions; do
8121   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8122     ac_cv_path_CAT="$as_dir/$ac_word$ac_exec_ext"
8123     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8124     break 2
8125   fi
8126 done
8127 done
8128 IFS=$as_save_IFS
8129
8130   ;;
8131 esac
8132 fi
8133 CAT=$ac_cv_path_CAT
8134 if test -n "$CAT"; then
8135   { echo "$as_me:$LINENO: result: $CAT" >&5
8136 echo "${ECHO_T}$CAT" >&6; }
8137 else
8138   { echo "$as_me:$LINENO: result: no" >&5
8139 echo "${ECHO_T}no" >&6; }
8140 fi
8141
8142
8143 # Extract the first word of "doxygen", so it can be a program name with args.
8144 set dummy doxygen; ac_word=$2
8145 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8146 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8147 if test "${ac_cv_path_DOXYGEN+set}" = set; then
8148   echo $ECHO_N "(cached) $ECHO_C" >&6
8149 else
8150   case $DOXYGEN in
8151   [\\/]* | ?:[\\/]*)
8152   ac_cv_path_DOXYGEN="$DOXYGEN" # Let the user override the test with a path.
8153   ;;
8154   *)
8155   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8156 for as_dir in $PATH
8157 do
8158   IFS=$as_save_IFS
8159   test -z "$as_dir" && as_dir=.
8160   for ac_exec_ext in '' $ac_executable_extensions; do
8161   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8162     ac_cv_path_DOXYGEN="$as_dir/$ac_word$ac_exec_ext"
8163     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8164     break 2
8165   fi
8166 done
8167 done
8168 IFS=$as_save_IFS
8169
8170   ;;
8171 esac
8172 fi
8173 DOXYGEN=$ac_cv_path_DOXYGEN
8174 if test -n "$DOXYGEN"; then
8175   { echo "$as_me:$LINENO: result: $DOXYGEN" >&5
8176 echo "${ECHO_T}$DOXYGEN" >&6; }
8177 else
8178   { echo "$as_me:$LINENO: result: no" >&5
8179 echo "${ECHO_T}no" >&6; }
8180 fi
8181
8182
8183 # Extract the first word of "groff", so it can be a program name with args.
8184 set dummy groff; ac_word=$2
8185 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8186 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8187 if test "${ac_cv_path_GROFF+set}" = set; then
8188   echo $ECHO_N "(cached) $ECHO_C" >&6
8189 else
8190   case $GROFF in
8191   [\\/]* | ?:[\\/]*)
8192   ac_cv_path_GROFF="$GROFF" # Let the user override the test with a path.
8193   ;;
8194   *)
8195   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8196 for as_dir in $PATH
8197 do
8198   IFS=$as_save_IFS
8199   test -z "$as_dir" && as_dir=.
8200   for ac_exec_ext in '' $ac_executable_extensions; do
8201   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8202     ac_cv_path_GROFF="$as_dir/$ac_word$ac_exec_ext"
8203     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8204     break 2
8205   fi
8206 done
8207 done
8208 IFS=$as_save_IFS
8209
8210   ;;
8211 esac
8212 fi
8213 GROFF=$ac_cv_path_GROFF
8214 if test -n "$GROFF"; then
8215   { echo "$as_me:$LINENO: result: $GROFF" >&5
8216 echo "${ECHO_T}$GROFF" >&6; }
8217 else
8218   { echo "$as_me:$LINENO: result: no" >&5
8219 echo "${ECHO_T}no" >&6; }
8220 fi
8221
8222
8223 # Extract the first word of "gzip", so it can be a program name with args.
8224 set dummy gzip; ac_word=$2
8225 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8226 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8227 if test "${ac_cv_path_GZIP+set}" = set; then
8228   echo $ECHO_N "(cached) $ECHO_C" >&6
8229 else
8230   case $GZIP in
8231   [\\/]* | ?:[\\/]*)
8232   ac_cv_path_GZIP="$GZIP" # Let the user override the test with a path.
8233   ;;
8234   *)
8235   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8236 for as_dir in $PATH
8237 do
8238   IFS=$as_save_IFS
8239   test -z "$as_dir" && as_dir=.
8240   for ac_exec_ext in '' $ac_executable_extensions; do
8241   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8242     ac_cv_path_GZIP="$as_dir/$ac_word$ac_exec_ext"
8243     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8244     break 2
8245   fi
8246 done
8247 done
8248 IFS=$as_save_IFS
8249
8250   ;;
8251 esac
8252 fi
8253 GZIP=$ac_cv_path_GZIP
8254 if test -n "$GZIP"; then
8255   { echo "$as_me:$LINENO: result: $GZIP" >&5
8256 echo "${ECHO_T}$GZIP" >&6; }
8257 else
8258   { echo "$as_me:$LINENO: result: no" >&5
8259 echo "${ECHO_T}no" >&6; }
8260 fi
8261
8262
8263 # Extract the first word of "pod2html", so it can be a program name with args.
8264 set dummy pod2html; ac_word=$2
8265 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8266 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8267 if test "${ac_cv_path_POD2HTML+set}" = set; then
8268   echo $ECHO_N "(cached) $ECHO_C" >&6
8269 else
8270   case $POD2HTML in
8271   [\\/]* | ?:[\\/]*)
8272   ac_cv_path_POD2HTML="$POD2HTML" # Let the user override the test with a path.
8273   ;;
8274   *)
8275   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8276 for as_dir in $PATH
8277 do
8278   IFS=$as_save_IFS
8279   test -z "$as_dir" && as_dir=.
8280   for ac_exec_ext in '' $ac_executable_extensions; do
8281   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8282     ac_cv_path_POD2HTML="$as_dir/$ac_word$ac_exec_ext"
8283     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8284     break 2
8285   fi
8286 done
8287 done
8288 IFS=$as_save_IFS
8289
8290   ;;
8291 esac
8292 fi
8293 POD2HTML=$ac_cv_path_POD2HTML
8294 if test -n "$POD2HTML"; then
8295   { echo "$as_me:$LINENO: result: $POD2HTML" >&5
8296 echo "${ECHO_T}$POD2HTML" >&6; }
8297 else
8298   { echo "$as_me:$LINENO: result: no" >&5
8299 echo "${ECHO_T}no" >&6; }
8300 fi
8301
8302
8303 # Extract the first word of "pod2man", so it can be a program name with args.
8304 set dummy pod2man; ac_word=$2
8305 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8306 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8307 if test "${ac_cv_path_POD2MAN+set}" = set; then
8308   echo $ECHO_N "(cached) $ECHO_C" >&6
8309 else
8310   case $POD2MAN in
8311   [\\/]* | ?:[\\/]*)
8312   ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8313   ;;
8314   *)
8315   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8316 for as_dir in $PATH
8317 do
8318   IFS=$as_save_IFS
8319   test -z "$as_dir" && as_dir=.
8320   for ac_exec_ext in '' $ac_executable_extensions; do
8321   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8322     ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8323     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8324     break 2
8325   fi
8326 done
8327 done
8328 IFS=$as_save_IFS
8329
8330   ;;
8331 esac
8332 fi
8333 POD2MAN=$ac_cv_path_POD2MAN
8334 if test -n "$POD2MAN"; then
8335   { echo "$as_me:$LINENO: result: $POD2MAN" >&5
8336 echo "${ECHO_T}$POD2MAN" >&6; }
8337 else
8338   { echo "$as_me:$LINENO: result: no" >&5
8339 echo "${ECHO_T}no" >&6; }
8340 fi
8341
8342
8343 # Extract the first word of "pdfroff", so it can be a program name with args.
8344 set dummy pdfroff; ac_word=$2
8345 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8346 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8347 if test "${ac_cv_path_PDFROFF+set}" = set; then
8348   echo $ECHO_N "(cached) $ECHO_C" >&6
8349 else
8350   case $PDFROFF in
8351   [\\/]* | ?:[\\/]*)
8352   ac_cv_path_PDFROFF="$PDFROFF" # Let the user override the test with a path.
8353   ;;
8354   *)
8355   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8356 for as_dir in $PATH
8357 do
8358   IFS=$as_save_IFS
8359   test -z "$as_dir" && as_dir=.
8360   for ac_exec_ext in '' $ac_executable_extensions; do
8361   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8362     ac_cv_path_PDFROFF="$as_dir/$ac_word$ac_exec_ext"
8363     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8364     break 2
8365   fi
8366 done
8367 done
8368 IFS=$as_save_IFS
8369
8370   ;;
8371 esac
8372 fi
8373 PDFROFF=$ac_cv_path_PDFROFF
8374 if test -n "$PDFROFF"; then
8375   { echo "$as_me:$LINENO: result: $PDFROFF" >&5
8376 echo "${ECHO_T}$PDFROFF" >&6; }
8377 else
8378   { echo "$as_me:$LINENO: result: no" >&5
8379 echo "${ECHO_T}no" >&6; }
8380 fi
8381
8382
8383 # Extract the first word of "runtest", so it can be a program name with args.
8384 set dummy runtest; ac_word=$2
8385 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8386 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8387 if test "${ac_cv_path_RUNTEST+set}" = set; then
8388   echo $ECHO_N "(cached) $ECHO_C" >&6
8389 else
8390   case $RUNTEST in
8391   [\\/]* | ?:[\\/]*)
8392   ac_cv_path_RUNTEST="$RUNTEST" # Let the user override the test with a path.
8393   ;;
8394   *)
8395   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8396 for as_dir in $PATH
8397 do
8398   IFS=$as_save_IFS
8399   test -z "$as_dir" && as_dir=.
8400   for ac_exec_ext in '' $ac_executable_extensions; do
8401   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8402     ac_cv_path_RUNTEST="$as_dir/$ac_word$ac_exec_ext"
8403     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8404     break 2
8405   fi
8406 done
8407 done
8408 IFS=$as_save_IFS
8409
8410   ;;
8411 esac
8412 fi
8413 RUNTEST=$ac_cv_path_RUNTEST
8414 if test -n "$RUNTEST"; then
8415   { echo "$as_me:$LINENO: result: $RUNTEST" >&5
8416 echo "${ECHO_T}$RUNTEST" >&6; }
8417 else
8418   { echo "$as_me:$LINENO: result: no" >&5
8419 echo "${ECHO_T}no" >&6; }
8420 fi
8421
8422
8423
8424 no_itcl=true
8425 { echo "$as_me:$LINENO: checking for the tclsh program in tclinclude directory" >&5
8426 echo $ECHO_N "checking for the tclsh program in tclinclude directory... $ECHO_C" >&6; }
8427
8428 # Check whether --with-tclinclude was given.
8429 if test "${with_tclinclude+set}" = set; then
8430   withval=$with_tclinclude; with_tclinclude=${withval}
8431 else
8432   with_tclinclude=''
8433 fi
8434
8435 if test "${ac_cv_path_tclsh+set}" = set; then
8436   echo $ECHO_N "(cached) $ECHO_C" >&6
8437 else
8438
8439 if test x"${with_tclinclude}" != x ; then
8440   if test -f ${with_tclinclude}/tclsh ; then
8441     ac_cv_path_tclsh=`(cd ${with_tclinclude}; pwd)`
8442   elif test -f ${with_tclinclude}/src/tclsh ; then
8443     ac_cv_path_tclsh=`(cd ${with_tclinclude}/src; pwd)`
8444   else
8445     { { echo "$as_me:$LINENO: error: ${with_tclinclude} directory doesn't contain tclsh" >&5
8446 echo "$as_me: error: ${with_tclinclude} directory doesn't contain tclsh" >&2;}
8447    { (exit 1); exit 1; }; }
8448   fi
8449 fi
8450 fi
8451
8452
8453 if test x"${ac_cv_path_tclsh}" = x ; then
8454   { echo "$as_me:$LINENO: result: none" >&5
8455 echo "${ECHO_T}none" >&6; }
8456   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
8457 do
8458   # Extract the first word of "$ac_prog", so it can be a program name with args.
8459 set dummy $ac_prog; ac_word=$2
8460 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8461 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8462 if test "${ac_cv_path_TCLSH+set}" = set; then
8463   echo $ECHO_N "(cached) $ECHO_C" >&6
8464 else
8465   case $TCLSH in
8466   [\\/]* | ?:[\\/]*)
8467   ac_cv_path_TCLSH="$TCLSH" # Let the user override the test with a path.
8468   ;;
8469   *)
8470   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8471 for as_dir in $PATH
8472 do
8473   IFS=$as_save_IFS
8474   test -z "$as_dir" && as_dir=.
8475   for ac_exec_ext in '' $ac_executable_extensions; do
8476   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8477     ac_cv_path_TCLSH="$as_dir/$ac_word$ac_exec_ext"
8478     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8479     break 2
8480   fi
8481 done
8482 done
8483 IFS=$as_save_IFS
8484
8485   ;;
8486 esac
8487 fi
8488 TCLSH=$ac_cv_path_TCLSH
8489 if test -n "$TCLSH"; then
8490   { echo "$as_me:$LINENO: result: $TCLSH" >&5
8491 echo "${ECHO_T}$TCLSH" >&6; }
8492 else
8493   { echo "$as_me:$LINENO: result: no" >&5
8494 echo "${ECHO_T}no" >&6; }
8495 fi
8496
8497
8498   test -n "$TCLSH" && break
8499 done
8500
8501   if test x"${TCLSH}" = x ; then
8502     ac_cv_path_tclsh='';
8503   else
8504     ac_cv_path_tclsh="${TCLSH}";
8505   fi
8506 else
8507   { echo "$as_me:$LINENO: result: ${ac_cv_path_tclsh}" >&5
8508 echo "${ECHO_T}${ac_cv_path_tclsh}" >&6; }
8509   TCLSH="${ac_cv_path_tclsh}"
8510
8511 fi
8512
8513 # Extract the first word of "zip", so it can be a program name with args.
8514 set dummy zip; ac_word=$2
8515 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8516 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8517 if test "${ac_cv_path_ZIP+set}" = set; then
8518   echo $ECHO_N "(cached) $ECHO_C" >&6
8519 else
8520   case $ZIP in
8521   [\\/]* | ?:[\\/]*)
8522   ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8523   ;;
8524   *)
8525   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8526 for as_dir in $PATH
8527 do
8528   IFS=$as_save_IFS
8529   test -z "$as_dir" && as_dir=.
8530   for ac_exec_ext in '' $ac_executable_extensions; do
8531   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8532     ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8533     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8534     break 2
8535   fi
8536 done
8537 done
8538 IFS=$as_save_IFS
8539
8540   ;;
8541 esac
8542 fi
8543 ZIP=$ac_cv_path_ZIP
8544 if test -n "$ZIP"; then
8545   { echo "$as_me:$LINENO: result: $ZIP" >&5
8546 echo "${ECHO_T}$ZIP" >&6; }
8547 else
8548   { echo "$as_me:$LINENO: result: no" >&5
8549 echo "${ECHO_T}no" >&6; }
8550 fi
8551
8552
8553 for ac_prog in ocamlc
8554 do
8555   # Extract the first word of "$ac_prog", so it can be a program name with args.
8556 set dummy $ac_prog; ac_word=$2
8557 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8558 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8559 if test "${ac_cv_path_OCAMLC+set}" = set; then
8560   echo $ECHO_N "(cached) $ECHO_C" >&6
8561 else
8562   case $OCAMLC in
8563   [\\/]* | ?:[\\/]*)
8564   ac_cv_path_OCAMLC="$OCAMLC" # Let the user override the test with a path.
8565   ;;
8566   *)
8567   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8568 for as_dir in $PATH
8569 do
8570   IFS=$as_save_IFS
8571   test -z "$as_dir" && as_dir=.
8572   for ac_exec_ext in '' $ac_executable_extensions; do
8573   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8574     ac_cv_path_OCAMLC="$as_dir/$ac_word$ac_exec_ext"
8575     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8576     break 2
8577   fi
8578 done
8579 done
8580 IFS=$as_save_IFS
8581
8582   ;;
8583 esac
8584 fi
8585 OCAMLC=$ac_cv_path_OCAMLC
8586 if test -n "$OCAMLC"; then
8587   { echo "$as_me:$LINENO: result: $OCAMLC" >&5
8588 echo "${ECHO_T}$OCAMLC" >&6; }
8589 else
8590   { echo "$as_me:$LINENO: result: no" >&5
8591 echo "${ECHO_T}no" >&6; }
8592 fi
8593
8594
8595   test -n "$OCAMLC" && break
8596 done
8597
8598 for ac_prog in ocamlopt
8599 do
8600   # Extract the first word of "$ac_prog", so it can be a program name with args.
8601 set dummy $ac_prog; ac_word=$2
8602 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8603 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8604 if test "${ac_cv_path_OCAMLOPT+set}" = set; then
8605   echo $ECHO_N "(cached) $ECHO_C" >&6
8606 else
8607   case $OCAMLOPT in
8608   [\\/]* | ?:[\\/]*)
8609   ac_cv_path_OCAMLOPT="$OCAMLOPT" # Let the user override the test with a path.
8610   ;;
8611   *)
8612   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8613 for as_dir in $PATH
8614 do
8615   IFS=$as_save_IFS
8616   test -z "$as_dir" && as_dir=.
8617   for ac_exec_ext in '' $ac_executable_extensions; do
8618   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8619     ac_cv_path_OCAMLOPT="$as_dir/$ac_word$ac_exec_ext"
8620     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8621     break 2
8622   fi
8623 done
8624 done
8625 IFS=$as_save_IFS
8626
8627   ;;
8628 esac
8629 fi
8630 OCAMLOPT=$ac_cv_path_OCAMLOPT
8631 if test -n "$OCAMLOPT"; then
8632   { echo "$as_me:$LINENO: result: $OCAMLOPT" >&5
8633 echo "${ECHO_T}$OCAMLOPT" >&6; }
8634 else
8635   { echo "$as_me:$LINENO: result: no" >&5
8636 echo "${ECHO_T}no" >&6; }
8637 fi
8638
8639
8640   test -n "$OCAMLOPT" && break
8641 done
8642
8643 for ac_prog in ocamldep
8644 do
8645   # Extract the first word of "$ac_prog", so it can be a program name with args.
8646 set dummy $ac_prog; ac_word=$2
8647 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8648 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8649 if test "${ac_cv_path_OCAMLDEP+set}" = set; then
8650   echo $ECHO_N "(cached) $ECHO_C" >&6
8651 else
8652   case $OCAMLDEP in
8653   [\\/]* | ?:[\\/]*)
8654   ac_cv_path_OCAMLDEP="$OCAMLDEP" # Let the user override the test with a path.
8655   ;;
8656   *)
8657   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8658 for as_dir in $PATH
8659 do
8660   IFS=$as_save_IFS
8661   test -z "$as_dir" && as_dir=.
8662   for ac_exec_ext in '' $ac_executable_extensions; do
8663   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8664     ac_cv_path_OCAMLDEP="$as_dir/$ac_word$ac_exec_ext"
8665     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8666     break 2
8667   fi
8668 done
8669 done
8670 IFS=$as_save_IFS
8671
8672   ;;
8673 esac
8674 fi
8675 OCAMLDEP=$ac_cv_path_OCAMLDEP
8676 if test -n "$OCAMLDEP"; then
8677   { echo "$as_me:$LINENO: result: $OCAMLDEP" >&5
8678 echo "${ECHO_T}$OCAMLDEP" >&6; }
8679 else
8680   { echo "$as_me:$LINENO: result: no" >&5
8681 echo "${ECHO_T}no" >&6; }
8682 fi
8683
8684
8685   test -n "$OCAMLDEP" && break
8686 done
8687
8688 for ac_prog in ocamldoc
8689 do
8690   # Extract the first word of "$ac_prog", so it can be a program name with args.
8691 set dummy $ac_prog; ac_word=$2
8692 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8693 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8694 if test "${ac_cv_path_OCAMLDOC+set}" = set; then
8695   echo $ECHO_N "(cached) $ECHO_C" >&6
8696 else
8697   case $OCAMLDOC in
8698   [\\/]* | ?:[\\/]*)
8699   ac_cv_path_OCAMLDOC="$OCAMLDOC" # Let the user override the test with a path.
8700   ;;
8701   *)
8702   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8703 for as_dir in $PATH
8704 do
8705   IFS=$as_save_IFS
8706   test -z "$as_dir" && as_dir=.
8707   for ac_exec_ext in '' $ac_executable_extensions; do
8708   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8709     ac_cv_path_OCAMLDOC="$as_dir/$ac_word$ac_exec_ext"
8710     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8711     break 2
8712   fi
8713 done
8714 done
8715 IFS=$as_save_IFS
8716
8717   ;;
8718 esac
8719 fi
8720 OCAMLDOC=$ac_cv_path_OCAMLDOC
8721 if test -n "$OCAMLDOC"; then
8722   { echo "$as_me:$LINENO: result: $OCAMLDOC" >&5
8723 echo "${ECHO_T}$OCAMLDOC" >&6; }
8724 else
8725   { echo "$as_me:$LINENO: result: no" >&5
8726 echo "${ECHO_T}no" >&6; }
8727 fi
8728
8729
8730   test -n "$OCAMLDOC" && break
8731 done
8732
8733 for ac_prog in gas as
8734 do
8735   # Extract the first word of "$ac_prog", so it can be a program name with args.
8736 set dummy $ac_prog; ac_word=$2
8737 { echo "$as_me:$LINENO: checking for $ac_word" >&5
8738 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
8739 if test "${ac_cv_path_GAS+set}" = set; then
8740   echo $ECHO_N "(cached) $ECHO_C" >&6
8741 else
8742   case $GAS in
8743   [\\/]* | ?:[\\/]*)
8744   ac_cv_path_GAS="$GAS" # Let the user override the test with a path.
8745   ;;
8746   *)
8747   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8748 for as_dir in $PATH
8749 do
8750   IFS=$as_save_IFS
8751   test -z "$as_dir" && as_dir=.
8752   for ac_exec_ext in '' $ac_executable_extensions; do
8753   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
8754     ac_cv_path_GAS="$as_dir/$ac_word$ac_exec_ext"
8755     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
8756     break 2
8757   fi
8758 done
8759 done
8760 IFS=$as_save_IFS
8761
8762   ;;
8763 esac
8764 fi
8765 GAS=$ac_cv_path_GAS
8766 if test -n "$GAS"; then
8767   { echo "$as_me:$LINENO: result: $GAS" >&5
8768 echo "${ECHO_T}$GAS" >&6; }
8769 else
8770   { echo "$as_me:$LINENO: result: no" >&5
8771 echo "${ECHO_T}no" >&6; }
8772 fi
8773
8774
8775   test -n "$GAS" && break
8776 done
8777
8778
8779 { echo "$as_me:$LINENO: checking for linker version" >&5
8780 echo $ECHO_N "checking for linker version... $ECHO_C" >&6; }
8781 if test "${llvm_cv_link_version+set}" = set; then
8782   echo $ECHO_N "(cached) $ECHO_C" >&6
8783 else
8784
8785    version_string="$(ld -v 2>&1 | head -1)"
8786
8787    # Check for ld64.
8788    if (echo "$version_string" | grep -q "ld64"); then
8789      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#.*ld64-\([^ ]*\)#\1#")
8790    else
8791      llvm_cv_link_version=$(echo "$version_string" | sed -e "s#[^0-9]*\([0-9.]*\).*#\1#")
8792    fi
8793
8794 fi
8795 { echo "$as_me:$LINENO: result: $llvm_cv_link_version" >&5
8796 echo "${ECHO_T}$llvm_cv_link_version" >&6; }
8797
8798 cat >>confdefs.h <<_ACEOF
8799 #define HOST_LINK_VERSION "$llvm_cv_link_version"
8800 _ACEOF
8801
8802
8803
8804 { echo "$as_me:$LINENO: checking for compiler -Wl,-R<path> option" >&5
8805 echo $ECHO_N "checking for compiler -Wl,-R<path> option... $ECHO_C" >&6; }
8806 if test "${llvm_cv_link_use_r+set}" = set; then
8807   echo $ECHO_N "(cached) $ECHO_C" >&6
8808 else
8809    ac_ext=c
8810 ac_cpp='$CPP $CPPFLAGS'
8811 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8812 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8813 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8814
8815   oldcflags="$CFLAGS"
8816   CFLAGS="$CFLAGS -Wl,-R."
8817   cat >conftest.$ac_ext <<_ACEOF
8818 /* confdefs.h.  */
8819 _ACEOF
8820 cat confdefs.h >>conftest.$ac_ext
8821 cat >>conftest.$ac_ext <<_ACEOF
8822 /* end confdefs.h.  */
8823
8824 int
8825 main ()
8826 {
8827
8828   ;
8829   return 0;
8830 }
8831 _ACEOF
8832 rm -f conftest.$ac_objext conftest$ac_exeext
8833 if { (ac_try="$ac_link"
8834 case "(($ac_try" in
8835   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8836   *) ac_try_echo=$ac_try;;
8837 esac
8838 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8839   (eval "$ac_link") 2>conftest.er1
8840   ac_status=$?
8841   grep -v '^ *+' conftest.er1 >conftest.err
8842   rm -f conftest.er1
8843   cat conftest.err >&5
8844   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8845   (exit $ac_status); } &&
8846          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8847   { (case "(($ac_try" in
8848   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8849   *) ac_try_echo=$ac_try;;
8850 esac
8851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8852   (eval "$ac_try") 2>&5
8853   ac_status=$?
8854   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8855   (exit $ac_status); }; } &&
8856          { ac_try='test -s conftest$ac_exeext'
8857   { (case "(($ac_try" in
8858   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8859   *) ac_try_echo=$ac_try;;
8860 esac
8861 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8862   (eval "$ac_try") 2>&5
8863   ac_status=$?
8864   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8865   (exit $ac_status); }; }; then
8866   llvm_cv_link_use_r=yes
8867 else
8868   echo "$as_me: failed program was:" >&5
8869 sed 's/^/| /' conftest.$ac_ext >&5
8870
8871         llvm_cv_link_use_r=no
8872 fi
8873
8874 rm -f core conftest.err conftest.$ac_objext \
8875       conftest$ac_exeext conftest.$ac_ext
8876   CFLAGS="$oldcflags"
8877   ac_ext=c
8878 ac_cpp='$CPP $CPPFLAGS'
8879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8882
8883
8884 fi
8885 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_r" >&5
8886 echo "${ECHO_T}$llvm_cv_link_use_r" >&6; }
8887 if test "$llvm_cv_link_use_r" = yes ; then
8888
8889 cat >>confdefs.h <<\_ACEOF
8890 #define HAVE_LINK_R 1
8891 _ACEOF
8892
8893   fi
8894
8895
8896 { echo "$as_me:$LINENO: checking for compiler -Wl,-export-dynamic option" >&5
8897 echo $ECHO_N "checking for compiler -Wl,-export-dynamic option... $ECHO_C" >&6; }
8898 if test "${llvm_cv_link_use_export_dynamic+set}" = set; then
8899   echo $ECHO_N "(cached) $ECHO_C" >&6
8900 else
8901    ac_ext=c
8902 ac_cpp='$CPP $CPPFLAGS'
8903 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8904 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8905 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8906
8907   oldcflags="$CFLAGS"
8908   CFLAGS="$CFLAGS -Wl,-export-dynamic"
8909   cat >conftest.$ac_ext <<_ACEOF
8910 /* confdefs.h.  */
8911 _ACEOF
8912 cat confdefs.h >>conftest.$ac_ext
8913 cat >>conftest.$ac_ext <<_ACEOF
8914 /* end confdefs.h.  */
8915
8916 int
8917 main ()
8918 {
8919
8920   ;
8921   return 0;
8922 }
8923 _ACEOF
8924 rm -f conftest.$ac_objext conftest$ac_exeext
8925 if { (ac_try="$ac_link"
8926 case "(($ac_try" in
8927   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8928   *) ac_try_echo=$ac_try;;
8929 esac
8930 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8931   (eval "$ac_link") 2>conftest.er1
8932   ac_status=$?
8933   grep -v '^ *+' conftest.er1 >conftest.err
8934   rm -f conftest.er1
8935   cat conftest.err >&5
8936   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8937   (exit $ac_status); } &&
8938          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
8939   { (case "(($ac_try" in
8940   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8941   *) ac_try_echo=$ac_try;;
8942 esac
8943 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8944   (eval "$ac_try") 2>&5
8945   ac_status=$?
8946   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8947   (exit $ac_status); }; } &&
8948          { ac_try='test -s conftest$ac_exeext'
8949   { (case "(($ac_try" in
8950   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8951   *) ac_try_echo=$ac_try;;
8952 esac
8953 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8954   (eval "$ac_try") 2>&5
8955   ac_status=$?
8956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
8957   (exit $ac_status); }; }; then
8958   llvm_cv_link_use_export_dynamic=yes
8959 else
8960   echo "$as_me: failed program was:" >&5
8961 sed 's/^/| /' conftest.$ac_ext >&5
8962
8963         llvm_cv_link_use_export_dynamic=no
8964 fi
8965
8966 rm -f core conftest.err conftest.$ac_objext \
8967       conftest$ac_exeext conftest.$ac_ext
8968   CFLAGS="$oldcflags"
8969   ac_ext=c
8970 ac_cpp='$CPP $CPPFLAGS'
8971 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8972 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8973 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8974
8975
8976 fi
8977 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_export_dynamic" >&5
8978 echo "${ECHO_T}$llvm_cv_link_use_export_dynamic" >&6; }
8979 if test "$llvm_cv_link_use_export_dynamic" = yes ; then
8980
8981 cat >>confdefs.h <<\_ACEOF
8982 #define HAVE_LINK_EXPORT_DYNAMIC 1
8983 _ACEOF
8984
8985   fi
8986
8987
8988 { echo "$as_me:$LINENO: checking for compiler -Wl,--version-script option" >&5
8989 echo $ECHO_N "checking for compiler -Wl,--version-script option... $ECHO_C" >&6; }
8990 if test "${llvm_cv_link_use_version_script+set}" = set; then
8991   echo $ECHO_N "(cached) $ECHO_C" >&6
8992 else
8993    ac_ext=c
8994 ac_cpp='$CPP $CPPFLAGS'
8995 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8996 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8997 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8998
8999   oldcflags="$CFLAGS"
9000
9001   # The following code is from the autoconf manual,
9002   # "11.13: Limitations of Usual Tools".
9003   # Create a temporary directory $tmp in $TMPDIR (default /tmp).
9004   # Use mktemp if possible; otherwise fall back on mkdir,
9005   # with $RANDOM to make collisions less likely.
9006   : ${TMPDIR=/tmp}
9007   {
9008     tmp=`
9009       (umask 077 && mktemp -d "$TMPDIR/fooXXXXXX") 2>/dev/null
9010     ` &&
9011     test -n "$tmp" && test -d "$tmp"
9012   } || {
9013     tmp=$TMPDIR/foo$$-$RANDOM
9014     (umask 077 && mkdir "$tmp")
9015   } || exit $?
9016
9017   echo "{" > "$tmp/export.map"
9018   echo "  global: main;" >> "$tmp/export.map"
9019   echo "  local: *;" >> "$tmp/export.map"
9020   echo "};" >> "$tmp/export.map"
9021
9022   CFLAGS="$CFLAGS -Wl,--version-script=$tmp/export.map"
9023   cat >conftest.$ac_ext <<_ACEOF
9024 /* confdefs.h.  */
9025 _ACEOF
9026 cat confdefs.h >>conftest.$ac_ext
9027 cat >>conftest.$ac_ext <<_ACEOF
9028 /* end confdefs.h.  */
9029
9030 int
9031 main ()
9032 {
9033
9034   ;
9035   return 0;
9036 }
9037 _ACEOF
9038 rm -f conftest.$ac_objext conftest$ac_exeext
9039 if { (ac_try="$ac_link"
9040 case "(($ac_try" in
9041   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9042   *) ac_try_echo=$ac_try;;
9043 esac
9044 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9045   (eval "$ac_link") 2>conftest.er1
9046   ac_status=$?
9047   grep -v '^ *+' conftest.er1 >conftest.err
9048   rm -f conftest.er1
9049   cat conftest.err >&5
9050   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9051   (exit $ac_status); } &&
9052          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9053   { (case "(($ac_try" in
9054   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9055   *) ac_try_echo=$ac_try;;
9056 esac
9057 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9058   (eval "$ac_try") 2>&5
9059   ac_status=$?
9060   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9061   (exit $ac_status); }; } &&
9062          { ac_try='test -s conftest$ac_exeext'
9063   { (case "(($ac_try" in
9064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9065   *) ac_try_echo=$ac_try;;
9066 esac
9067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9068   (eval "$ac_try") 2>&5
9069   ac_status=$?
9070   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9071   (exit $ac_status); }; }; then
9072   llvm_cv_link_use_version_script=yes
9073 else
9074   echo "$as_me: failed program was:" >&5
9075 sed 's/^/| /' conftest.$ac_ext >&5
9076
9077         llvm_cv_link_use_version_script=no
9078 fi
9079
9080 rm -f core conftest.err conftest.$ac_objext \
9081       conftest$ac_exeext conftest.$ac_ext
9082   rm "$tmp/export.map"
9083   rmdir "$tmp"
9084   CFLAGS="$oldcflags"
9085   ac_ext=c
9086 ac_cpp='$CPP $CPPFLAGS'
9087 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
9088 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
9089 ac_compiler_gnu=$ac_cv_c_compiler_gnu
9090
9091
9092 fi
9093 { echo "$as_me:$LINENO: result: $llvm_cv_link_use_version_script" >&5
9094 echo "${ECHO_T}$llvm_cv_link_use_version_script" >&6; }
9095 if test "$llvm_cv_link_use_version_script" = yes ; then
9096   HAVE_LINK_VERSION_SCRIPT=1
9097
9098   fi
9099
9100
9101
9102
9103 { echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
9104 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6; }
9105 if test "${ac_cv_c_const+set}" = set; then
9106   echo $ECHO_N "(cached) $ECHO_C" >&6
9107 else
9108   cat >conftest.$ac_ext <<_ACEOF
9109 /* confdefs.h.  */
9110 _ACEOF
9111 cat confdefs.h >>conftest.$ac_ext
9112 cat >>conftest.$ac_ext <<_ACEOF
9113 /* end confdefs.h.  */
9114
9115 int
9116 main ()
9117 {
9118 /* FIXME: Include the comments suggested by Paul. */
9119 #ifndef __cplusplus
9120   /* Ultrix mips cc rejects this.  */
9121   typedef int charset[2];
9122   const charset x;
9123   /* SunOS 4.1.1 cc rejects this.  */
9124   char const *const *ccp;
9125   char **p;
9126   /* NEC SVR4.0.2 mips cc rejects this.  */
9127   struct point {int x, y;};
9128   static struct point const zero = {0,0};
9129   /* AIX XL C 1.02.0.0 rejects this.
9130      It does not let you subtract one const X* pointer from another in
9131      an arm of an if-expression whose if-part is not a constant
9132      expression */
9133   const char *g = "string";
9134   ccp = &g + (g ? g-g : 0);
9135   /* HPUX 7.0 cc rejects these. */
9136   ++ccp;
9137   p = (char**) ccp;
9138   ccp = (char const *const *) p;
9139   { /* SCO 3.2v4 cc rejects this.  */
9140     char *t;
9141     char const *s = 0 ? (char *) 0 : (char const *) 0;
9142
9143     *t++ = 0;
9144     if (s) return 0;
9145   }
9146   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
9147     int x[] = {25, 17};
9148     const int *foo = &x[0];
9149     ++foo;
9150   }
9151   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9152     typedef const int *iptr;
9153     iptr p = 0;
9154     ++p;
9155   }
9156   { /* AIX XL C 1.02.0.0 rejects this saying
9157        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9158     struct s { int j; const int *ap[3]; };
9159     struct s *b; b->j = 5;
9160   }
9161   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9162     const int foo = 10;
9163     if (!foo) return 0;
9164   }
9165   return !x[0] && !zero.x;
9166 #endif
9167
9168   ;
9169   return 0;
9170 }
9171 _ACEOF
9172 rm -f conftest.$ac_objext
9173 if { (ac_try="$ac_compile"
9174 case "(($ac_try" in
9175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9176   *) ac_try_echo=$ac_try;;
9177 esac
9178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9179   (eval "$ac_compile") 2>conftest.er1
9180   ac_status=$?
9181   grep -v '^ *+' conftest.er1 >conftest.err
9182   rm -f conftest.er1
9183   cat conftest.err >&5
9184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9185   (exit $ac_status); } &&
9186          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9187   { (case "(($ac_try" in
9188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9189   *) ac_try_echo=$ac_try;;
9190 esac
9191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9192   (eval "$ac_try") 2>&5
9193   ac_status=$?
9194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9195   (exit $ac_status); }; } &&
9196          { ac_try='test -s conftest.$ac_objext'
9197   { (case "(($ac_try" in
9198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9199   *) ac_try_echo=$ac_try;;
9200 esac
9201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9202   (eval "$ac_try") 2>&5
9203   ac_status=$?
9204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9205   (exit $ac_status); }; }; then
9206   ac_cv_c_const=yes
9207 else
9208   echo "$as_me: failed program was:" >&5
9209 sed 's/^/| /' conftest.$ac_ext >&5
9210
9211         ac_cv_c_const=no
9212 fi
9213
9214 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9215 fi
9216 { echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
9217 echo "${ECHO_T}$ac_cv_c_const" >&6; }
9218 if test $ac_cv_c_const = no; then
9219
9220 cat >>confdefs.h <<\_ACEOF
9221 #define const
9222 _ACEOF
9223
9224 fi
9225
9226
9227
9228
9229
9230
9231 ac_header_dirent=no
9232 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9233   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9234 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
9235 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
9236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9237   echo $ECHO_N "(cached) $ECHO_C" >&6
9238 else
9239   cat >conftest.$ac_ext <<_ACEOF
9240 /* confdefs.h.  */
9241 _ACEOF
9242 cat confdefs.h >>conftest.$ac_ext
9243 cat >>conftest.$ac_ext <<_ACEOF
9244 /* end confdefs.h.  */
9245 #include <sys/types.h>
9246 #include <$ac_hdr>
9247
9248 int
9249 main ()
9250 {
9251 if ((DIR *) 0)
9252 return 0;
9253   ;
9254   return 0;
9255 }
9256 _ACEOF
9257 rm -f conftest.$ac_objext
9258 if { (ac_try="$ac_compile"
9259 case "(($ac_try" in
9260   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9261   *) ac_try_echo=$ac_try;;
9262 esac
9263 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9264   (eval "$ac_compile") 2>conftest.er1
9265   ac_status=$?
9266   grep -v '^ *+' conftest.er1 >conftest.err
9267   rm -f conftest.er1
9268   cat conftest.err >&5
9269   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9270   (exit $ac_status); } &&
9271          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9272   { (case "(($ac_try" in
9273   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9274   *) ac_try_echo=$ac_try;;
9275 esac
9276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9277   (eval "$ac_try") 2>&5
9278   ac_status=$?
9279   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9280   (exit $ac_status); }; } &&
9281          { ac_try='test -s conftest.$ac_objext'
9282   { (case "(($ac_try" in
9283   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9284   *) ac_try_echo=$ac_try;;
9285 esac
9286 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9287   (eval "$ac_try") 2>&5
9288   ac_status=$?
9289   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9290   (exit $ac_status); }; }; then
9291   eval "$as_ac_Header=yes"
9292 else
9293   echo "$as_me: failed program was:" >&5
9294 sed 's/^/| /' conftest.$ac_ext >&5
9295
9296         eval "$as_ac_Header=no"
9297 fi
9298
9299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9300 fi
9301 ac_res=`eval echo '${'$as_ac_Header'}'`
9302                { echo "$as_me:$LINENO: result: $ac_res" >&5
9303 echo "${ECHO_T}$ac_res" >&6; }
9304 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9305   cat >>confdefs.h <<_ACEOF
9306 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9307 _ACEOF
9308
9309 ac_header_dirent=$ac_hdr; break
9310 fi
9311
9312 done
9313 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9314 if test $ac_header_dirent = dirent.h; then
9315   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9316 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9317 if test "${ac_cv_search_opendir+set}" = set; then
9318   echo $ECHO_N "(cached) $ECHO_C" >&6
9319 else
9320   ac_func_search_save_LIBS=$LIBS
9321 cat >conftest.$ac_ext <<_ACEOF
9322 /* confdefs.h.  */
9323 _ACEOF
9324 cat confdefs.h >>conftest.$ac_ext
9325 cat >>conftest.$ac_ext <<_ACEOF
9326 /* end confdefs.h.  */
9327
9328 /* Override any GCC internal prototype to avoid an error.
9329    Use char because int might match the return type of a GCC
9330    builtin and then its argument prototype would still apply.  */
9331 #ifdef __cplusplus
9332 extern "C"
9333 #endif
9334 char opendir ();
9335 int
9336 main ()
9337 {
9338 return opendir ();
9339   ;
9340   return 0;
9341 }
9342 _ACEOF
9343 for ac_lib in '' dir; do
9344   if test -z "$ac_lib"; then
9345     ac_res="none required"
9346   else
9347     ac_res=-l$ac_lib
9348     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9349   fi
9350   rm -f conftest.$ac_objext conftest$ac_exeext
9351 if { (ac_try="$ac_link"
9352 case "(($ac_try" in
9353   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9354   *) ac_try_echo=$ac_try;;
9355 esac
9356 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9357   (eval "$ac_link") 2>conftest.er1
9358   ac_status=$?
9359   grep -v '^ *+' conftest.er1 >conftest.err
9360   rm -f conftest.er1
9361   cat conftest.err >&5
9362   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9363   (exit $ac_status); } &&
9364          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9365   { (case "(($ac_try" in
9366   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9367   *) ac_try_echo=$ac_try;;
9368 esac
9369 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9370   (eval "$ac_try") 2>&5
9371   ac_status=$?
9372   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9373   (exit $ac_status); }; } &&
9374          { ac_try='test -s conftest$ac_exeext'
9375   { (case "(($ac_try" in
9376   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9377   *) ac_try_echo=$ac_try;;
9378 esac
9379 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9380   (eval "$ac_try") 2>&5
9381   ac_status=$?
9382   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9383   (exit $ac_status); }; }; then
9384   ac_cv_search_opendir=$ac_res
9385 else
9386   echo "$as_me: failed program was:" >&5
9387 sed 's/^/| /' conftest.$ac_ext >&5
9388
9389
9390 fi
9391
9392 rm -f core conftest.err conftest.$ac_objext \
9393       conftest$ac_exeext
9394   if test "${ac_cv_search_opendir+set}" = set; then
9395   break
9396 fi
9397 done
9398 if test "${ac_cv_search_opendir+set}" = set; then
9399   :
9400 else
9401   ac_cv_search_opendir=no
9402 fi
9403 rm conftest.$ac_ext
9404 LIBS=$ac_func_search_save_LIBS
9405 fi
9406 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9407 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9408 ac_res=$ac_cv_search_opendir
9409 if test "$ac_res" != no; then
9410   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9411
9412 fi
9413
9414 else
9415   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
9416 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
9417 if test "${ac_cv_search_opendir+set}" = set; then
9418   echo $ECHO_N "(cached) $ECHO_C" >&6
9419 else
9420   ac_func_search_save_LIBS=$LIBS
9421 cat >conftest.$ac_ext <<_ACEOF
9422 /* confdefs.h.  */
9423 _ACEOF
9424 cat confdefs.h >>conftest.$ac_ext
9425 cat >>conftest.$ac_ext <<_ACEOF
9426 /* end confdefs.h.  */
9427
9428 /* Override any GCC internal prototype to avoid an error.
9429    Use char because int might match the return type of a GCC
9430    builtin and then its argument prototype would still apply.  */
9431 #ifdef __cplusplus
9432 extern "C"
9433 #endif
9434 char opendir ();
9435 int
9436 main ()
9437 {
9438 return opendir ();
9439   ;
9440   return 0;
9441 }
9442 _ACEOF
9443 for ac_lib in '' x; do
9444   if test -z "$ac_lib"; then
9445     ac_res="none required"
9446   else
9447     ac_res=-l$ac_lib
9448     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
9449   fi
9450   rm -f conftest.$ac_objext conftest$ac_exeext
9451 if { (ac_try="$ac_link"
9452 case "(($ac_try" in
9453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9454   *) ac_try_echo=$ac_try;;
9455 esac
9456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9457   (eval "$ac_link") 2>conftest.er1
9458   ac_status=$?
9459   grep -v '^ *+' conftest.er1 >conftest.err
9460   rm -f conftest.er1
9461   cat conftest.err >&5
9462   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9463   (exit $ac_status); } &&
9464          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9465   { (case "(($ac_try" in
9466   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9467   *) ac_try_echo=$ac_try;;
9468 esac
9469 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9470   (eval "$ac_try") 2>&5
9471   ac_status=$?
9472   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9473   (exit $ac_status); }; } &&
9474          { ac_try='test -s conftest$ac_exeext'
9475   { (case "(($ac_try" in
9476   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9477   *) ac_try_echo=$ac_try;;
9478 esac
9479 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9480   (eval "$ac_try") 2>&5
9481   ac_status=$?
9482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9483   (exit $ac_status); }; }; then
9484   ac_cv_search_opendir=$ac_res
9485 else
9486   echo "$as_me: failed program was:" >&5
9487 sed 's/^/| /' conftest.$ac_ext >&5
9488
9489
9490 fi
9491
9492 rm -f core conftest.err conftest.$ac_objext \
9493       conftest$ac_exeext
9494   if test "${ac_cv_search_opendir+set}" = set; then
9495   break
9496 fi
9497 done
9498 if test "${ac_cv_search_opendir+set}" = set; then
9499   :
9500 else
9501   ac_cv_search_opendir=no
9502 fi
9503 rm conftest.$ac_ext
9504 LIBS=$ac_func_search_save_LIBS
9505 fi
9506 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
9507 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
9508 ac_res=$ac_cv_search_opendir
9509 if test "$ac_res" != no; then
9510   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9511
9512 fi
9513
9514 fi
9515
9516
9517 for ac_header in dlfcn.h
9518 do
9519 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
9520 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9521   { echo "$as_me:$LINENO: checking for $ac_header" >&5
9522 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9523 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9524   echo $ECHO_N "(cached) $ECHO_C" >&6
9525 fi
9526 ac_res=`eval echo '${'$as_ac_Header'}'`
9527                { echo "$as_me:$LINENO: result: $ac_res" >&5
9528 echo "${ECHO_T}$ac_res" >&6; }
9529 else
9530   # Is the header compilable?
9531 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
9532 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
9533 cat >conftest.$ac_ext <<_ACEOF
9534 /* confdefs.h.  */
9535 _ACEOF
9536 cat confdefs.h >>conftest.$ac_ext
9537 cat >>conftest.$ac_ext <<_ACEOF
9538 /* end confdefs.h.  */
9539 $ac_includes_default
9540 #include <$ac_header>
9541 _ACEOF
9542 rm -f conftest.$ac_objext
9543 if { (ac_try="$ac_compile"
9544 case "(($ac_try" in
9545   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9546   *) ac_try_echo=$ac_try;;
9547 esac
9548 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9549   (eval "$ac_compile") 2>conftest.er1
9550   ac_status=$?
9551   grep -v '^ *+' conftest.er1 >conftest.err
9552   rm -f conftest.er1
9553   cat conftest.err >&5
9554   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9555   (exit $ac_status); } &&
9556          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
9557   { (case "(($ac_try" in
9558   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9559   *) ac_try_echo=$ac_try;;
9560 esac
9561 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9562   (eval "$ac_try") 2>&5
9563   ac_status=$?
9564   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9565   (exit $ac_status); }; } &&
9566          { ac_try='test -s conftest.$ac_objext'
9567   { (case "(($ac_try" in
9568   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9569   *) ac_try_echo=$ac_try;;
9570 esac
9571 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9572   (eval "$ac_try") 2>&5
9573   ac_status=$?
9574   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9575   (exit $ac_status); }; }; then
9576   ac_header_compiler=yes
9577 else
9578   echo "$as_me: failed program was:" >&5
9579 sed 's/^/| /' conftest.$ac_ext >&5
9580
9581         ac_header_compiler=no
9582 fi
9583
9584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9585 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
9586 echo "${ECHO_T}$ac_header_compiler" >&6; }
9587
9588 # Is the header present?
9589 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
9590 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
9591 cat >conftest.$ac_ext <<_ACEOF
9592 /* confdefs.h.  */
9593 _ACEOF
9594 cat confdefs.h >>conftest.$ac_ext
9595 cat >>conftest.$ac_ext <<_ACEOF
9596 /* end confdefs.h.  */
9597 #include <$ac_header>
9598 _ACEOF
9599 if { (ac_try="$ac_cpp conftest.$ac_ext"
9600 case "(($ac_try" in
9601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
9602   *) ac_try_echo=$ac_try;;
9603 esac
9604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
9605   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
9606   ac_status=$?
9607   grep -v '^ *+' conftest.er1 >conftest.err
9608   rm -f conftest.er1
9609   cat conftest.err >&5
9610   echo "$as_me:$LINENO: \$? = $ac_status" >&5
9611   (exit $ac_status); } >/dev/null; then
9612   if test -s conftest.err; then
9613     ac_cpp_err=$ac_c_preproc_warn_flag
9614     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
9615   else
9616     ac_cpp_err=
9617   fi
9618 else
9619   ac_cpp_err=yes
9620 fi
9621 if test -z "$ac_cpp_err"; then
9622   ac_header_preproc=yes
9623 else
9624   echo "$as_me: failed program was:" >&5
9625 sed 's/^/| /' conftest.$ac_ext >&5
9626
9627   ac_header_preproc=no
9628 fi
9629
9630 rm -f conftest.err conftest.$ac_ext
9631 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
9632 echo "${ECHO_T}$ac_header_preproc" >&6; }
9633
9634 # So?  What about this header?
9635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
9636   yes:no: )
9637     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
9638 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
9639     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
9640 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
9641     ac_header_preproc=yes
9642     ;;
9643   no:yes:* )
9644     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
9645 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
9646     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
9647 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
9648     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
9649 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
9650     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
9651 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
9652     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
9653 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
9654     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
9655 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
9656     ( cat <<\_ASBOX
9657 ## ----------------------------------- ##
9658 ## Report this to llvmbugs@cs.uiuc.edu ##
9659 ## ----------------------------------- ##
9660 _ASBOX
9661      ) | sed "s/^/$as_me: WARNING:     /" >&2
9662     ;;
9663 esac
9664 { echo "$as_me:$LINENO: checking for $ac_header" >&5
9665 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
9666 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
9667   echo $ECHO_N "(cached) $ECHO_C" >&6
9668 else
9669   eval "$as_ac_Header=\$ac_header_preproc"
9670 fi
9671 ac_res=`eval echo '${'$as_ac_Header'}'`
9672                { echo "$as_me:$LINENO: result: $ac_res" >&5
9673 echo "${ECHO_T}$ac_res" >&6; }
9674
9675 fi
9676 if test `eval echo '${'$as_ac_Header'}'` = yes; then
9677   cat >>confdefs.h <<_ACEOF
9678 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
9679 _ACEOF
9680
9681 fi
9682
9683 done
9684
9685 # Check whether --enable-ltdl-install was given.
9686 if test "${enable_ltdl_install+set}" = set; then
9687   enableval=$enable_ltdl_install;
9688 fi
9689
9690
9691
9692
9693 if test x"${enable_ltdl_install-no}" != xno; then
9694   INSTALL_LTDL_TRUE=
9695   INSTALL_LTDL_FALSE='#'
9696 else
9697   INSTALL_LTDL_TRUE='#'
9698   INSTALL_LTDL_FALSE=
9699 fi
9700
9701
9702
9703 if test x"${enable_ltdl_convenience-no}" != xno; then
9704   CONVENIENCE_LTDL_TRUE=
9705   CONVENIENCE_LTDL_FALSE='#'
9706 else
9707   CONVENIENCE_LTDL_TRUE='#'
9708   CONVENIENCE_LTDL_FALSE=
9709 fi
9710
9711
9712 { echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
9713 echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6; }
9714 library_names_spec=
9715 libname_spec='lib$name'
9716 soname_spec=
9717 shrext_cmds=".so"
9718 postinstall_cmds=
9719 postuninstall_cmds=
9720 finish_cmds=
9721 finish_eval=
9722 shlibpath_var=
9723 shlibpath_overrides_runpath=unknown
9724 version_type=none
9725 dynamic_linker="$host_os ld.so"
9726 sys_lib_dlsearch_path_spec="/lib /usr/lib"
9727 if test "$GCC" = yes; then
9728   sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9729   if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
9730     # if the path contains ";" then we assume it to be the separator
9731     # otherwise default to the standard path separator (i.e. ":") - it is
9732     # assumed that no part of a normal pathname contains ";" but that should
9733     # okay in the real world where ";" in dirpaths is itself problematic.
9734     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9735   else
9736     sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9737   fi
9738 else
9739   sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
9740 fi
9741 need_lib_prefix=unknown
9742 hardcode_into_libs=no
9743
9744 # when you set need_version to no, make sure it does not cause -set_version
9745 # flags to be left without arguments
9746 need_version=unknown
9747
9748 case $host_os in
9749 aix3*)
9750   version_type=linux
9751   library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
9752   shlibpath_var=LIBPATH
9753
9754   # AIX 3 has no versioning support, so we append a major version to the name.
9755   soname_spec='${libname}${release}${shared_ext}$major'
9756   ;;
9757
9758 aix4* | aix5*)
9759   version_type=linux
9760   need_lib_prefix=no
9761   need_version=no
9762   hardcode_into_libs=yes
9763   if test "$host_cpu" = ia64; then
9764     # AIX 5 supports IA64
9765     library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
9766     shlibpath_var=LD_LIBRARY_PATH
9767   else
9768     # With GCC up to 2.95.x, collect2 would create an import file
9769     # for dependence libraries.  The import file would start with
9770     # the line `#! .'.  This would cause the generated library to
9771     # depend on `.', always an invalid library.  This was fixed in
9772     # development snapshots of GCC prior to 3.0.
9773     case $host_os in
9774       aix4 | aix4.[01] | aix4.[01].*)
9775       if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
9776            echo ' yes '
9777            echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
9778         :
9779       else
9780         can_build_shared=no
9781       fi
9782       ;;
9783     esac
9784     # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
9785     # soname into executable. Probably we can add versioning support to
9786     # collect2, so additional links can be useful in future.
9787     if test "$aix_use_runtimelinking" = yes; then
9788       # If using run time linking (on AIX 4.2 or later) use lib<name>.so
9789       # instead of lib<name>.a to let people know that these are not
9790       # typical AIX shared libraries.
9791       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9792     else
9793       # We preserve .a as extension for shared libraries through AIX4.2
9794       # and later when we are not doing run time linking.
9795       library_names_spec='${libname}${release}.a $libname.a'
9796       soname_spec='${libname}${release}${shared_ext}$major'
9797     fi
9798     shlibpath_var=LIBPATH
9799   fi
9800   ;;
9801
9802 amigaos*)
9803   library_names_spec='$libname.ixlibrary $libname.a'
9804   # Create ${libname}_ixlibrary.a entries in /sys/libs.
9805   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'
9806   ;;
9807
9808 beos*)
9809   library_names_spec='${libname}${shared_ext}'
9810   dynamic_linker="$host_os ld.so"
9811   shlibpath_var=LIBRARY_PATH
9812   ;;
9813
9814 bsdi[45]*)
9815   version_type=linux
9816   need_version=no
9817   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9818   soname_spec='${libname}${release}${shared_ext}$major'
9819   finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
9820   shlibpath_var=LD_LIBRARY_PATH
9821   sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
9822   sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
9823   # the default ld.so.conf also contains /usr/contrib/lib and
9824   # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
9825   # libtool to hard-code these into programs
9826   ;;
9827
9828 cygwin* | mingw* | pw32*)
9829   version_type=windows
9830   shrext_cmds=".dll"
9831   need_version=no
9832   need_lib_prefix=no
9833
9834   case $GCC,$host_os in
9835   yes,cygwin* | yes,mingw* | yes,pw32*)
9836     library_names_spec='$libname.dll.a'
9837     # DLL is installed to $(libdir)/../bin by postinstall_cmds
9838     postinstall_cmds='base_file=`basename \${file}`~
9839       dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
9840       dldir=$destdir/`dirname \$dlpath`~
9841       test -d \$dldir || mkdir -p \$dldir~
9842       $install_prog $dir/$dlname \$dldir/$dlname~
9843       chmod a+x \$dldir/$dlname'
9844     postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
9845       dlpath=$dir/\$dldll~
9846        $rm \$dlpath'
9847     shlibpath_overrides_runpath=yes
9848
9849     case $host_os in
9850     cygwin*)
9851       # Cygwin DLLs use 'cyg' prefix rather than 'lib'
9852       soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9853       sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
9854       ;;
9855     mingw*)
9856       # MinGW DLLs use traditional 'lib' prefix
9857       soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9858       sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
9859       if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
9860         # It is most probably a Windows format PATH printed by
9861         # mingw gcc, but we are running on Cygwin. Gcc prints its search
9862         # path with ; separators, and with drive letters. We can handle the
9863         # drive letters (cygwin fileutils understands them), so leave them,
9864         # especially as we might pass files found there to a mingw objdump,
9865         # which wouldn't understand a cygwinified path. Ahh.
9866         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
9867       else
9868         sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED  -e "s/$PATH_SEPARATOR/ /g"`
9869       fi
9870       ;;
9871     pw32*)
9872       # pw32 DLLs use 'pw' prefix rather than 'lib'
9873       library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
9874       ;;
9875     esac
9876     ;;
9877
9878   *)
9879     library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
9880     ;;
9881   esac
9882   dynamic_linker='Win32 ld.exe'
9883   # FIXME: first we should search . and the directory the executable is in
9884   shlibpath_var=PATH
9885   ;;
9886
9887 darwin* | rhapsody*)
9888   dynamic_linker="$host_os dyld"
9889   version_type=darwin
9890   need_lib_prefix=no
9891   need_version=no
9892   library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
9893   soname_spec='${libname}${release}${major}$shared_ext'
9894   shlibpath_overrides_runpath=yes
9895   shlibpath_var=DYLD_LIBRARY_PATH
9896   shrext_cmds='.dylib'
9897   # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
9898   if test "$GCC" = yes; then
9899     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"`
9900   else
9901     sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
9902   fi
9903   sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
9904   ;;
9905
9906 dgux*)
9907   version_type=linux
9908   need_lib_prefix=no
9909   need_version=no
9910   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
9911   soname_spec='${libname}${release}${shared_ext}$major'
9912   shlibpath_var=LD_LIBRARY_PATH
9913   ;;
9914
9915 freebsd1*)
9916   dynamic_linker=no
9917   ;;
9918
9919 kfreebsd*-gnu)
9920   version_type=linux
9921   need_lib_prefix=no
9922   need_version=no
9923   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
9924   soname_spec='${libname}${release}${shared_ext}$major'
9925   shlibpath_var=LD_LIBRARY_PATH
9926   shlibpath_overrides_runpath=no
9927   hardcode_into_libs=yes
9928   dynamic_linker='GNU ld.so'
9929   ;;
9930
9931 freebsd* | dragonfly*)
9932   # DragonFly does not have aout.  When/if they implement a new
9933   # versioning mechanism, adjust this.
9934   if test -x /usr/bin/objformat; then
9935     objformat=`/usr/bin/objformat`
9936   else
9937     case $host_os in
9938     freebsd[123]*) objformat=aout ;;
9939     *) objformat=elf ;;
9940     esac
9941   fi
9942   version_type=freebsd-$objformat
9943   case $version_type in
9944     freebsd-elf*)
9945       library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
9946       need_version=no
9947       need_lib_prefix=no
9948       ;;
9949     freebsd-*)
9950       library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
9951       need_version=yes
9952       ;;
9953   esac
9954   shlibpath_var=LD_LIBRARY_PATH
9955   case $host_os in
9956   freebsd2*)
9957     shlibpath_overrides_runpath=yes
9958     ;;
9959   freebsd3.[01]* | freebsdelf3.[01]*)
9960     shlibpath_overrides_runpath=yes
9961     hardcode_into_libs=yes
9962     ;;
9963   freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
9964   freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
9965     shlibpath_overrides_runpath=no
9966     hardcode_into_libs=yes
9967     ;;
9968   freebsd*) # from 4.6 on
9969     shlibpath_overrides_runpath=yes
9970     hardcode_into_libs=yes
9971     ;;
9972   esac
9973   ;;
9974
9975 gnu*)
9976   version_type=linux
9977   need_lib_prefix=no
9978   need_version=no
9979   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
9980   soname_spec='${libname}${release}${shared_ext}$major'
9981   shlibpath_var=LD_LIBRARY_PATH
9982   hardcode_into_libs=yes
9983   ;;
9984
9985 hpux9* | hpux10* | hpux11*)
9986   # Give a soname corresponding to the major version so that dld.sl refuses to
9987   # link against other versions.
9988   version_type=sunos
9989   need_lib_prefix=no
9990   need_version=no
9991   case $host_cpu in
9992   ia64*)
9993     shrext_cmds='.so'
9994     hardcode_into_libs=yes
9995     dynamic_linker="$host_os dld.so"
9996     shlibpath_var=LD_LIBRARY_PATH
9997     shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
9998     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
9999     soname_spec='${libname}${release}${shared_ext}$major'
10000     if test "X$HPUX_IA64_MODE" = X32; then
10001       sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10002     else
10003       sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10004     fi
10005     sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10006     ;;
10007    hppa*64*)
10008      shrext_cmds='.sl'
10009      hardcode_into_libs=yes
10010      dynamic_linker="$host_os dld.sl"
10011      shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10012      shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10013      library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10014      soname_spec='${libname}${release}${shared_ext}$major'
10015      sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10016      sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10017      ;;
10018    *)
10019     shrext_cmds='.sl'
10020     dynamic_linker="$host_os dld.sl"
10021     shlibpath_var=SHLIB_PATH
10022     shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10023     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10024     soname_spec='${libname}${release}${shared_ext}$major'
10025     ;;
10026   esac
10027   # HP-UX runs *really* slowly unless shared libraries are mode 555.
10028   postinstall_cmds='chmod 555 $lib'
10029   ;;
10030
10031 interix3*)
10032   version_type=linux
10033   need_lib_prefix=no
10034   need_version=no
10035   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10036   soname_spec='${libname}${release}${shared_ext}$major'
10037   dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10038   shlibpath_var=LD_LIBRARY_PATH
10039   shlibpath_overrides_runpath=no
10040   hardcode_into_libs=yes
10041   ;;
10042
10043 irix5* | irix6* | nonstopux*)
10044   case $host_os in
10045     nonstopux*) version_type=nonstopux ;;
10046     *)
10047         if test "$lt_cv_prog_gnu_ld" = yes; then
10048                 version_type=linux
10049         else
10050                 version_type=irix
10051         fi ;;
10052   esac
10053   need_lib_prefix=no
10054   need_version=no
10055   soname_spec='${libname}${release}${shared_ext}$major'
10056   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10057   case $host_os in
10058   irix5* | nonstopux*)
10059     libsuff= shlibsuff=
10060     ;;
10061   *)
10062     case $LD in # libtool.m4 will add one of these switches to LD
10063     *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10064       libsuff= shlibsuff= libmagic=32-bit;;
10065     *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10066       libsuff=32 shlibsuff=N32 libmagic=N32;;
10067     *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10068       libsuff=64 shlibsuff=64 libmagic=64-bit;;
10069     *) libsuff= shlibsuff= libmagic=never-match;;
10070     esac
10071     ;;
10072   esac
10073   shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10074   shlibpath_overrides_runpath=no
10075   sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10076   sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10077   hardcode_into_libs=yes
10078   ;;
10079
10080 # No shared lib support for Linux oldld, aout, or coff.
10081 linux*oldld* | linux*aout* | linux*coff*)
10082   dynamic_linker=no
10083   ;;
10084
10085 # This must be Linux ELF.
10086 linux*)
10087   version_type=linux
10088   need_lib_prefix=no
10089   need_version=no
10090   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10091   soname_spec='${libname}${release}${shared_ext}$major'
10092   finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10093   shlibpath_var=LD_LIBRARY_PATH
10094   shlibpath_overrides_runpath=no
10095   # This implies no fast_install, which is unacceptable.
10096   # Some rework will be needed to allow for fast_install
10097   # before this can be enabled.
10098   hardcode_into_libs=yes
10099
10100   # Append ld.so.conf contents to the search path
10101   if test -f /etc/ld.so.conf; then
10102     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' ' '`
10103     sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10104   fi
10105
10106   # We used to test for /lib/ld.so.1 and disable shared libraries on
10107   # powerpc, because MkLinux only supported shared libraries with the
10108   # GNU dynamic linker.  Since this was broken with cross compilers,
10109   # most powerpc-linux boxes support dynamic linking these days and
10110   # people can always --disable-shared, the test was removed, and we
10111   # assume the GNU/Linux dynamic linker is in use.
10112   dynamic_linker='GNU/Linux ld.so'
10113   ;;
10114
10115 knetbsd*-gnu)
10116   version_type=linux
10117   need_lib_prefix=no
10118   need_version=no
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   shlibpath_var=LD_LIBRARY_PATH
10122   shlibpath_overrides_runpath=no
10123   hardcode_into_libs=yes
10124   dynamic_linker='GNU ld.so'
10125   ;;
10126
10127 netbsd*)
10128   version_type=sunos
10129   need_lib_prefix=no
10130   need_version=no
10131   if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
10132     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10133     finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10134     dynamic_linker='NetBSD (a.out) ld.so'
10135   else
10136     library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10137     soname_spec='${libname}${release}${shared_ext}$major'
10138     dynamic_linker='NetBSD ld.elf_so'
10139   fi
10140   shlibpath_var=LD_LIBRARY_PATH
10141   shlibpath_overrides_runpath=yes
10142   hardcode_into_libs=yes
10143   ;;
10144
10145 newsos6)
10146   version_type=linux
10147   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10148   shlibpath_var=LD_LIBRARY_PATH
10149   shlibpath_overrides_runpath=yes
10150   ;;
10151
10152 nto-qnx*)
10153   version_type=linux
10154   need_lib_prefix=no
10155   need_version=no
10156   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10157   soname_spec='${libname}${release}${shared_ext}$major'
10158   shlibpath_var=LD_LIBRARY_PATH
10159   shlibpath_overrides_runpath=yes
10160   ;;
10161
10162 openbsd*)
10163   version_type=sunos
10164   sys_lib_dlsearch_path_spec="/usr/lib"
10165   need_lib_prefix=no
10166   # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
10167   case $host_os in
10168     openbsd3.3 | openbsd3.3.*) need_version=yes ;;
10169     *)                         need_version=no  ;;
10170   esac
10171   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10172   finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10173   shlibpath_var=LD_LIBRARY_PATH
10174   if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
10175     case $host_os in
10176       openbsd2.[89] | openbsd2.[89].*)
10177         shlibpath_overrides_runpath=no
10178         ;;
10179       *)
10180         shlibpath_overrides_runpath=yes
10181         ;;
10182       esac
10183   else
10184     shlibpath_overrides_runpath=yes
10185   fi
10186   ;;
10187
10188 os2*)
10189   libname_spec='$name'
10190   shrext_cmds=".dll"
10191   need_lib_prefix=no
10192   library_names_spec='$libname${shared_ext} $libname.a'
10193   dynamic_linker='OS/2 ld.exe'
10194   shlibpath_var=LIBPATH
10195   ;;
10196
10197 osf3* | osf4* | osf5*)
10198   version_type=osf
10199   need_lib_prefix=no
10200   need_version=no
10201   soname_spec='${libname}${release}${shared_ext}$major'
10202   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10203   shlibpath_var=LD_LIBRARY_PATH
10204   sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
10205   sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
10206   ;;
10207
10208 solaris*)
10209   version_type=linux
10210   need_lib_prefix=no
10211   need_version=no
10212   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10213   soname_spec='${libname}${release}${shared_ext}$major'
10214   shlibpath_var=LD_LIBRARY_PATH
10215   shlibpath_overrides_runpath=yes
10216   hardcode_into_libs=yes
10217   # ldd complains unless libraries are executable
10218   postinstall_cmds='chmod +x $lib'
10219   ;;
10220
10221 sunos4*)
10222   version_type=sunos
10223   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10224   finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
10225   shlibpath_var=LD_LIBRARY_PATH
10226   shlibpath_overrides_runpath=yes
10227   if test "$with_gnu_ld" = yes; then
10228     need_lib_prefix=no
10229   fi
10230   need_version=yes
10231   ;;
10232
10233 sysv4 | sysv4.3*)
10234   version_type=linux
10235   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10236   soname_spec='${libname}${release}${shared_ext}$major'
10237   shlibpath_var=LD_LIBRARY_PATH
10238   case $host_vendor in
10239     sni)
10240       shlibpath_overrides_runpath=no
10241       need_lib_prefix=no
10242       export_dynamic_flag_spec='${wl}-Blargedynsym'
10243       runpath_var=LD_RUN_PATH
10244       ;;
10245     siemens)
10246       need_lib_prefix=no
10247       ;;
10248     motorola)
10249       need_lib_prefix=no
10250       need_version=no
10251       shlibpath_overrides_runpath=no
10252       sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
10253       ;;
10254   esac
10255   ;;
10256
10257 sysv4*MP*)
10258   if test -d /usr/nec ;then
10259     version_type=linux
10260     library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
10261     soname_spec='$libname${shared_ext}.$major'
10262     shlibpath_var=LD_LIBRARY_PATH
10263   fi
10264   ;;
10265
10266 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
10267   version_type=freebsd-elf
10268   need_lib_prefix=no
10269   need_version=no
10270   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10271   soname_spec='${libname}${release}${shared_ext}$major'
10272   shlibpath_var=LD_LIBRARY_PATH
10273   hardcode_into_libs=yes
10274   if test "$with_gnu_ld" = yes; then
10275     sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
10276     shlibpath_overrides_runpath=no
10277   else
10278     sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
10279     shlibpath_overrides_runpath=yes
10280     case $host_os in
10281       sco3.2v5*)
10282         sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
10283         ;;
10284     esac
10285   fi
10286   sys_lib_dlsearch_path_spec='/usr/lib'
10287   ;;
10288
10289 uts4*)
10290   version_type=linux
10291   library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10292   soname_spec='${libname}${release}${shared_ext}$major'
10293   shlibpath_var=LD_LIBRARY_PATH
10294   ;;
10295
10296 *)
10297   dynamic_linker=no
10298   ;;
10299 esac
10300 { echo "$as_me:$LINENO: result: $dynamic_linker" >&5
10301 echo "${ECHO_T}$dynamic_linker" >&6; }
10302 test "$dynamic_linker" = no && can_build_shared=no
10303
10304 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
10305 if test "$GCC" = yes; then
10306   variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
10307 fi
10308
10309
10310 { echo "$as_me:$LINENO: checking which extension is used for loadable modules" >&5
10311 echo $ECHO_N "checking which extension is used for loadable modules... $ECHO_C" >&6; }
10312 if test "${libltdl_cv_shlibext+set}" = set; then
10313   echo $ECHO_N "(cached) $ECHO_C" >&6
10314 else
10315
10316 module=yes
10317 eval libltdl_cv_shlibext=$shrext_cmds
10318
10319 fi
10320 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibext" >&5
10321 echo "${ECHO_T}$libltdl_cv_shlibext" >&6; }
10322 if test -n "$libltdl_cv_shlibext"; then
10323
10324 cat >>confdefs.h <<_ACEOF
10325 #define LTDL_SHLIB_EXT "$libltdl_cv_shlibext"
10326 _ACEOF
10327
10328 fi
10329
10330
10331 { echo "$as_me:$LINENO: checking which variable specifies run-time library path" >&5
10332 echo $ECHO_N "checking which variable specifies run-time library path... $ECHO_C" >&6; }
10333 if test "${libltdl_cv_shlibpath_var+set}" = set; then
10334   echo $ECHO_N "(cached) $ECHO_C" >&6
10335 else
10336   libltdl_cv_shlibpath_var="$shlibpath_var"
10337 fi
10338 { echo "$as_me:$LINENO: result: $libltdl_cv_shlibpath_var" >&5
10339 echo "${ECHO_T}$libltdl_cv_shlibpath_var" >&6; }
10340 if test -n "$libltdl_cv_shlibpath_var"; then
10341
10342 cat >>confdefs.h <<_ACEOF
10343 #define LTDL_SHLIBPATH_VAR "$libltdl_cv_shlibpath_var"
10344 _ACEOF
10345
10346 fi
10347
10348
10349 { echo "$as_me:$LINENO: checking for the default library search path" >&5
10350 echo $ECHO_N "checking for the default library search path... $ECHO_C" >&6; }
10351 if test "${libltdl_cv_sys_search_path+set}" = set; then
10352   echo $ECHO_N "(cached) $ECHO_C" >&6
10353 else
10354   libltdl_cv_sys_search_path="$sys_lib_dlsearch_path_spec"
10355 fi
10356 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_search_path" >&5
10357 echo "${ECHO_T}$libltdl_cv_sys_search_path" >&6; }
10358 if test -n "$libltdl_cv_sys_search_path"; then
10359   sys_search_path=
10360   for dir in $libltdl_cv_sys_search_path; do
10361     if test -z "$sys_search_path"; then
10362       sys_search_path="$dir"
10363     else
10364       sys_search_path="$sys_search_path$PATH_SEPARATOR$dir"
10365     fi
10366   done
10367
10368 cat >>confdefs.h <<_ACEOF
10369 #define LTDL_SYSSEARCHPATH "$sys_search_path"
10370 _ACEOF
10371
10372 fi
10373
10374 { echo "$as_me:$LINENO: checking for objdir" >&5
10375 echo $ECHO_N "checking for objdir... $ECHO_C" >&6; }
10376 if test "${libltdl_cv_objdir+set}" = set; then
10377   echo $ECHO_N "(cached) $ECHO_C" >&6
10378 else
10379   libltdl_cv_objdir="$objdir"
10380   if test -n "$objdir"; then
10381     :
10382   else
10383     rm -f .libs 2>/dev/null
10384     mkdir .libs 2>/dev/null
10385     if test -d .libs; then
10386       libltdl_cv_objdir=.libs
10387     else
10388       # MS-DOS does not allow filenames that begin with a dot.
10389       libltdl_cv_objdir=_libs
10390     fi
10391   rmdir .libs 2>/dev/null
10392   fi
10393
10394 fi
10395 { echo "$as_me:$LINENO: result: $libltdl_cv_objdir" >&5
10396 echo "${ECHO_T}$libltdl_cv_objdir" >&6; }
10397
10398 cat >>confdefs.h <<_ACEOF
10399 #define LTDL_OBJDIR "$libltdl_cv_objdir/"
10400 _ACEOF
10401
10402
10403
10404
10405
10406
10407 # Check for command to grab the raw symbol name followed by C symbol from nm.
10408 { echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
10409 echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6; }
10410 if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
10411   echo $ECHO_N "(cached) $ECHO_C" >&6
10412 else
10413
10414 # These are sane defaults that work on at least a few old systems.
10415 # [They come from Ultrix.  What could be older than Ultrix?!! ;)]
10416
10417 # Character class describing NM global symbol codes.
10418 symcode='[BCDEGRST]'
10419
10420 # Regexp to match symbols that can be accessed directly from C.
10421 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
10422
10423 # Transform an extracted symbol line into a proper C declaration
10424 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
10425
10426 # Transform an extracted symbol line into symbol name and symbol address
10427 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'"
10428
10429 # Define system-specific variables.
10430 case $host_os in
10431 aix*)
10432   symcode='[BCDT]'
10433   ;;
10434 cygwin* | mingw* | pw32*)
10435   symcode='[ABCDGISTW]'
10436   ;;
10437 hpux*) # Its linker distinguishes data from code symbols
10438   if test "$host_cpu" = ia64; then
10439     symcode='[ABCDEGRST]'
10440   fi
10441   lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10442   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'"
10443   ;;
10444 linux*)
10445   if test "$host_cpu" = ia64; then
10446     symcode='[ABCDGIRSTW]'
10447     lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
10448     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'"
10449   fi
10450   ;;
10451 irix* | nonstopux*)
10452   symcode='[BCDEGRST]'
10453   ;;
10454 osf*)
10455   symcode='[BCDEGQRST]'
10456   ;;
10457 solaris*)
10458   symcode='[BDRT]'
10459   ;;
10460 sco3.2v5*)
10461   symcode='[DT]'
10462   ;;
10463 sysv4.2uw2*)
10464   symcode='[DT]'
10465   ;;
10466 sysv5* | sco5v6* | unixware* | OpenUNIX*)
10467   symcode='[ABDT]'
10468   ;;
10469 sysv4)
10470   symcode='[DFNSTU]'
10471   ;;
10472 esac
10473
10474 # Handle CRLF in mingw tool chain
10475 opt_cr=
10476 case $build_os in
10477 mingw*)
10478   opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
10479   ;;
10480 esac
10481
10482 # If we're using GNU nm, then use its standard symbol codes.
10483 case `$NM -V 2>&1` in
10484 *GNU* | *'with BFD'*)
10485   symcode='[ABCDGIRSTW]' ;;
10486 esac
10487
10488 # Try without a prefix undercore, then with it.
10489 for ac_symprfx in "" "_"; do
10490
10491   # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
10492   symxfrm="\\1 $ac_symprfx\\2 \\2"
10493
10494   # Write the raw and C identifiers.
10495   lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[       ]\($symcode$symcode*\)[         ][      ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
10496
10497   # Check to see that the pipe works correctly.
10498   pipe_works=no
10499
10500   rm -f conftest*
10501   cat > conftest.$ac_ext <<EOF
10502 #ifdef __cplusplus
10503 extern "C" {
10504 #endif
10505 char nm_test_var;
10506 void nm_test_func(){}
10507 #ifdef __cplusplus
10508 }
10509 #endif
10510 int main(){nm_test_var='a';nm_test_func();return(0);}
10511 EOF
10512
10513   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
10514   (eval $ac_compile) 2>&5
10515   ac_status=$?
10516   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10517   (exit $ac_status); }; then
10518     # Now try to grab the symbols.
10519     nlist=conftest.nm
10520     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
10521   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
10522   ac_status=$?
10523   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10524   (exit $ac_status); } && test -s "$nlist"; then
10525       # Try sorting and uniquifying the output.
10526       if sort "$nlist" | uniq > "$nlist"T; then
10527         mv -f "$nlist"T "$nlist"
10528       else
10529         rm -f "$nlist"T
10530       fi
10531
10532       # Make sure that we snagged all the symbols we need.
10533       if grep ' nm_test_var$' "$nlist" >/dev/null; then
10534         if grep ' nm_test_func$' "$nlist" >/dev/null; then
10535           cat <<EOF > conftest.$ac_ext
10536 #ifdef __cplusplus
10537 extern "C" {
10538 #endif
10539
10540 EOF
10541           # Now generate the symbol file.
10542           eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
10543
10544           cat <<EOF >> conftest.$ac_ext
10545 #if defined (__STDC__) && __STDC__
10546 # define lt_ptr_t void *
10547 #else
10548 # define lt_ptr_t char *
10549 # define const
10550 #endif
10551
10552 /* The mapping between symbol names and symbols. */
10553 const struct {
10554   const char *name;
10555   lt_ptr_t address;
10556 }
10557 lt_preloaded_symbols[] =
10558 {
10559 EOF
10560           $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/  {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
10561           cat <<\EOF >> conftest.$ac_ext
10562   {0, (lt_ptr_t) 0}
10563 };
10564
10565 #ifdef __cplusplus
10566 }
10567 #endif
10568 EOF
10569           # Now try linking the two files.
10570           mv conftest.$ac_objext conftstm.$ac_objext
10571           lt_save_LIBS="$LIBS"
10572           lt_save_CFLAGS="$CFLAGS"
10573           LIBS="conftstm.$ac_objext"
10574           CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
10575           if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
10576   (eval $ac_link) 2>&5
10577   ac_status=$?
10578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10579   (exit $ac_status); } && test -s conftest${ac_exeext}; then
10580             pipe_works=yes
10581           fi
10582           LIBS="$lt_save_LIBS"
10583           CFLAGS="$lt_save_CFLAGS"
10584         else
10585           echo "cannot find nm_test_func in $nlist" >&5
10586         fi
10587       else
10588         echo "cannot find nm_test_var in $nlist" >&5
10589       fi
10590     else
10591       echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
10592     fi
10593   else
10594     echo "$progname: failed program was:" >&5
10595     cat conftest.$ac_ext >&5
10596   fi
10597   rm -f conftest* conftst*
10598
10599   # Do not use the global_symbol_pipe unless it works.
10600   if test "$pipe_works" = yes; then
10601     break
10602   else
10603     lt_cv_sys_global_symbol_pipe=
10604   fi
10605 done
10606
10607 fi
10608
10609 if test -z "$lt_cv_sys_global_symbol_pipe"; then
10610   lt_cv_sys_global_symbol_to_cdecl=
10611 fi
10612 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
10613   { echo "$as_me:$LINENO: result: failed" >&5
10614 echo "${ECHO_T}failed" >&6; }
10615 else
10616   { echo "$as_me:$LINENO: result: ok" >&5
10617 echo "${ECHO_T}ok" >&6; }
10618 fi
10619
10620
10621 { echo "$as_me:$LINENO: checking whether libtool supports -dlopen/-dlpreopen" >&5
10622 echo $ECHO_N "checking whether libtool supports -dlopen/-dlpreopen... $ECHO_C" >&6; }
10623 if test "${libltdl_cv_preloaded_symbols+set}" = set; then
10624   echo $ECHO_N "(cached) $ECHO_C" >&6
10625 else
10626   if test -n "$lt_cv_sys_global_symbol_pipe"; then
10627     libltdl_cv_preloaded_symbols=yes
10628   else
10629     libltdl_cv_preloaded_symbols=no
10630   fi
10631
10632 fi
10633 { echo "$as_me:$LINENO: result: $libltdl_cv_preloaded_symbols" >&5
10634 echo "${ECHO_T}$libltdl_cv_preloaded_symbols" >&6; }
10635 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
10636
10637 cat >>confdefs.h <<\_ACEOF
10638 #define HAVE_PRELOADED_SYMBOLS 1
10639 _ACEOF
10640
10641 fi
10642
10643 LIBADD_DL=
10644
10645 ac_ext=c
10646 ac_cpp='$CPP $CPPFLAGS'
10647 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
10648 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
10649 ac_compiler_gnu=$ac_cv_c_compiler_gnu
10650
10651
10652 { echo "$as_me:$LINENO: checking for shl_load" >&5
10653 echo $ECHO_N "checking for shl_load... $ECHO_C" >&6; }
10654 if test "${ac_cv_func_shl_load+set}" = set; then
10655   echo $ECHO_N "(cached) $ECHO_C" >&6
10656 else
10657   cat >conftest.$ac_ext <<_ACEOF
10658 /* confdefs.h.  */
10659 _ACEOF
10660 cat confdefs.h >>conftest.$ac_ext
10661 cat >>conftest.$ac_ext <<_ACEOF
10662 /* end confdefs.h.  */
10663 /* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
10664    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
10665 #define shl_load innocuous_shl_load
10666
10667 /* System header to define __stub macros and hopefully few prototypes,
10668     which can conflict with char shl_load (); below.
10669     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
10670     <limits.h> exists even on freestanding compilers.  */
10671
10672 #ifdef __STDC__
10673 # include <limits.h>
10674 #else
10675 # include <assert.h>
10676 #endif
10677
10678 #undef shl_load
10679
10680 /* Override any GCC internal prototype to avoid an error.
10681    Use char because int might match the return type of a GCC
10682    builtin and then its argument prototype would still apply.  */
10683 #ifdef __cplusplus
10684 extern "C"
10685 #endif
10686 char shl_load ();
10687 /* The GNU C library defines this for functions which it implements
10688     to always fail with ENOSYS.  Some functions are actually named
10689     something starting with __ and the normal name is an alias.  */
10690 #if defined __stub_shl_load || defined __stub___shl_load
10691 choke me
10692 #endif
10693
10694 int
10695 main ()
10696 {
10697 return shl_load ();
10698   ;
10699   return 0;
10700 }
10701 _ACEOF
10702 rm -f conftest.$ac_objext conftest$ac_exeext
10703 if { (ac_try="$ac_link"
10704 case "(($ac_try" in
10705   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10706   *) ac_try_echo=$ac_try;;
10707 esac
10708 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10709   (eval "$ac_link") 2>conftest.er1
10710   ac_status=$?
10711   grep -v '^ *+' conftest.er1 >conftest.err
10712   rm -f conftest.er1
10713   cat conftest.err >&5
10714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10715   (exit $ac_status); } &&
10716          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10717   { (case "(($ac_try" in
10718   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10719   *) ac_try_echo=$ac_try;;
10720 esac
10721 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10722   (eval "$ac_try") 2>&5
10723   ac_status=$?
10724   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10725   (exit $ac_status); }; } &&
10726          { ac_try='test -s conftest$ac_exeext'
10727   { (case "(($ac_try" in
10728   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10729   *) ac_try_echo=$ac_try;;
10730 esac
10731 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10732   (eval "$ac_try") 2>&5
10733   ac_status=$?
10734   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10735   (exit $ac_status); }; }; then
10736   ac_cv_func_shl_load=yes
10737 else
10738   echo "$as_me: failed program was:" >&5
10739 sed 's/^/| /' conftest.$ac_ext >&5
10740
10741         ac_cv_func_shl_load=no
10742 fi
10743
10744 rm -f core conftest.err conftest.$ac_objext \
10745       conftest$ac_exeext conftest.$ac_ext
10746 fi
10747 { echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
10748 echo "${ECHO_T}$ac_cv_func_shl_load" >&6; }
10749 if test $ac_cv_func_shl_load = yes; then
10750
10751 cat >>confdefs.h <<\_ACEOF
10752 #define HAVE_SHL_LOAD 1
10753 _ACEOF
10754
10755 else
10756   { echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
10757 echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6; }
10758 if test "${ac_cv_lib_dld_shl_load+set}" = set; then
10759   echo $ECHO_N "(cached) $ECHO_C" >&6
10760 else
10761   ac_check_lib_save_LIBS=$LIBS
10762 LIBS="-ldld  $LIBS"
10763 cat >conftest.$ac_ext <<_ACEOF
10764 /* confdefs.h.  */
10765 _ACEOF
10766 cat confdefs.h >>conftest.$ac_ext
10767 cat >>conftest.$ac_ext <<_ACEOF
10768 /* end confdefs.h.  */
10769
10770 /* Override any GCC internal prototype to avoid an error.
10771    Use char because int might match the return type of a GCC
10772    builtin and then its argument prototype would still apply.  */
10773 #ifdef __cplusplus
10774 extern "C"
10775 #endif
10776 char shl_load ();
10777 int
10778 main ()
10779 {
10780 return shl_load ();
10781   ;
10782   return 0;
10783 }
10784 _ACEOF
10785 rm -f conftest.$ac_objext conftest$ac_exeext
10786 if { (ac_try="$ac_link"
10787 case "(($ac_try" in
10788   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10789   *) ac_try_echo=$ac_try;;
10790 esac
10791 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10792   (eval "$ac_link") 2>conftest.er1
10793   ac_status=$?
10794   grep -v '^ *+' conftest.er1 >conftest.err
10795   rm -f conftest.er1
10796   cat conftest.err >&5
10797   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10798   (exit $ac_status); } &&
10799          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10800   { (case "(($ac_try" in
10801   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10802   *) ac_try_echo=$ac_try;;
10803 esac
10804 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10805   (eval "$ac_try") 2>&5
10806   ac_status=$?
10807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10808   (exit $ac_status); }; } &&
10809          { ac_try='test -s conftest$ac_exeext'
10810   { (case "(($ac_try" in
10811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10812   *) ac_try_echo=$ac_try;;
10813 esac
10814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10815   (eval "$ac_try") 2>&5
10816   ac_status=$?
10817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10818   (exit $ac_status); }; }; then
10819   ac_cv_lib_dld_shl_load=yes
10820 else
10821   echo "$as_me: failed program was:" >&5
10822 sed 's/^/| /' conftest.$ac_ext >&5
10823
10824         ac_cv_lib_dld_shl_load=no
10825 fi
10826
10827 rm -f core conftest.err conftest.$ac_objext \
10828       conftest$ac_exeext conftest.$ac_ext
10829 LIBS=$ac_check_lib_save_LIBS
10830 fi
10831 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
10832 echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6; }
10833 if test $ac_cv_lib_dld_shl_load = yes; then
10834
10835 cat >>confdefs.h <<\_ACEOF
10836 #define HAVE_SHL_LOAD 1
10837 _ACEOF
10838
10839         LIBADD_DL="$LIBADD_DL -ldld"
10840 else
10841   { echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
10842 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6; }
10843 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
10844   echo $ECHO_N "(cached) $ECHO_C" >&6
10845 else
10846   ac_check_lib_save_LIBS=$LIBS
10847 LIBS="-ldl  $LIBS"
10848 cat >conftest.$ac_ext <<_ACEOF
10849 /* confdefs.h.  */
10850 _ACEOF
10851 cat confdefs.h >>conftest.$ac_ext
10852 cat >>conftest.$ac_ext <<_ACEOF
10853 /* end confdefs.h.  */
10854
10855 /* Override any GCC internal prototype to avoid an error.
10856    Use char because int might match the return type of a GCC
10857    builtin and then its argument prototype would still apply.  */
10858 #ifdef __cplusplus
10859 extern "C"
10860 #endif
10861 char dlopen ();
10862 int
10863 main ()
10864 {
10865 return dlopen ();
10866   ;
10867   return 0;
10868 }
10869 _ACEOF
10870 rm -f conftest.$ac_objext conftest$ac_exeext
10871 if { (ac_try="$ac_link"
10872 case "(($ac_try" in
10873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10874   *) ac_try_echo=$ac_try;;
10875 esac
10876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10877   (eval "$ac_link") 2>conftest.er1
10878   ac_status=$?
10879   grep -v '^ *+' conftest.er1 >conftest.err
10880   rm -f conftest.er1
10881   cat conftest.err >&5
10882   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10883   (exit $ac_status); } &&
10884          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10885   { (case "(($ac_try" in
10886   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10887   *) ac_try_echo=$ac_try;;
10888 esac
10889 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10890   (eval "$ac_try") 2>&5
10891   ac_status=$?
10892   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10893   (exit $ac_status); }; } &&
10894          { ac_try='test -s conftest$ac_exeext'
10895   { (case "(($ac_try" in
10896   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10897   *) ac_try_echo=$ac_try;;
10898 esac
10899 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10900   (eval "$ac_try") 2>&5
10901   ac_status=$?
10902   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10903   (exit $ac_status); }; }; then
10904   ac_cv_lib_dl_dlopen=yes
10905 else
10906   echo "$as_me: failed program was:" >&5
10907 sed 's/^/| /' conftest.$ac_ext >&5
10908
10909         ac_cv_lib_dl_dlopen=no
10910 fi
10911
10912 rm -f core conftest.err conftest.$ac_objext \
10913       conftest$ac_exeext conftest.$ac_ext
10914 LIBS=$ac_check_lib_save_LIBS
10915 fi
10916 { echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
10917 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6; }
10918 if test $ac_cv_lib_dl_dlopen = yes; then
10919
10920 cat >>confdefs.h <<\_ACEOF
10921 #define HAVE_LIBDL 1
10922 _ACEOF
10923
10924                 LIBADD_DL="-ldl" libltdl_cv_lib_dl_dlopen="yes"
10925 else
10926   cat >conftest.$ac_ext <<_ACEOF
10927 /* confdefs.h.  */
10928 _ACEOF
10929 cat confdefs.h >>conftest.$ac_ext
10930 cat >>conftest.$ac_ext <<_ACEOF
10931 /* end confdefs.h.  */
10932 #if HAVE_DLFCN_H
10933 #  include <dlfcn.h>
10934 #endif
10935
10936 int
10937 main ()
10938 {
10939 dlopen(0, 0);
10940   ;
10941   return 0;
10942 }
10943 _ACEOF
10944 rm -f conftest.$ac_objext conftest$ac_exeext
10945 if { (ac_try="$ac_link"
10946 case "(($ac_try" in
10947   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10948   *) ac_try_echo=$ac_try;;
10949 esac
10950 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10951   (eval "$ac_link") 2>conftest.er1
10952   ac_status=$?
10953   grep -v '^ *+' conftest.er1 >conftest.err
10954   rm -f conftest.er1
10955   cat conftest.err >&5
10956   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10957   (exit $ac_status); } &&
10958          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
10959   { (case "(($ac_try" in
10960   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10961   *) ac_try_echo=$ac_try;;
10962 esac
10963 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10964   (eval "$ac_try") 2>&5
10965   ac_status=$?
10966   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10967   (exit $ac_status); }; } &&
10968          { ac_try='test -s conftest$ac_exeext'
10969   { (case "(($ac_try" in
10970   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
10971   *) ac_try_echo=$ac_try;;
10972 esac
10973 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
10974   (eval "$ac_try") 2>&5
10975   ac_status=$?
10976   echo "$as_me:$LINENO: \$? = $ac_status" >&5
10977   (exit $ac_status); }; }; then
10978
10979 cat >>confdefs.h <<\_ACEOF
10980 #define HAVE_LIBDL 1
10981 _ACEOF
10982  libltdl_cv_func_dlopen="yes"
10983 else
10984   echo "$as_me: failed program was:" >&5
10985 sed 's/^/| /' conftest.$ac_ext >&5
10986
10987         { echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
10988 echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6; }
10989 if test "${ac_cv_lib_svld_dlopen+set}" = set; then
10990   echo $ECHO_N "(cached) $ECHO_C" >&6
10991 else
10992   ac_check_lib_save_LIBS=$LIBS
10993 LIBS="-lsvld  $LIBS"
10994 cat >conftest.$ac_ext <<_ACEOF
10995 /* confdefs.h.  */
10996 _ACEOF
10997 cat confdefs.h >>conftest.$ac_ext
10998 cat >>conftest.$ac_ext <<_ACEOF
10999 /* end confdefs.h.  */
11000
11001 /* Override any GCC internal prototype to avoid an error.
11002    Use char because int might match the return type of a GCC
11003    builtin and then its argument prototype would still apply.  */
11004 #ifdef __cplusplus
11005 extern "C"
11006 #endif
11007 char dlopen ();
11008 int
11009 main ()
11010 {
11011 return dlopen ();
11012   ;
11013   return 0;
11014 }
11015 _ACEOF
11016 rm -f conftest.$ac_objext conftest$ac_exeext
11017 if { (ac_try="$ac_link"
11018 case "(($ac_try" in
11019   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11020   *) ac_try_echo=$ac_try;;
11021 esac
11022 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11023   (eval "$ac_link") 2>conftest.er1
11024   ac_status=$?
11025   grep -v '^ *+' conftest.er1 >conftest.err
11026   rm -f conftest.er1
11027   cat conftest.err >&5
11028   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11029   (exit $ac_status); } &&
11030          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11031   { (case "(($ac_try" in
11032   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11033   *) ac_try_echo=$ac_try;;
11034 esac
11035 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11036   (eval "$ac_try") 2>&5
11037   ac_status=$?
11038   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11039   (exit $ac_status); }; } &&
11040          { ac_try='test -s conftest$ac_exeext'
11041   { (case "(($ac_try" in
11042   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11043   *) ac_try_echo=$ac_try;;
11044 esac
11045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11046   (eval "$ac_try") 2>&5
11047   ac_status=$?
11048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11049   (exit $ac_status); }; }; then
11050   ac_cv_lib_svld_dlopen=yes
11051 else
11052   echo "$as_me: failed program was:" >&5
11053 sed 's/^/| /' conftest.$ac_ext >&5
11054
11055         ac_cv_lib_svld_dlopen=no
11056 fi
11057
11058 rm -f core conftest.err conftest.$ac_objext \
11059       conftest$ac_exeext conftest.$ac_ext
11060 LIBS=$ac_check_lib_save_LIBS
11061 fi
11062 { echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
11063 echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6; }
11064 if test $ac_cv_lib_svld_dlopen = yes; then
11065
11066 cat >>confdefs.h <<\_ACEOF
11067 #define HAVE_LIBDL 1
11068 _ACEOF
11069
11070                     LIBADD_DL="-lsvld" libltdl_cv_func_dlopen="yes"
11071 else
11072   { echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
11073 echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6; }
11074 if test "${ac_cv_lib_dld_dld_link+set}" = set; then
11075   echo $ECHO_N "(cached) $ECHO_C" >&6
11076 else
11077   ac_check_lib_save_LIBS=$LIBS
11078 LIBS="-ldld  $LIBS"
11079 cat >conftest.$ac_ext <<_ACEOF
11080 /* confdefs.h.  */
11081 _ACEOF
11082 cat confdefs.h >>conftest.$ac_ext
11083 cat >>conftest.$ac_ext <<_ACEOF
11084 /* end confdefs.h.  */
11085
11086 /* Override any GCC internal prototype to avoid an error.
11087    Use char because int might match the return type of a GCC
11088    builtin and then its argument prototype would still apply.  */
11089 #ifdef __cplusplus
11090 extern "C"
11091 #endif
11092 char dld_link ();
11093 int
11094 main ()
11095 {
11096 return dld_link ();
11097   ;
11098   return 0;
11099 }
11100 _ACEOF
11101 rm -f conftest.$ac_objext conftest$ac_exeext
11102 if { (ac_try="$ac_link"
11103 case "(($ac_try" in
11104   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11105   *) ac_try_echo=$ac_try;;
11106 esac
11107 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11108   (eval "$ac_link") 2>conftest.er1
11109   ac_status=$?
11110   grep -v '^ *+' conftest.er1 >conftest.err
11111   rm -f conftest.er1
11112   cat conftest.err >&5
11113   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11114   (exit $ac_status); } &&
11115          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11116   { (case "(($ac_try" in
11117   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11118   *) ac_try_echo=$ac_try;;
11119 esac
11120 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11121   (eval "$ac_try") 2>&5
11122   ac_status=$?
11123   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11124   (exit $ac_status); }; } &&
11125          { ac_try='test -s conftest$ac_exeext'
11126   { (case "(($ac_try" in
11127   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11128   *) ac_try_echo=$ac_try;;
11129 esac
11130 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11131   (eval "$ac_try") 2>&5
11132   ac_status=$?
11133   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11134   (exit $ac_status); }; }; then
11135   ac_cv_lib_dld_dld_link=yes
11136 else
11137   echo "$as_me: failed program was:" >&5
11138 sed 's/^/| /' conftest.$ac_ext >&5
11139
11140         ac_cv_lib_dld_dld_link=no
11141 fi
11142
11143 rm -f core conftest.err conftest.$ac_objext \
11144       conftest$ac_exeext conftest.$ac_ext
11145 LIBS=$ac_check_lib_save_LIBS
11146 fi
11147 { echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
11148 echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6; }
11149 if test $ac_cv_lib_dld_dld_link = yes; then
11150
11151 cat >>confdefs.h <<\_ACEOF
11152 #define HAVE_DLD 1
11153 _ACEOF
11154
11155                 LIBADD_DL="$LIBADD_DL -ldld"
11156 else
11157   { echo "$as_me:$LINENO: checking for _dyld_func_lookup" >&5
11158 echo $ECHO_N "checking for _dyld_func_lookup... $ECHO_C" >&6; }
11159 if test "${ac_cv_func__dyld_func_lookup+set}" = set; then
11160   echo $ECHO_N "(cached) $ECHO_C" >&6
11161 else
11162   cat >conftest.$ac_ext <<_ACEOF
11163 /* confdefs.h.  */
11164 _ACEOF
11165 cat confdefs.h >>conftest.$ac_ext
11166 cat >>conftest.$ac_ext <<_ACEOF
11167 /* end confdefs.h.  */
11168 /* Define _dyld_func_lookup to an innocuous variant, in case <limits.h> declares _dyld_func_lookup.
11169    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11170 #define _dyld_func_lookup innocuous__dyld_func_lookup
11171
11172 /* System header to define __stub macros and hopefully few prototypes,
11173     which can conflict with char _dyld_func_lookup (); below.
11174     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11175     <limits.h> exists even on freestanding compilers.  */
11176
11177 #ifdef __STDC__
11178 # include <limits.h>
11179 #else
11180 # include <assert.h>
11181 #endif
11182
11183 #undef _dyld_func_lookup
11184
11185 /* Override any GCC internal prototype to avoid an error.
11186    Use char because int might match the return type of a GCC
11187    builtin and then its argument prototype would still apply.  */
11188 #ifdef __cplusplus
11189 extern "C"
11190 #endif
11191 char _dyld_func_lookup ();
11192 /* The GNU C library defines this for functions which it implements
11193     to always fail with ENOSYS.  Some functions are actually named
11194     something starting with __ and the normal name is an alias.  */
11195 #if defined __stub__dyld_func_lookup || defined __stub____dyld_func_lookup
11196 choke me
11197 #endif
11198
11199 int
11200 main ()
11201 {
11202 return _dyld_func_lookup ();
11203   ;
11204   return 0;
11205 }
11206 _ACEOF
11207 rm -f conftest.$ac_objext conftest$ac_exeext
11208 if { (ac_try="$ac_link"
11209 case "(($ac_try" in
11210   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11211   *) ac_try_echo=$ac_try;;
11212 esac
11213 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11214   (eval "$ac_link") 2>conftest.er1
11215   ac_status=$?
11216   grep -v '^ *+' conftest.er1 >conftest.err
11217   rm -f conftest.er1
11218   cat conftest.err >&5
11219   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11220   (exit $ac_status); } &&
11221          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11222   { (case "(($ac_try" in
11223   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11224   *) ac_try_echo=$ac_try;;
11225 esac
11226 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11227   (eval "$ac_try") 2>&5
11228   ac_status=$?
11229   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11230   (exit $ac_status); }; } &&
11231          { ac_try='test -s conftest$ac_exeext'
11232   { (case "(($ac_try" in
11233   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11234   *) ac_try_echo=$ac_try;;
11235 esac
11236 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11237   (eval "$ac_try") 2>&5
11238   ac_status=$?
11239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11240   (exit $ac_status); }; }; then
11241   ac_cv_func__dyld_func_lookup=yes
11242 else
11243   echo "$as_me: failed program was:" >&5
11244 sed 's/^/| /' conftest.$ac_ext >&5
11245
11246         ac_cv_func__dyld_func_lookup=no
11247 fi
11248
11249 rm -f core conftest.err conftest.$ac_objext \
11250       conftest$ac_exeext conftest.$ac_ext
11251 fi
11252 { echo "$as_me:$LINENO: result: $ac_cv_func__dyld_func_lookup" >&5
11253 echo "${ECHO_T}$ac_cv_func__dyld_func_lookup" >&6; }
11254 if test $ac_cv_func__dyld_func_lookup = yes; then
11255
11256 cat >>confdefs.h <<\_ACEOF
11257 #define HAVE_DYLD 1
11258 _ACEOF
11259
11260 fi
11261
11262
11263 fi
11264
11265
11266 fi
11267
11268
11269 fi
11270
11271 rm -f core conftest.err conftest.$ac_objext \
11272       conftest$ac_exeext conftest.$ac_ext
11273
11274 fi
11275
11276
11277 fi
11278
11279
11280 fi
11281
11282
11283 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
11284 then
11285   lt_save_LIBS="$LIBS"
11286   LIBS="$LIBS $LIBADD_DL"
11287
11288 for ac_func in dlerror
11289 do
11290 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11291 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11292 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11293 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11294   echo $ECHO_N "(cached) $ECHO_C" >&6
11295 else
11296   cat >conftest.$ac_ext <<_ACEOF
11297 /* confdefs.h.  */
11298 _ACEOF
11299 cat confdefs.h >>conftest.$ac_ext
11300 cat >>conftest.$ac_ext <<_ACEOF
11301 /* end confdefs.h.  */
11302 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11303    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11304 #define $ac_func innocuous_$ac_func
11305
11306 /* System header to define __stub macros and hopefully few prototypes,
11307     which can conflict with char $ac_func (); below.
11308     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11309     <limits.h> exists even on freestanding compilers.  */
11310
11311 #ifdef __STDC__
11312 # include <limits.h>
11313 #else
11314 # include <assert.h>
11315 #endif
11316
11317 #undef $ac_func
11318
11319 /* Override any GCC internal prototype to avoid an error.
11320    Use char because int might match the return type of a GCC
11321    builtin and then its argument prototype would still apply.  */
11322 #ifdef __cplusplus
11323 extern "C"
11324 #endif
11325 char $ac_func ();
11326 /* The GNU C library defines this for functions which it implements
11327     to always fail with ENOSYS.  Some functions are actually named
11328     something starting with __ and the normal name is an alias.  */
11329 #if defined __stub_$ac_func || defined __stub___$ac_func
11330 choke me
11331 #endif
11332
11333 int
11334 main ()
11335 {
11336 return $ac_func ();
11337   ;
11338   return 0;
11339 }
11340 _ACEOF
11341 rm -f conftest.$ac_objext conftest$ac_exeext
11342 if { (ac_try="$ac_link"
11343 case "(($ac_try" in
11344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11345   *) ac_try_echo=$ac_try;;
11346 esac
11347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11348   (eval "$ac_link") 2>conftest.er1
11349   ac_status=$?
11350   grep -v '^ *+' conftest.er1 >conftest.err
11351   rm -f conftest.er1
11352   cat conftest.err >&5
11353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11354   (exit $ac_status); } &&
11355          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11356   { (case "(($ac_try" in
11357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11358   *) ac_try_echo=$ac_try;;
11359 esac
11360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11361   (eval "$ac_try") 2>&5
11362   ac_status=$?
11363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11364   (exit $ac_status); }; } &&
11365          { ac_try='test -s conftest$ac_exeext'
11366   { (case "(($ac_try" in
11367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11368   *) ac_try_echo=$ac_try;;
11369 esac
11370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11371   (eval "$ac_try") 2>&5
11372   ac_status=$?
11373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11374   (exit $ac_status); }; }; then
11375   eval "$as_ac_var=yes"
11376 else
11377   echo "$as_me: failed program was:" >&5
11378 sed 's/^/| /' conftest.$ac_ext >&5
11379
11380         eval "$as_ac_var=no"
11381 fi
11382
11383 rm -f core conftest.err conftest.$ac_objext \
11384       conftest$ac_exeext conftest.$ac_ext
11385 fi
11386 ac_res=`eval echo '${'$as_ac_var'}'`
11387                { echo "$as_me:$LINENO: result: $ac_res" >&5
11388 echo "${ECHO_T}$ac_res" >&6; }
11389 if test `eval echo '${'$as_ac_var'}'` = yes; then
11390   cat >>confdefs.h <<_ACEOF
11391 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
11392 _ACEOF
11393
11394 fi
11395 done
11396
11397   LIBS="$lt_save_LIBS"
11398 fi
11399 ac_ext=c
11400 ac_cpp='$CPP $CPPFLAGS'
11401 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11402 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11403 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11404
11405
11406
11407 { echo "$as_me:$LINENO: checking for _ prefix in compiled symbols" >&5
11408 echo $ECHO_N "checking for _ prefix in compiled symbols... $ECHO_C" >&6; }
11409 if test "${ac_cv_sys_symbol_underscore+set}" = set; then
11410   echo $ECHO_N "(cached) $ECHO_C" >&6
11411 else
11412   ac_cv_sys_symbol_underscore=no
11413   cat > conftest.$ac_ext <<EOF
11414 void nm_test_func(){}
11415 int main(){nm_test_func;return 0;}
11416 EOF
11417   if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
11418   (eval $ac_compile) 2>&5
11419   ac_status=$?
11420   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11421   (exit $ac_status); }; then
11422     # Now try to grab the symbols.
11423     ac_nlist=conftest.nm
11424     if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\"") >&5
11425   (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
11426   ac_status=$?
11427   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11428   (exit $ac_status); } && test -s "$ac_nlist"; then
11429       # See whether the symbols have a leading underscore.
11430       if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
11431         ac_cv_sys_symbol_underscore=yes
11432       else
11433         if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
11434           :
11435         else
11436           echo "configure: cannot find nm_test_func in $ac_nlist" >&5
11437         fi
11438       fi
11439     else
11440       echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
11441     fi
11442   else
11443     echo "configure: failed program was:" >&5
11444     cat conftest.c >&5
11445   fi
11446   rm -rf conftest*
11447
11448 fi
11449 { echo "$as_me:$LINENO: result: $ac_cv_sys_symbol_underscore" >&5
11450 echo "${ECHO_T}$ac_cv_sys_symbol_underscore" >&6; }
11451
11452
11453 if test x"$ac_cv_sys_symbol_underscore" = xyes; then
11454   if test x"$libltdl_cv_func_dlopen" = xyes ||
11455      test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
11456         { echo "$as_me:$LINENO: checking whether we have to add an underscore for dlsym" >&5
11457 echo $ECHO_N "checking whether we have to add an underscore for dlsym... $ECHO_C" >&6; }
11458 if test "${libltdl_cv_need_uscore+set}" = set; then
11459   echo $ECHO_N "(cached) $ECHO_C" >&6
11460 else
11461   libltdl_cv_need_uscore=unknown
11462           save_LIBS="$LIBS"
11463           LIBS="$LIBS $LIBADD_DL"
11464           if test "$cross_compiling" = yes; then :
11465   libltdl_cv_need_uscore=cross
11466 else
11467   lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11468   lt_status=$lt_dlunknown
11469   cat > conftest.$ac_ext <<EOF
11470 #line 11470 "configure"
11471 #include "confdefs.h"
11472
11473 #if HAVE_DLFCN_H
11474 #include <dlfcn.h>
11475 #endif
11476
11477 #include <stdio.h>
11478
11479 #ifdef RTLD_GLOBAL
11480 #  define LT_DLGLOBAL           RTLD_GLOBAL
11481 #else
11482 #  ifdef DL_GLOBAL
11483 #    define LT_DLGLOBAL         DL_GLOBAL
11484 #  else
11485 #    define LT_DLGLOBAL         0
11486 #  endif
11487 #endif
11488
11489 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11490    find out it does not work in some platform. */
11491 #ifndef LT_DLLAZY_OR_NOW
11492 #  ifdef RTLD_LAZY
11493 #    define LT_DLLAZY_OR_NOW            RTLD_LAZY
11494 #  else
11495 #    ifdef DL_LAZY
11496 #      define LT_DLLAZY_OR_NOW          DL_LAZY
11497 #    else
11498 #      ifdef RTLD_NOW
11499 #        define LT_DLLAZY_OR_NOW        RTLD_NOW
11500 #      else
11501 #        ifdef DL_NOW
11502 #          define LT_DLLAZY_OR_NOW      DL_NOW
11503 #        else
11504 #          define LT_DLLAZY_OR_NOW      0
11505 #        endif
11506 #      endif
11507 #    endif
11508 #  endif
11509 #endif
11510
11511 #ifdef __cplusplus
11512 extern "C" void exit (int);
11513 #endif
11514
11515 void fnord() { int i=42;}
11516 int main ()
11517 {
11518   void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11519   int status = $lt_dlunknown;
11520
11521   if (self)
11522     {
11523       if (dlsym (self,"fnord"))       status = $lt_dlno_uscore;
11524       else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11525       /* dlclose (self); */
11526     }
11527   else
11528     puts (dlerror ());
11529
11530     exit (status);
11531 }
11532 EOF
11533   if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
11534   (eval $ac_link) 2>&5
11535   ac_status=$?
11536   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11537   (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
11538     (./conftest; exit; ) >&5 2>/dev/null
11539     lt_status=$?
11540     case x$lt_status in
11541       x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
11542       x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
11543       x$lt_dlunknown|x*)  ;;
11544     esac
11545   else :
11546     # compilation failed
11547
11548   fi
11549 fi
11550 rm -fr conftest*
11551
11552           LIBS="$save_LIBS"
11553
11554 fi
11555 { echo "$as_me:$LINENO: result: $libltdl_cv_need_uscore" >&5
11556 echo "${ECHO_T}$libltdl_cv_need_uscore" >&6; }
11557   fi
11558 fi
11559
11560 if test x"$libltdl_cv_need_uscore" = xyes; then
11561
11562 cat >>confdefs.h <<\_ACEOF
11563 #define NEED_USCORE 1
11564 _ACEOF
11565
11566 fi
11567
11568
11569 { echo "$as_me:$LINENO: checking whether deplibs are loaded by dlopen" >&5
11570 echo $ECHO_N "checking whether deplibs are loaded by dlopen... $ECHO_C" >&6; }
11571 if test "${libltdl_cv_sys_dlopen_deplibs+set}" = set; then
11572   echo $ECHO_N "(cached) $ECHO_C" >&6
11573 else
11574   # PORTME does your system automatically load deplibs for dlopen?
11575   # or its logical equivalent (e.g. shl_load for HP-UX < 11)
11576   # For now, we just catch OSes we know something about -- in the
11577   # future, we'll try test this programmatically.
11578   libltdl_cv_sys_dlopen_deplibs=unknown
11579   case "$host_os" in
11580   aix3*|aix4.1.*|aix4.2.*)
11581     # Unknown whether this is true for these versions of AIX, but
11582     # we want this `case' here to explicitly catch those versions.
11583     libltdl_cv_sys_dlopen_deplibs=unknown
11584     ;;
11585   aix[45]*)
11586     libltdl_cv_sys_dlopen_deplibs=yes
11587     ;;
11588   darwin*)
11589     # Assuming the user has installed a libdl from somewhere, this is true
11590     # If you are looking for one http://www.opendarwin.org/projects/dlcompat
11591     libltdl_cv_sys_dlopen_deplibs=yes
11592     ;;
11593   gnu* | linux* | kfreebsd*-gnu | knetbsd*-gnu)
11594     # GNU and its variants, using gnu ld.so (Glibc)
11595     libltdl_cv_sys_dlopen_deplibs=yes
11596     ;;
11597   hpux10*|hpux11*)
11598     libltdl_cv_sys_dlopen_deplibs=yes
11599     ;;
11600   interix*)
11601     libltdl_cv_sys_dlopen_deplibs=yes
11602     ;;
11603   irix[12345]*|irix6.[01]*)
11604     # Catch all versions of IRIX before 6.2, and indicate that we don't
11605     # know how it worked for any of those versions.
11606     libltdl_cv_sys_dlopen_deplibs=unknown
11607     ;;
11608   irix*)
11609     # The case above catches anything before 6.2, and it's known that
11610     # at 6.2 and later dlopen does load deplibs.
11611     libltdl_cv_sys_dlopen_deplibs=yes
11612     ;;
11613   netbsd*)
11614     libltdl_cv_sys_dlopen_deplibs=yes
11615     ;;
11616   openbsd*)
11617     libltdl_cv_sys_dlopen_deplibs=yes
11618     ;;
11619   osf[1234]*)
11620     # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
11621     # it did *not* use an RPATH in a shared library to find objects the
11622     # library depends on, so we explictly say `no'.
11623     libltdl_cv_sys_dlopen_deplibs=no
11624     ;;
11625   osf5.0|osf5.0a|osf5.1)
11626     # dlopen *does* load deplibs and with the right loader patch applied
11627     # it even uses RPATH in a shared library to search for shared objects
11628     # that the library depends on, but there's no easy way to know if that
11629     # patch is installed.  Since this is the case, all we can really
11630     # say is unknown -- it depends on the patch being installed.  If
11631     # it is, this changes to `yes'.  Without it, it would be `no'.
11632     libltdl_cv_sys_dlopen_deplibs=unknown
11633     ;;
11634   osf*)
11635     # the two cases above should catch all versions of osf <= 5.1.  Read
11636     # the comments above for what we know about them.
11637     # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
11638     # is used to find them so we can finally say `yes'.
11639     libltdl_cv_sys_dlopen_deplibs=yes
11640     ;;
11641   solaris*)
11642     libltdl_cv_sys_dlopen_deplibs=yes
11643     ;;
11644   sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11645     libltdl_cv_sys_dlopen_deplibs=yes
11646     ;;
11647   esac
11648
11649 fi
11650 { echo "$as_me:$LINENO: result: $libltdl_cv_sys_dlopen_deplibs" >&5
11651 echo "${ECHO_T}$libltdl_cv_sys_dlopen_deplibs" >&6; }
11652 if test "$libltdl_cv_sys_dlopen_deplibs" != yes; then
11653
11654 cat >>confdefs.h <<\_ACEOF
11655 #define LTDL_DLOPEN_DEPLIBS 1
11656 _ACEOF
11657
11658 fi
11659
11660
11661 for ac_header in argz.h
11662 do
11663 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
11664 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11665   { echo "$as_me:$LINENO: checking for $ac_header" >&5
11666 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11667 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11668   echo $ECHO_N "(cached) $ECHO_C" >&6
11669 fi
11670 ac_res=`eval echo '${'$as_ac_Header'}'`
11671                { echo "$as_me:$LINENO: result: $ac_res" >&5
11672 echo "${ECHO_T}$ac_res" >&6; }
11673 else
11674   # Is the header compilable?
11675 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
11676 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
11677 cat >conftest.$ac_ext <<_ACEOF
11678 /* confdefs.h.  */
11679 _ACEOF
11680 cat confdefs.h >>conftest.$ac_ext
11681 cat >>conftest.$ac_ext <<_ACEOF
11682 /* end confdefs.h.  */
11683 $ac_includes_default
11684 #include <$ac_header>
11685 _ACEOF
11686 rm -f conftest.$ac_objext
11687 if { (ac_try="$ac_compile"
11688 case "(($ac_try" in
11689   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11690   *) ac_try_echo=$ac_try;;
11691 esac
11692 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11693   (eval "$ac_compile") 2>conftest.er1
11694   ac_status=$?
11695   grep -v '^ *+' conftest.er1 >conftest.err
11696   rm -f conftest.er1
11697   cat conftest.err >&5
11698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11699   (exit $ac_status); } &&
11700          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11701   { (case "(($ac_try" in
11702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11703   *) ac_try_echo=$ac_try;;
11704 esac
11705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11706   (eval "$ac_try") 2>&5
11707   ac_status=$?
11708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11709   (exit $ac_status); }; } &&
11710          { ac_try='test -s conftest.$ac_objext'
11711   { (case "(($ac_try" in
11712   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11713   *) ac_try_echo=$ac_try;;
11714 esac
11715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11716   (eval "$ac_try") 2>&5
11717   ac_status=$?
11718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11719   (exit $ac_status); }; }; then
11720   ac_header_compiler=yes
11721 else
11722   echo "$as_me: failed program was:" >&5
11723 sed 's/^/| /' conftest.$ac_ext >&5
11724
11725         ac_header_compiler=no
11726 fi
11727
11728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11729 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
11730 echo "${ECHO_T}$ac_header_compiler" >&6; }
11731
11732 # Is the header present?
11733 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
11734 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
11735 cat >conftest.$ac_ext <<_ACEOF
11736 /* confdefs.h.  */
11737 _ACEOF
11738 cat confdefs.h >>conftest.$ac_ext
11739 cat >>conftest.$ac_ext <<_ACEOF
11740 /* end confdefs.h.  */
11741 #include <$ac_header>
11742 _ACEOF
11743 if { (ac_try="$ac_cpp conftest.$ac_ext"
11744 case "(($ac_try" in
11745   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11746   *) ac_try_echo=$ac_try;;
11747 esac
11748 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11749   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
11750   ac_status=$?
11751   grep -v '^ *+' conftest.er1 >conftest.err
11752   rm -f conftest.er1
11753   cat conftest.err >&5
11754   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11755   (exit $ac_status); } >/dev/null; then
11756   if test -s conftest.err; then
11757     ac_cpp_err=$ac_c_preproc_warn_flag
11758     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
11759   else
11760     ac_cpp_err=
11761   fi
11762 else
11763   ac_cpp_err=yes
11764 fi
11765 if test -z "$ac_cpp_err"; then
11766   ac_header_preproc=yes
11767 else
11768   echo "$as_me: failed program was:" >&5
11769 sed 's/^/| /' conftest.$ac_ext >&5
11770
11771   ac_header_preproc=no
11772 fi
11773
11774 rm -f conftest.err conftest.$ac_ext
11775 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
11776 echo "${ECHO_T}$ac_header_preproc" >&6; }
11777
11778 # So?  What about this header?
11779 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
11780   yes:no: )
11781     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
11782 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
11783     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
11784 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
11785     ac_header_preproc=yes
11786     ;;
11787   no:yes:* )
11788     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
11789 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
11790     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
11791 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
11792     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
11793 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
11794     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
11795 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
11796     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
11797 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
11798     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
11799 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
11800     ( cat <<\_ASBOX
11801 ## ----------------------------------- ##
11802 ## Report this to llvmbugs@cs.uiuc.edu ##
11803 ## ----------------------------------- ##
11804 _ASBOX
11805      ) | sed "s/^/$as_me: WARNING:     /" >&2
11806     ;;
11807 esac
11808 { echo "$as_me:$LINENO: checking for $ac_header" >&5
11809 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
11810 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
11811   echo $ECHO_N "(cached) $ECHO_C" >&6
11812 else
11813   eval "$as_ac_Header=\$ac_header_preproc"
11814 fi
11815 ac_res=`eval echo '${'$as_ac_Header'}'`
11816                { echo "$as_me:$LINENO: result: $ac_res" >&5
11817 echo "${ECHO_T}$ac_res" >&6; }
11818
11819 fi
11820 if test `eval echo '${'$as_ac_Header'}'` = yes; then
11821   cat >>confdefs.h <<_ACEOF
11822 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
11823 _ACEOF
11824
11825 fi
11826
11827 done
11828
11829
11830 { echo "$as_me:$LINENO: checking for error_t" >&5
11831 echo $ECHO_N "checking for error_t... $ECHO_C" >&6; }
11832 if test "${ac_cv_type_error_t+set}" = set; then
11833   echo $ECHO_N "(cached) $ECHO_C" >&6
11834 else
11835   cat >conftest.$ac_ext <<_ACEOF
11836 /* confdefs.h.  */
11837 _ACEOF
11838 cat confdefs.h >>conftest.$ac_ext
11839 cat >>conftest.$ac_ext <<_ACEOF
11840 /* end confdefs.h.  */
11841 #if HAVE_ARGZ_H
11842 #  include <argz.h>
11843 #endif
11844
11845 typedef error_t ac__type_new_;
11846 int
11847 main ()
11848 {
11849 if ((ac__type_new_ *) 0)
11850   return 0;
11851 if (sizeof (ac__type_new_))
11852   return 0;
11853   ;
11854   return 0;
11855 }
11856 _ACEOF
11857 rm -f conftest.$ac_objext
11858 if { (ac_try="$ac_compile"
11859 case "(($ac_try" in
11860   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11861   *) ac_try_echo=$ac_try;;
11862 esac
11863 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11864   (eval "$ac_compile") 2>conftest.er1
11865   ac_status=$?
11866   grep -v '^ *+' conftest.er1 >conftest.err
11867   rm -f conftest.er1
11868   cat conftest.err >&5
11869   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11870   (exit $ac_status); } &&
11871          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11872   { (case "(($ac_try" in
11873   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11874   *) ac_try_echo=$ac_try;;
11875 esac
11876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11877   (eval "$ac_try") 2>&5
11878   ac_status=$?
11879   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11880   (exit $ac_status); }; } &&
11881          { ac_try='test -s conftest.$ac_objext'
11882   { (case "(($ac_try" in
11883   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11884   *) ac_try_echo=$ac_try;;
11885 esac
11886 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11887   (eval "$ac_try") 2>&5
11888   ac_status=$?
11889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11890   (exit $ac_status); }; }; then
11891   ac_cv_type_error_t=yes
11892 else
11893   echo "$as_me: failed program was:" >&5
11894 sed 's/^/| /' conftest.$ac_ext >&5
11895
11896         ac_cv_type_error_t=no
11897 fi
11898
11899 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11900 fi
11901 { echo "$as_me:$LINENO: result: $ac_cv_type_error_t" >&5
11902 echo "${ECHO_T}$ac_cv_type_error_t" >&6; }
11903 if test $ac_cv_type_error_t = yes; then
11904
11905 cat >>confdefs.h <<_ACEOF
11906 #define HAVE_ERROR_T 1
11907 _ACEOF
11908
11909
11910 else
11911
11912 cat >>confdefs.h <<\_ACEOF
11913 #define error_t int
11914 _ACEOF
11915
11916 fi
11917
11918
11919
11920
11921
11922
11923
11924 for ac_func in argz_append argz_create_sep argz_insert argz_next argz_stringify
11925 do
11926 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
11927 { echo "$as_me:$LINENO: checking for $ac_func" >&5
11928 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
11929 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
11930   echo $ECHO_N "(cached) $ECHO_C" >&6
11931 else
11932   cat >conftest.$ac_ext <<_ACEOF
11933 /* confdefs.h.  */
11934 _ACEOF
11935 cat confdefs.h >>conftest.$ac_ext
11936 cat >>conftest.$ac_ext <<_ACEOF
11937 /* end confdefs.h.  */
11938 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
11939    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
11940 #define $ac_func innocuous_$ac_func
11941
11942 /* System header to define __stub macros and hopefully few prototypes,
11943     which can conflict with char $ac_func (); below.
11944     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
11945     <limits.h> exists even on freestanding compilers.  */
11946
11947 #ifdef __STDC__
11948 # include <limits.h>
11949 #else
11950 # include <assert.h>
11951 #endif
11952
11953 #undef $ac_func
11954
11955 /* Override any GCC internal prototype to avoid an error.
11956    Use char because int might match the return type of a GCC
11957    builtin and then its argument prototype would still apply.  */
11958 #ifdef __cplusplus
11959 extern "C"
11960 #endif
11961 char $ac_func ();
11962 /* The GNU C library defines this for functions which it implements
11963     to always fail with ENOSYS.  Some functions are actually named
11964     something starting with __ and the normal name is an alias.  */
11965 #if defined __stub_$ac_func || defined __stub___$ac_func
11966 choke me
11967 #endif
11968
11969 int
11970 main ()
11971 {
11972 return $ac_func ();
11973   ;
11974   return 0;
11975 }
11976 _ACEOF
11977 rm -f conftest.$ac_objext conftest$ac_exeext
11978 if { (ac_try="$ac_link"
11979 case "(($ac_try" in
11980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11981   *) ac_try_echo=$ac_try;;
11982 esac
11983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11984   (eval "$ac_link") 2>conftest.er1
11985   ac_status=$?
11986   grep -v '^ *+' conftest.er1 >conftest.err
11987   rm -f conftest.er1
11988   cat conftest.err >&5
11989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
11990   (exit $ac_status); } &&
11991          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
11992   { (case "(($ac_try" in
11993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
11994   *) ac_try_echo=$ac_try;;
11995 esac
11996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
11997   (eval "$ac_try") 2>&5
11998   ac_status=$?
11999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12000   (exit $ac_status); }; } &&
12001          { ac_try='test -s conftest$ac_exeext'
12002   { (case "(($ac_try" in
12003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12004   *) ac_try_echo=$ac_try;;
12005 esac
12006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12007   (eval "$ac_try") 2>&5
12008   ac_status=$?
12009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12010   (exit $ac_status); }; }; then
12011   eval "$as_ac_var=yes"
12012 else
12013   echo "$as_me: failed program was:" >&5
12014 sed 's/^/| /' conftest.$ac_ext >&5
12015
12016         eval "$as_ac_var=no"
12017 fi
12018
12019 rm -f core conftest.err conftest.$ac_objext \
12020       conftest$ac_exeext conftest.$ac_ext
12021 fi
12022 ac_res=`eval echo '${'$as_ac_var'}'`
12023                { echo "$as_me:$LINENO: result: $ac_res" >&5
12024 echo "${ECHO_T}$ac_res" >&6; }
12025 if test `eval echo '${'$as_ac_var'}'` = yes; then
12026   cat >>confdefs.h <<_ACEOF
12027 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12028 _ACEOF
12029
12030 fi
12031 done
12032
12033
12034
12035
12036
12037
12038
12039
12040
12041
12042
12043
12044
12045
12046
12047
12048
12049
12050
12051
12052
12053
12054
12055
12056
12057
12058
12059
12060 for ac_header in assert.h ctype.h errno.h malloc.h memory.h stdlib.h \
12061                   stdio.h unistd.h
12062 do
12063 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12064 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12065   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12066 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12067 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12068   echo $ECHO_N "(cached) $ECHO_C" >&6
12069 fi
12070 ac_res=`eval echo '${'$as_ac_Header'}'`
12071                { echo "$as_me:$LINENO: result: $ac_res" >&5
12072 echo "${ECHO_T}$ac_res" >&6; }
12073 else
12074   # Is the header compilable?
12075 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12076 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12077 cat >conftest.$ac_ext <<_ACEOF
12078 /* confdefs.h.  */
12079 _ACEOF
12080 cat confdefs.h >>conftest.$ac_ext
12081 cat >>conftest.$ac_ext <<_ACEOF
12082 /* end confdefs.h.  */
12083 $ac_includes_default
12084 #include <$ac_header>
12085 _ACEOF
12086 rm -f conftest.$ac_objext
12087 if { (ac_try="$ac_compile"
12088 case "(($ac_try" in
12089   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12090   *) ac_try_echo=$ac_try;;
12091 esac
12092 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12093   (eval "$ac_compile") 2>conftest.er1
12094   ac_status=$?
12095   grep -v '^ *+' conftest.er1 >conftest.err
12096   rm -f conftest.er1
12097   cat conftest.err >&5
12098   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12099   (exit $ac_status); } &&
12100          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12101   { (case "(($ac_try" in
12102   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12103   *) ac_try_echo=$ac_try;;
12104 esac
12105 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12106   (eval "$ac_try") 2>&5
12107   ac_status=$?
12108   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12109   (exit $ac_status); }; } &&
12110          { ac_try='test -s conftest.$ac_objext'
12111   { (case "(($ac_try" in
12112   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12113   *) ac_try_echo=$ac_try;;
12114 esac
12115 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12116   (eval "$ac_try") 2>&5
12117   ac_status=$?
12118   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12119   (exit $ac_status); }; }; then
12120   ac_header_compiler=yes
12121 else
12122   echo "$as_me: failed program was:" >&5
12123 sed 's/^/| /' conftest.$ac_ext >&5
12124
12125         ac_header_compiler=no
12126 fi
12127
12128 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12129 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12130 echo "${ECHO_T}$ac_header_compiler" >&6; }
12131
12132 # Is the header present?
12133 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12134 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12135 cat >conftest.$ac_ext <<_ACEOF
12136 /* confdefs.h.  */
12137 _ACEOF
12138 cat confdefs.h >>conftest.$ac_ext
12139 cat >>conftest.$ac_ext <<_ACEOF
12140 /* end confdefs.h.  */
12141 #include <$ac_header>
12142 _ACEOF
12143 if { (ac_try="$ac_cpp conftest.$ac_ext"
12144 case "(($ac_try" in
12145   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12146   *) ac_try_echo=$ac_try;;
12147 esac
12148 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12149   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12150   ac_status=$?
12151   grep -v '^ *+' conftest.er1 >conftest.err
12152   rm -f conftest.er1
12153   cat conftest.err >&5
12154   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12155   (exit $ac_status); } >/dev/null; then
12156   if test -s conftest.err; then
12157     ac_cpp_err=$ac_c_preproc_warn_flag
12158     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12159   else
12160     ac_cpp_err=
12161   fi
12162 else
12163   ac_cpp_err=yes
12164 fi
12165 if test -z "$ac_cpp_err"; then
12166   ac_header_preproc=yes
12167 else
12168   echo "$as_me: failed program was:" >&5
12169 sed 's/^/| /' conftest.$ac_ext >&5
12170
12171   ac_header_preproc=no
12172 fi
12173
12174 rm -f conftest.err conftest.$ac_ext
12175 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12176 echo "${ECHO_T}$ac_header_preproc" >&6; }
12177
12178 # So?  What about this header?
12179 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12180   yes:no: )
12181     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12182 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12183     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12184 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12185     ac_header_preproc=yes
12186     ;;
12187   no:yes:* )
12188     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12189 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12190     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12191 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12192     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12193 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12194     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12195 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12196     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12197 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12198     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12199 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12200     ( cat <<\_ASBOX
12201 ## ----------------------------------- ##
12202 ## Report this to llvmbugs@cs.uiuc.edu ##
12203 ## ----------------------------------- ##
12204 _ASBOX
12205      ) | sed "s/^/$as_me: WARNING:     /" >&2
12206     ;;
12207 esac
12208 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12209 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12210 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12211   echo $ECHO_N "(cached) $ECHO_C" >&6
12212 else
12213   eval "$as_ac_Header=\$ac_header_preproc"
12214 fi
12215 ac_res=`eval echo '${'$as_ac_Header'}'`
12216                { echo "$as_me:$LINENO: result: $ac_res" >&5
12217 echo "${ECHO_T}$ac_res" >&6; }
12218
12219 fi
12220 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12221   cat >>confdefs.h <<_ACEOF
12222 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12223 _ACEOF
12224
12225 fi
12226
12227 done
12228
12229
12230
12231
12232
12233 for ac_header in dl.h sys/dl.h dld.h mach-o/dyld.h
12234 do
12235 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12236 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12237   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12238 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12239 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12240   echo $ECHO_N "(cached) $ECHO_C" >&6
12241 fi
12242 ac_res=`eval echo '${'$as_ac_Header'}'`
12243                { echo "$as_me:$LINENO: result: $ac_res" >&5
12244 echo "${ECHO_T}$ac_res" >&6; }
12245 else
12246   # Is the header compilable?
12247 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12248 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12249 cat >conftest.$ac_ext <<_ACEOF
12250 /* confdefs.h.  */
12251 _ACEOF
12252 cat confdefs.h >>conftest.$ac_ext
12253 cat >>conftest.$ac_ext <<_ACEOF
12254 /* end confdefs.h.  */
12255 $ac_includes_default
12256 #include <$ac_header>
12257 _ACEOF
12258 rm -f conftest.$ac_objext
12259 if { (ac_try="$ac_compile"
12260 case "(($ac_try" in
12261   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12262   *) ac_try_echo=$ac_try;;
12263 esac
12264 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12265   (eval "$ac_compile") 2>conftest.er1
12266   ac_status=$?
12267   grep -v '^ *+' conftest.er1 >conftest.err
12268   rm -f conftest.er1
12269   cat conftest.err >&5
12270   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12271   (exit $ac_status); } &&
12272          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12273   { (case "(($ac_try" in
12274   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12275   *) ac_try_echo=$ac_try;;
12276 esac
12277 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12278   (eval "$ac_try") 2>&5
12279   ac_status=$?
12280   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12281   (exit $ac_status); }; } &&
12282          { ac_try='test -s conftest.$ac_objext'
12283   { (case "(($ac_try" in
12284   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12285   *) ac_try_echo=$ac_try;;
12286 esac
12287 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12288   (eval "$ac_try") 2>&5
12289   ac_status=$?
12290   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12291   (exit $ac_status); }; }; then
12292   ac_header_compiler=yes
12293 else
12294   echo "$as_me: failed program was:" >&5
12295 sed 's/^/| /' conftest.$ac_ext >&5
12296
12297         ac_header_compiler=no
12298 fi
12299
12300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12301 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12302 echo "${ECHO_T}$ac_header_compiler" >&6; }
12303
12304 # Is the header present?
12305 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12306 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12307 cat >conftest.$ac_ext <<_ACEOF
12308 /* confdefs.h.  */
12309 _ACEOF
12310 cat confdefs.h >>conftest.$ac_ext
12311 cat >>conftest.$ac_ext <<_ACEOF
12312 /* end confdefs.h.  */
12313 #include <$ac_header>
12314 _ACEOF
12315 if { (ac_try="$ac_cpp conftest.$ac_ext"
12316 case "(($ac_try" in
12317   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12318   *) ac_try_echo=$ac_try;;
12319 esac
12320 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12321   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12322   ac_status=$?
12323   grep -v '^ *+' conftest.er1 >conftest.err
12324   rm -f conftest.er1
12325   cat conftest.err >&5
12326   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12327   (exit $ac_status); } >/dev/null; then
12328   if test -s conftest.err; then
12329     ac_cpp_err=$ac_c_preproc_warn_flag
12330     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12331   else
12332     ac_cpp_err=
12333   fi
12334 else
12335   ac_cpp_err=yes
12336 fi
12337 if test -z "$ac_cpp_err"; then
12338   ac_header_preproc=yes
12339 else
12340   echo "$as_me: failed program was:" >&5
12341 sed 's/^/| /' conftest.$ac_ext >&5
12342
12343   ac_header_preproc=no
12344 fi
12345
12346 rm -f conftest.err conftest.$ac_ext
12347 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12348 echo "${ECHO_T}$ac_header_preproc" >&6; }
12349
12350 # So?  What about this header?
12351 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12352   yes:no: )
12353     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12354 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12355     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12356 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12357     ac_header_preproc=yes
12358     ;;
12359   no:yes:* )
12360     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12361 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12362     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12363 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12364     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12365 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12366     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12367 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12368     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12369 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12370     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12371 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12372     ( cat <<\_ASBOX
12373 ## ----------------------------------- ##
12374 ## Report this to llvmbugs@cs.uiuc.edu ##
12375 ## ----------------------------------- ##
12376 _ASBOX
12377      ) | sed "s/^/$as_me: WARNING:     /" >&2
12378     ;;
12379 esac
12380 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12381 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12382 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12383   echo $ECHO_N "(cached) $ECHO_C" >&6
12384 else
12385   eval "$as_ac_Header=\$ac_header_preproc"
12386 fi
12387 ac_res=`eval echo '${'$as_ac_Header'}'`
12388                { echo "$as_me:$LINENO: result: $ac_res" >&5
12389 echo "${ECHO_T}$ac_res" >&6; }
12390
12391 fi
12392 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12393   cat >>confdefs.h <<_ACEOF
12394 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12395 _ACEOF
12396
12397 fi
12398
12399 done
12400
12401
12402
12403 for ac_header in string.h strings.h
12404 do
12405 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
12406 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12407   { echo "$as_me:$LINENO: checking for $ac_header" >&5
12408 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12409 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12410   echo $ECHO_N "(cached) $ECHO_C" >&6
12411 fi
12412 ac_res=`eval echo '${'$as_ac_Header'}'`
12413                { echo "$as_me:$LINENO: result: $ac_res" >&5
12414 echo "${ECHO_T}$ac_res" >&6; }
12415 else
12416   # Is the header compilable?
12417 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
12418 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
12419 cat >conftest.$ac_ext <<_ACEOF
12420 /* confdefs.h.  */
12421 _ACEOF
12422 cat confdefs.h >>conftest.$ac_ext
12423 cat >>conftest.$ac_ext <<_ACEOF
12424 /* end confdefs.h.  */
12425 $ac_includes_default
12426 #include <$ac_header>
12427 _ACEOF
12428 rm -f conftest.$ac_objext
12429 if { (ac_try="$ac_compile"
12430 case "(($ac_try" in
12431   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12432   *) ac_try_echo=$ac_try;;
12433 esac
12434 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12435   (eval "$ac_compile") 2>conftest.er1
12436   ac_status=$?
12437   grep -v '^ *+' conftest.er1 >conftest.err
12438   rm -f conftest.er1
12439   cat conftest.err >&5
12440   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12441   (exit $ac_status); } &&
12442          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12443   { (case "(($ac_try" in
12444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12445   *) ac_try_echo=$ac_try;;
12446 esac
12447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12448   (eval "$ac_try") 2>&5
12449   ac_status=$?
12450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12451   (exit $ac_status); }; } &&
12452          { ac_try='test -s conftest.$ac_objext'
12453   { (case "(($ac_try" in
12454   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12455   *) ac_try_echo=$ac_try;;
12456 esac
12457 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12458   (eval "$ac_try") 2>&5
12459   ac_status=$?
12460   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12461   (exit $ac_status); }; }; then
12462   ac_header_compiler=yes
12463 else
12464   echo "$as_me: failed program was:" >&5
12465 sed 's/^/| /' conftest.$ac_ext >&5
12466
12467         ac_header_compiler=no
12468 fi
12469
12470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12471 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
12472 echo "${ECHO_T}$ac_header_compiler" >&6; }
12473
12474 # Is the header present?
12475 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
12476 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
12477 cat >conftest.$ac_ext <<_ACEOF
12478 /* confdefs.h.  */
12479 _ACEOF
12480 cat confdefs.h >>conftest.$ac_ext
12481 cat >>conftest.$ac_ext <<_ACEOF
12482 /* end confdefs.h.  */
12483 #include <$ac_header>
12484 _ACEOF
12485 if { (ac_try="$ac_cpp conftest.$ac_ext"
12486 case "(($ac_try" in
12487   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12488   *) ac_try_echo=$ac_try;;
12489 esac
12490 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12491   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
12492   ac_status=$?
12493   grep -v '^ *+' conftest.er1 >conftest.err
12494   rm -f conftest.er1
12495   cat conftest.err >&5
12496   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12497   (exit $ac_status); } >/dev/null; then
12498   if test -s conftest.err; then
12499     ac_cpp_err=$ac_c_preproc_warn_flag
12500     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
12501   else
12502     ac_cpp_err=
12503   fi
12504 else
12505   ac_cpp_err=yes
12506 fi
12507 if test -z "$ac_cpp_err"; then
12508   ac_header_preproc=yes
12509 else
12510   echo "$as_me: failed program was:" >&5
12511 sed 's/^/| /' conftest.$ac_ext >&5
12512
12513   ac_header_preproc=no
12514 fi
12515
12516 rm -f conftest.err conftest.$ac_ext
12517 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
12518 echo "${ECHO_T}$ac_header_preproc" >&6; }
12519
12520 # So?  What about this header?
12521 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
12522   yes:no: )
12523     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
12524 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
12525     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
12526 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
12527     ac_header_preproc=yes
12528     ;;
12529   no:yes:* )
12530     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
12531 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
12532     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
12533 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
12534     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
12535 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
12536     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
12537 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
12538     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
12539 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
12540     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
12541 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
12542     ( cat <<\_ASBOX
12543 ## ----------------------------------- ##
12544 ## Report this to llvmbugs@cs.uiuc.edu ##
12545 ## ----------------------------------- ##
12546 _ASBOX
12547      ) | sed "s/^/$as_me: WARNING:     /" >&2
12548     ;;
12549 esac
12550 { echo "$as_me:$LINENO: checking for $ac_header" >&5
12551 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
12552 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
12553   echo $ECHO_N "(cached) $ECHO_C" >&6
12554 else
12555   eval "$as_ac_Header=\$ac_header_preproc"
12556 fi
12557 ac_res=`eval echo '${'$as_ac_Header'}'`
12558                { echo "$as_me:$LINENO: result: $ac_res" >&5
12559 echo "${ECHO_T}$ac_res" >&6; }
12560
12561 fi
12562 if test `eval echo '${'$as_ac_Header'}'` = yes; then
12563   cat >>confdefs.h <<_ACEOF
12564 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
12565 _ACEOF
12566  break
12567 fi
12568
12569 done
12570
12571
12572
12573
12574 for ac_func in strchr index
12575 do
12576 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12577 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12578 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12579 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12580   echo $ECHO_N "(cached) $ECHO_C" >&6
12581 else
12582   cat >conftest.$ac_ext <<_ACEOF
12583 /* confdefs.h.  */
12584 _ACEOF
12585 cat confdefs.h >>conftest.$ac_ext
12586 cat >>conftest.$ac_ext <<_ACEOF
12587 /* end confdefs.h.  */
12588 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12589    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12590 #define $ac_func innocuous_$ac_func
12591
12592 /* System header to define __stub macros and hopefully few prototypes,
12593     which can conflict with char $ac_func (); below.
12594     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12595     <limits.h> exists even on freestanding compilers.  */
12596
12597 #ifdef __STDC__
12598 # include <limits.h>
12599 #else
12600 # include <assert.h>
12601 #endif
12602
12603 #undef $ac_func
12604
12605 /* Override any GCC internal prototype to avoid an error.
12606    Use char because int might match the return type of a GCC
12607    builtin and then its argument prototype would still apply.  */
12608 #ifdef __cplusplus
12609 extern "C"
12610 #endif
12611 char $ac_func ();
12612 /* The GNU C library defines this for functions which it implements
12613     to always fail with ENOSYS.  Some functions are actually named
12614     something starting with __ and the normal name is an alias.  */
12615 #if defined __stub_$ac_func || defined __stub___$ac_func
12616 choke me
12617 #endif
12618
12619 int
12620 main ()
12621 {
12622 return $ac_func ();
12623   ;
12624   return 0;
12625 }
12626 _ACEOF
12627 rm -f conftest.$ac_objext conftest$ac_exeext
12628 if { (ac_try="$ac_link"
12629 case "(($ac_try" in
12630   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12631   *) ac_try_echo=$ac_try;;
12632 esac
12633 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12634   (eval "$ac_link") 2>conftest.er1
12635   ac_status=$?
12636   grep -v '^ *+' conftest.er1 >conftest.err
12637   rm -f conftest.er1
12638   cat conftest.err >&5
12639   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12640   (exit $ac_status); } &&
12641          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12642   { (case "(($ac_try" in
12643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12644   *) ac_try_echo=$ac_try;;
12645 esac
12646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12647   (eval "$ac_try") 2>&5
12648   ac_status=$?
12649   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12650   (exit $ac_status); }; } &&
12651          { ac_try='test -s conftest$ac_exeext'
12652   { (case "(($ac_try" in
12653   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12654   *) ac_try_echo=$ac_try;;
12655 esac
12656 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12657   (eval "$ac_try") 2>&5
12658   ac_status=$?
12659   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12660   (exit $ac_status); }; }; then
12661   eval "$as_ac_var=yes"
12662 else
12663   echo "$as_me: failed program was:" >&5
12664 sed 's/^/| /' conftest.$ac_ext >&5
12665
12666         eval "$as_ac_var=no"
12667 fi
12668
12669 rm -f core conftest.err conftest.$ac_objext \
12670       conftest$ac_exeext conftest.$ac_ext
12671 fi
12672 ac_res=`eval echo '${'$as_ac_var'}'`
12673                { echo "$as_me:$LINENO: result: $ac_res" >&5
12674 echo "${ECHO_T}$ac_res" >&6; }
12675 if test `eval echo '${'$as_ac_var'}'` = yes; then
12676   cat >>confdefs.h <<_ACEOF
12677 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12678 _ACEOF
12679  break
12680 fi
12681 done
12682
12683
12684
12685 for ac_func in strrchr rindex
12686 do
12687 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12688 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12689 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12690 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12691   echo $ECHO_N "(cached) $ECHO_C" >&6
12692 else
12693   cat >conftest.$ac_ext <<_ACEOF
12694 /* confdefs.h.  */
12695 _ACEOF
12696 cat confdefs.h >>conftest.$ac_ext
12697 cat >>conftest.$ac_ext <<_ACEOF
12698 /* end confdefs.h.  */
12699 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12700    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12701 #define $ac_func innocuous_$ac_func
12702
12703 /* System header to define __stub macros and hopefully few prototypes,
12704     which can conflict with char $ac_func (); below.
12705     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12706     <limits.h> exists even on freestanding compilers.  */
12707
12708 #ifdef __STDC__
12709 # include <limits.h>
12710 #else
12711 # include <assert.h>
12712 #endif
12713
12714 #undef $ac_func
12715
12716 /* Override any GCC internal prototype to avoid an error.
12717    Use char because int might match the return type of a GCC
12718    builtin and then its argument prototype would still apply.  */
12719 #ifdef __cplusplus
12720 extern "C"
12721 #endif
12722 char $ac_func ();
12723 /* The GNU C library defines this for functions which it implements
12724     to always fail with ENOSYS.  Some functions are actually named
12725     something starting with __ and the normal name is an alias.  */
12726 #if defined __stub_$ac_func || defined __stub___$ac_func
12727 choke me
12728 #endif
12729
12730 int
12731 main ()
12732 {
12733 return $ac_func ();
12734   ;
12735   return 0;
12736 }
12737 _ACEOF
12738 rm -f conftest.$ac_objext conftest$ac_exeext
12739 if { (ac_try="$ac_link"
12740 case "(($ac_try" in
12741   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12742   *) ac_try_echo=$ac_try;;
12743 esac
12744 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12745   (eval "$ac_link") 2>conftest.er1
12746   ac_status=$?
12747   grep -v '^ *+' conftest.er1 >conftest.err
12748   rm -f conftest.er1
12749   cat conftest.err >&5
12750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12751   (exit $ac_status); } &&
12752          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12753   { (case "(($ac_try" in
12754   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12755   *) ac_try_echo=$ac_try;;
12756 esac
12757 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12758   (eval "$ac_try") 2>&5
12759   ac_status=$?
12760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12761   (exit $ac_status); }; } &&
12762          { ac_try='test -s conftest$ac_exeext'
12763   { (case "(($ac_try" in
12764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12765   *) ac_try_echo=$ac_try;;
12766 esac
12767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12768   (eval "$ac_try") 2>&5
12769   ac_status=$?
12770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12771   (exit $ac_status); }; }; then
12772   eval "$as_ac_var=yes"
12773 else
12774   echo "$as_me: failed program was:" >&5
12775 sed 's/^/| /' conftest.$ac_ext >&5
12776
12777         eval "$as_ac_var=no"
12778 fi
12779
12780 rm -f core conftest.err conftest.$ac_objext \
12781       conftest$ac_exeext conftest.$ac_ext
12782 fi
12783 ac_res=`eval echo '${'$as_ac_var'}'`
12784                { echo "$as_me:$LINENO: result: $ac_res" >&5
12785 echo "${ECHO_T}$ac_res" >&6; }
12786 if test `eval echo '${'$as_ac_var'}'` = yes; then
12787   cat >>confdefs.h <<_ACEOF
12788 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12789 _ACEOF
12790  break
12791 fi
12792 done
12793
12794
12795
12796 for ac_func in memcpy bcopy
12797 do
12798 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12799 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12800 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12801 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12802   echo $ECHO_N "(cached) $ECHO_C" >&6
12803 else
12804   cat >conftest.$ac_ext <<_ACEOF
12805 /* confdefs.h.  */
12806 _ACEOF
12807 cat confdefs.h >>conftest.$ac_ext
12808 cat >>conftest.$ac_ext <<_ACEOF
12809 /* end confdefs.h.  */
12810 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12811    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12812 #define $ac_func innocuous_$ac_func
12813
12814 /* System header to define __stub macros and hopefully few prototypes,
12815     which can conflict with char $ac_func (); below.
12816     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12817     <limits.h> exists even on freestanding compilers.  */
12818
12819 #ifdef __STDC__
12820 # include <limits.h>
12821 #else
12822 # include <assert.h>
12823 #endif
12824
12825 #undef $ac_func
12826
12827 /* Override any GCC internal prototype to avoid an error.
12828    Use char because int might match the return type of a GCC
12829    builtin and then its argument prototype would still apply.  */
12830 #ifdef __cplusplus
12831 extern "C"
12832 #endif
12833 char $ac_func ();
12834 /* The GNU C library defines this for functions which it implements
12835     to always fail with ENOSYS.  Some functions are actually named
12836     something starting with __ and the normal name is an alias.  */
12837 #if defined __stub_$ac_func || defined __stub___$ac_func
12838 choke me
12839 #endif
12840
12841 int
12842 main ()
12843 {
12844 return $ac_func ();
12845   ;
12846   return 0;
12847 }
12848 _ACEOF
12849 rm -f conftest.$ac_objext conftest$ac_exeext
12850 if { (ac_try="$ac_link"
12851 case "(($ac_try" in
12852   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12853   *) ac_try_echo=$ac_try;;
12854 esac
12855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12856   (eval "$ac_link") 2>conftest.er1
12857   ac_status=$?
12858   grep -v '^ *+' conftest.er1 >conftest.err
12859   rm -f conftest.er1
12860   cat conftest.err >&5
12861   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12862   (exit $ac_status); } &&
12863          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12864   { (case "(($ac_try" in
12865   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12866   *) ac_try_echo=$ac_try;;
12867 esac
12868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12869   (eval "$ac_try") 2>&5
12870   ac_status=$?
12871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12872   (exit $ac_status); }; } &&
12873          { ac_try='test -s conftest$ac_exeext'
12874   { (case "(($ac_try" in
12875   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12876   *) ac_try_echo=$ac_try;;
12877 esac
12878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12879   (eval "$ac_try") 2>&5
12880   ac_status=$?
12881   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12882   (exit $ac_status); }; }; then
12883   eval "$as_ac_var=yes"
12884 else
12885   echo "$as_me: failed program was:" >&5
12886 sed 's/^/| /' conftest.$ac_ext >&5
12887
12888         eval "$as_ac_var=no"
12889 fi
12890
12891 rm -f core conftest.err conftest.$ac_objext \
12892       conftest$ac_exeext conftest.$ac_ext
12893 fi
12894 ac_res=`eval echo '${'$as_ac_var'}'`
12895                { echo "$as_me:$LINENO: result: $ac_res" >&5
12896 echo "${ECHO_T}$ac_res" >&6; }
12897 if test `eval echo '${'$as_ac_var'}'` = yes; then
12898   cat >>confdefs.h <<_ACEOF
12899 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
12900 _ACEOF
12901  break
12902 fi
12903 done
12904
12905
12906
12907 for ac_func in memmove strcmp
12908 do
12909 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
12910 { echo "$as_me:$LINENO: checking for $ac_func" >&5
12911 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
12912 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
12913   echo $ECHO_N "(cached) $ECHO_C" >&6
12914 else
12915   cat >conftest.$ac_ext <<_ACEOF
12916 /* confdefs.h.  */
12917 _ACEOF
12918 cat confdefs.h >>conftest.$ac_ext
12919 cat >>conftest.$ac_ext <<_ACEOF
12920 /* end confdefs.h.  */
12921 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
12922    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
12923 #define $ac_func innocuous_$ac_func
12924
12925 /* System header to define __stub macros and hopefully few prototypes,
12926     which can conflict with char $ac_func (); below.
12927     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
12928     <limits.h> exists even on freestanding compilers.  */
12929
12930 #ifdef __STDC__
12931 # include <limits.h>
12932 #else
12933 # include <assert.h>
12934 #endif
12935
12936 #undef $ac_func
12937
12938 /* Override any GCC internal prototype to avoid an error.
12939    Use char because int might match the return type of a GCC
12940    builtin and then its argument prototype would still apply.  */
12941 #ifdef __cplusplus
12942 extern "C"
12943 #endif
12944 char $ac_func ();
12945 /* The GNU C library defines this for functions which it implements
12946     to always fail with ENOSYS.  Some functions are actually named
12947     something starting with __ and the normal name is an alias.  */
12948 #if defined __stub_$ac_func || defined __stub___$ac_func
12949 choke me
12950 #endif
12951
12952 int
12953 main ()
12954 {
12955 return $ac_func ();
12956   ;
12957   return 0;
12958 }
12959 _ACEOF
12960 rm -f conftest.$ac_objext conftest$ac_exeext
12961 if { (ac_try="$ac_link"
12962 case "(($ac_try" in
12963   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12964   *) ac_try_echo=$ac_try;;
12965 esac
12966 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12967   (eval "$ac_link") 2>conftest.er1
12968   ac_status=$?
12969   grep -v '^ *+' conftest.er1 >conftest.err
12970   rm -f conftest.er1
12971   cat conftest.err >&5
12972   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12973   (exit $ac_status); } &&
12974          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
12975   { (case "(($ac_try" in
12976   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12977   *) ac_try_echo=$ac_try;;
12978 esac
12979 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12980   (eval "$ac_try") 2>&5
12981   ac_status=$?
12982   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12983   (exit $ac_status); }; } &&
12984          { ac_try='test -s conftest$ac_exeext'
12985   { (case "(($ac_try" in
12986   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
12987   *) ac_try_echo=$ac_try;;
12988 esac
12989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
12990   (eval "$ac_try") 2>&5
12991   ac_status=$?
12992   echo "$as_me:$LINENO: \$? = $ac_status" >&5
12993   (exit $ac_status); }; }; then
12994   eval "$as_ac_var=yes"
12995 else
12996   echo "$as_me: failed program was:" >&5
12997 sed 's/^/| /' conftest.$ac_ext >&5
12998
12999         eval "$as_ac_var=no"
13000 fi
13001
13002 rm -f core conftest.err conftest.$ac_objext \
13003       conftest$ac_exeext conftest.$ac_ext
13004 fi
13005 ac_res=`eval echo '${'$as_ac_var'}'`
13006                { echo "$as_me:$LINENO: result: $ac_res" >&5
13007 echo "${ECHO_T}$ac_res" >&6; }
13008 if test `eval echo '${'$as_ac_var'}'` = yes; then
13009   cat >>confdefs.h <<_ACEOF
13010 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13011 _ACEOF
13012
13013 fi
13014 done
13015
13016
13017
13018
13019 for ac_func in closedir opendir readdir
13020 do
13021 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
13022 { echo "$as_me:$LINENO: checking for $ac_func" >&5
13023 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
13024 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
13025   echo $ECHO_N "(cached) $ECHO_C" >&6
13026 else
13027   cat >conftest.$ac_ext <<_ACEOF
13028 /* confdefs.h.  */
13029 _ACEOF
13030 cat confdefs.h >>conftest.$ac_ext
13031 cat >>conftest.$ac_ext <<_ACEOF
13032 /* end confdefs.h.  */
13033 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
13034    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
13035 #define $ac_func innocuous_$ac_func
13036
13037 /* System header to define __stub macros and hopefully few prototypes,
13038     which can conflict with char $ac_func (); below.
13039     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
13040     <limits.h> exists even on freestanding compilers.  */
13041
13042 #ifdef __STDC__
13043 # include <limits.h>
13044 #else
13045 # include <assert.h>
13046 #endif
13047
13048 #undef $ac_func
13049
13050 /* Override any GCC internal prototype to avoid an error.
13051    Use char because int might match the return type of a GCC
13052    builtin and then its argument prototype would still apply.  */
13053 #ifdef __cplusplus
13054 extern "C"
13055 #endif
13056 char $ac_func ();
13057 /* The GNU C library defines this for functions which it implements
13058     to always fail with ENOSYS.  Some functions are actually named
13059     something starting with __ and the normal name is an alias.  */
13060 #if defined __stub_$ac_func || defined __stub___$ac_func
13061 choke me
13062 #endif
13063
13064 int
13065 main ()
13066 {
13067 return $ac_func ();
13068   ;
13069   return 0;
13070 }
13071 _ACEOF
13072 rm -f conftest.$ac_objext conftest$ac_exeext
13073 if { (ac_try="$ac_link"
13074 case "(($ac_try" in
13075   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13076   *) ac_try_echo=$ac_try;;
13077 esac
13078 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13079   (eval "$ac_link") 2>conftest.er1
13080   ac_status=$?
13081   grep -v '^ *+' conftest.er1 >conftest.err
13082   rm -f conftest.er1
13083   cat conftest.err >&5
13084   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13085   (exit $ac_status); } &&
13086          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13087   { (case "(($ac_try" in
13088   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13089   *) ac_try_echo=$ac_try;;
13090 esac
13091 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13092   (eval "$ac_try") 2>&5
13093   ac_status=$?
13094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13095   (exit $ac_status); }; } &&
13096          { ac_try='test -s conftest$ac_exeext'
13097   { (case "(($ac_try" in
13098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13099   *) ac_try_echo=$ac_try;;
13100 esac
13101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13102   (eval "$ac_try") 2>&5
13103   ac_status=$?
13104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13105   (exit $ac_status); }; }; then
13106   eval "$as_ac_var=yes"
13107 else
13108   echo "$as_me: failed program was:" >&5
13109 sed 's/^/| /' conftest.$ac_ext >&5
13110
13111         eval "$as_ac_var=no"
13112 fi
13113
13114 rm -f core conftest.err conftest.$ac_objext \
13115       conftest$ac_exeext conftest.$ac_ext
13116 fi
13117 ac_res=`eval echo '${'$as_ac_var'}'`
13118                { echo "$as_me:$LINENO: result: $ac_res" >&5
13119 echo "${ECHO_T}$ac_res" >&6; }
13120 if test `eval echo '${'$as_ac_var'}'` = yes; then
13121   cat >>confdefs.h <<_ACEOF
13122 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
13123 _ACEOF
13124
13125 fi
13126 done
13127
13128
13129
13130 if test "$WITH_LLVMGCCDIR" = "default" ; then
13131   LLVMGCC="llvm-gcc${EXEEXT}"
13132   LLVMGXX="llvm-g++${EXEEXT}"
13133   LLVMGCCCOMMAND="$LLVMGCC"
13134   LLVMGXXCOMMAND="$LLVMGXX"
13135   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13136
13137   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13138
13139   # Extract the first word of "$LLVMGCC", so it can be a program name with args.
13140 set dummy $LLVMGCC; ac_word=$2
13141 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13142 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13143 if test "${ac_cv_path_LLVMGCC+set}" = set; then
13144   echo $ECHO_N "(cached) $ECHO_C" >&6
13145 else
13146   case $LLVMGCC in
13147   [\\/]* | ?:[\\/]*)
13148   ac_cv_path_LLVMGCC="$LLVMGCC" # Let the user override the test with a path.
13149   ;;
13150   *)
13151   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13152 for as_dir in $PATH
13153 do
13154   IFS=$as_save_IFS
13155   test -z "$as_dir" && as_dir=.
13156   for ac_exec_ext in '' $ac_executable_extensions; do
13157   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13158     ac_cv_path_LLVMGCC="$as_dir/$ac_word$ac_exec_ext"
13159     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13160     break 2
13161   fi
13162 done
13163 done
13164 IFS=$as_save_IFS
13165
13166   ;;
13167 esac
13168 fi
13169 LLVMGCC=$ac_cv_path_LLVMGCC
13170 if test -n "$LLVMGCC"; then
13171   { echo "$as_me:$LINENO: result: $LLVMGCC" >&5
13172 echo "${ECHO_T}$LLVMGCC" >&6; }
13173 else
13174   { echo "$as_me:$LINENO: result: no" >&5
13175 echo "${ECHO_T}no" >&6; }
13176 fi
13177
13178
13179   # Extract the first word of "$LLVMGXX", so it can be a program name with args.
13180 set dummy $LLVMGXX; ac_word=$2
13181 { echo "$as_me:$LINENO: checking for $ac_word" >&5
13182 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
13183 if test "${ac_cv_path_LLVMGXX+set}" = set; then
13184   echo $ECHO_N "(cached) $ECHO_C" >&6
13185 else
13186   case $LLVMGXX in
13187   [\\/]* | ?:[\\/]*)
13188   ac_cv_path_LLVMGXX="$LLVMGXX" # Let the user override the test with a path.
13189   ;;
13190   *)
13191   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13192 for as_dir in $PATH
13193 do
13194   IFS=$as_save_IFS
13195   test -z "$as_dir" && as_dir=.
13196   for ac_exec_ext in '' $ac_executable_extensions; do
13197   if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
13198     ac_cv_path_LLVMGXX="$as_dir/$ac_word$ac_exec_ext"
13199     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
13200     break 2
13201   fi
13202 done
13203 done
13204 IFS=$as_save_IFS
13205
13206   ;;
13207 esac
13208 fi
13209 LLVMGXX=$ac_cv_path_LLVMGXX
13210 if test -n "$LLVMGXX"; then
13211   { echo "$as_me:$LINENO: result: $LLVMGXX" >&5
13212 echo "${ECHO_T}$LLVMGXX" >&6; }
13213 else
13214   { echo "$as_me:$LINENO: result: no" >&5
13215 echo "${ECHO_T}no" >&6; }
13216 fi
13217
13218
13219 else
13220   if test -z "$LLVMGCC"; then
13221     LLVMGCC="$WITH_LLVMGCCDIR/bin/llvm-gcc${EXEEXT}"
13222     LLVMGCCCOMMAND="$LLVMGCC"
13223   fi
13224   if test -z "$LLVMGXX"; then
13225     LLVMGXX="$WITH_LLVMGCCDIR/bin/llvm-g++${EXEEXT}"
13226     LLVMGXXCOMMAND="$LLVMGXX"
13227   fi
13228
13229   LLVMGCC=$LLVMGCC
13230
13231   LLVMGXX=$LLVMGXX
13232
13233   LLVMGCCCOMMAND=$LLVMGCCCOMMAND
13234
13235   LLVMGXXCOMMAND=$LLVMGXXCOMMAND
13236
13237 fi
13238
13239
13240 # Check whether --with-llvmcc was given.
13241 if test "${with_llvmcc+set}" = set; then
13242   withval=$with_llvmcc;
13243 else
13244   with_llvmcc=check
13245 fi
13246
13247 { echo "$as_me:$LINENO: checking LLVM capable compiler" >&5
13248 echo $ECHO_N "checking LLVM capable compiler... $ECHO_C" >&6; }
13249 if test "$with_llvmcc" != "check"; then
13250    if (test "$with_llvmcc" != "llvm-gcc" &&
13251        test "$with_llvmcc" != "clang" &&
13252        test "$with_llvmcc" != "none"); then
13253       { { echo "$as_me:$LINENO: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&5
13254 echo "$as_me: error: invalid value for --with-llvmcc, expected 'llvm-gcc', 'clang', or 'none'." >&2;}
13255    { (exit 1); exit 1; }; }
13256    fi
13257    WITH_LLVMCC="$with_llvmcc"
13258 elif test -n "$LLVMGCC"; then
13259    WITH_LLVMCC=llvm-gcc
13260 elif test -n "$WITH_CLANGPATH" || test "$WITH_BUILT_CLANG" -ne "0"; then
13261    WITH_LLVMCC=clang
13262 else
13263    WITH_LLVMCC=none
13264 fi
13265 { echo "$as_me:$LINENO: result: $WITH_LLVMCC" >&5
13266 echo "${ECHO_T}$WITH_LLVMCC" >&6; }
13267 LLVMCC_OPTION=$WITH_LLVMCC
13268
13269
13270 { echo "$as_me:$LINENO: checking tool compatibility" >&5
13271 echo $ECHO_N "checking tool compatibility... $ECHO_C" >&6; }
13272
13273 ICC=no
13274 IXX=no
13275 case $CC in
13276   icc*|icpc*)
13277     ICC=yes
13278     IXX=yes
13279     ;;
13280    *)
13281     ;;
13282 esac
13283
13284 if test "$GCC" != "yes" && test "$ICC" != "yes"
13285 then
13286   { { echo "$as_me:$LINENO: error: gcc|icc required but not found" >&5
13287 echo "$as_me: error: gcc|icc required but not found" >&2;}
13288    { (exit 1); exit 1; }; }
13289 fi
13290
13291 if test "$GXX" != "yes" && test "$IXX" != "yes"
13292 then
13293   { { echo "$as_me:$LINENO: error: g++|icc required but not found" >&5
13294 echo "$as_me: error: g++|icc required but not found" >&2;}
13295    { (exit 1); exit 1; }; }
13296 fi
13297
13298 if test "$GCC" = "yes"
13299 then
13300   cat >conftest.$ac_ext <<_ACEOF
13301 #if !defined(__GNUC__) || __GNUC__ < 3
13302 #error Unsupported GCC version
13303 #endif
13304
13305 _ACEOF
13306 rm -f conftest.$ac_objext
13307 if { (ac_try="$ac_compile"
13308 case "(($ac_try" in
13309   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13310   *) ac_try_echo=$ac_try;;
13311 esac
13312 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13313   (eval "$ac_compile") 2>conftest.er1
13314   ac_status=$?
13315   grep -v '^ *+' conftest.er1 >conftest.err
13316   rm -f conftest.er1
13317   cat conftest.err >&5
13318   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13319   (exit $ac_status); } &&
13320          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13321   { (case "(($ac_try" in
13322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13323   *) ac_try_echo=$ac_try;;
13324 esac
13325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13326   (eval "$ac_try") 2>&5
13327   ac_status=$?
13328   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13329   (exit $ac_status); }; } &&
13330          { ac_try='test -s conftest.$ac_objext'
13331   { (case "(($ac_try" in
13332   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13333   *) ac_try_echo=$ac_try;;
13334 esac
13335 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13336   (eval "$ac_try") 2>&5
13337   ac_status=$?
13338   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13339   (exit $ac_status); }; }; then
13340   :
13341 else
13342   echo "$as_me: failed program was:" >&5
13343 sed 's/^/| /' conftest.$ac_ext >&5
13344
13345         { { echo "$as_me:$LINENO: error: gcc 3.x required, but you have a lower version" >&5
13346 echo "$as_me: error: gcc 3.x required, but you have a lower version" >&2;}
13347    { (exit 1); exit 1; }; }
13348 fi
13349
13350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13351 fi
13352
13353 if test -z "$llvm_cv_gnu_make_command"
13354 then
13355   { { echo "$as_me:$LINENO: error: GNU Make required but not found" >&5
13356 echo "$as_me: error: GNU Make required but not found" >&2;}
13357    { (exit 1); exit 1; }; }
13358 fi
13359
13360 { echo "$as_me:$LINENO: result: ok" >&5
13361 echo "${ECHO_T}ok" >&6; }
13362
13363 { echo "$as_me:$LINENO: checking optional compiler flags" >&5
13364 echo $ECHO_N "checking optional compiler flags... $ECHO_C" >&6; }
13365 NO_VARIADIC_MACROS=`$CXX -Wno-variadic-macros -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-variadic-macros`
13366
13367 NO_MISSING_FIELD_INITIALIZERS=`$CXX -Wno-missing-field-initializers -fsyntax-only -xc /dev/null 2>/dev/null && echo -Wno-missing-field-initializers`
13368
13369 { echo "$as_me:$LINENO: result: $NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&5
13370 echo "${ECHO_T}$NO_VARIADIC_MACROS $NO_MISSING_FIELD_INITIALIZERS" >&6; }
13371
13372
13373
13374 { echo "$as_me:$LINENO: checking for sin in -lm" >&5
13375 echo $ECHO_N "checking for sin in -lm... $ECHO_C" >&6; }
13376 if test "${ac_cv_lib_m_sin+set}" = set; then
13377   echo $ECHO_N "(cached) $ECHO_C" >&6
13378 else
13379   ac_check_lib_save_LIBS=$LIBS
13380 LIBS="-lm  $LIBS"
13381 cat >conftest.$ac_ext <<_ACEOF
13382 /* confdefs.h.  */
13383 _ACEOF
13384 cat confdefs.h >>conftest.$ac_ext
13385 cat >>conftest.$ac_ext <<_ACEOF
13386 /* end confdefs.h.  */
13387
13388 /* Override any GCC internal prototype to avoid an error.
13389    Use char because int might match the return type of a GCC
13390    builtin and then its argument prototype would still apply.  */
13391 #ifdef __cplusplus
13392 extern "C"
13393 #endif
13394 char sin ();
13395 int
13396 main ()
13397 {
13398 return sin ();
13399   ;
13400   return 0;
13401 }
13402 _ACEOF
13403 rm -f conftest.$ac_objext conftest$ac_exeext
13404 if { (ac_try="$ac_link"
13405 case "(($ac_try" in
13406   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13407   *) ac_try_echo=$ac_try;;
13408 esac
13409 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13410   (eval "$ac_link") 2>conftest.er1
13411   ac_status=$?
13412   grep -v '^ *+' conftest.er1 >conftest.err
13413   rm -f conftest.er1
13414   cat conftest.err >&5
13415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13416   (exit $ac_status); } &&
13417          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13418   { (case "(($ac_try" in
13419   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13420   *) ac_try_echo=$ac_try;;
13421 esac
13422 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13423   (eval "$ac_try") 2>&5
13424   ac_status=$?
13425   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13426   (exit $ac_status); }; } &&
13427          { ac_try='test -s conftest$ac_exeext'
13428   { (case "(($ac_try" in
13429   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13430   *) ac_try_echo=$ac_try;;
13431 esac
13432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13433   (eval "$ac_try") 2>&5
13434   ac_status=$?
13435   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13436   (exit $ac_status); }; }; then
13437   ac_cv_lib_m_sin=yes
13438 else
13439   echo "$as_me: failed program was:" >&5
13440 sed 's/^/| /' conftest.$ac_ext >&5
13441
13442         ac_cv_lib_m_sin=no
13443 fi
13444
13445 rm -f core conftest.err conftest.$ac_objext \
13446       conftest$ac_exeext conftest.$ac_ext
13447 LIBS=$ac_check_lib_save_LIBS
13448 fi
13449 { echo "$as_me:$LINENO: result: $ac_cv_lib_m_sin" >&5
13450 echo "${ECHO_T}$ac_cv_lib_m_sin" >&6; }
13451 if test $ac_cv_lib_m_sin = yes; then
13452   cat >>confdefs.h <<_ACEOF
13453 #define HAVE_LIBM 1
13454 _ACEOF
13455
13456   LIBS="-lm $LIBS"
13457
13458 fi
13459
13460 if test "$llvm_cv_os_type" = "MingW" ; then
13461
13462 { echo "$as_me:$LINENO: checking for main in -limagehlp" >&5
13463 echo $ECHO_N "checking for main in -limagehlp... $ECHO_C" >&6; }
13464 if test "${ac_cv_lib_imagehlp_main+set}" = set; then
13465   echo $ECHO_N "(cached) $ECHO_C" >&6
13466 else
13467   ac_check_lib_save_LIBS=$LIBS
13468 LIBS="-limagehlp  $LIBS"
13469 cat >conftest.$ac_ext <<_ACEOF
13470 /* confdefs.h.  */
13471 _ACEOF
13472 cat confdefs.h >>conftest.$ac_ext
13473 cat >>conftest.$ac_ext <<_ACEOF
13474 /* end confdefs.h.  */
13475
13476
13477 int
13478 main ()
13479 {
13480 return main ();
13481   ;
13482   return 0;
13483 }
13484 _ACEOF
13485 rm -f conftest.$ac_objext conftest$ac_exeext
13486 if { (ac_try="$ac_link"
13487 case "(($ac_try" in
13488   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13489   *) ac_try_echo=$ac_try;;
13490 esac
13491 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13492   (eval "$ac_link") 2>conftest.er1
13493   ac_status=$?
13494   grep -v '^ *+' conftest.er1 >conftest.err
13495   rm -f conftest.er1
13496   cat conftest.err >&5
13497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13498   (exit $ac_status); } &&
13499          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13500   { (case "(($ac_try" in
13501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13502   *) ac_try_echo=$ac_try;;
13503 esac
13504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13505   (eval "$ac_try") 2>&5
13506   ac_status=$?
13507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13508   (exit $ac_status); }; } &&
13509          { ac_try='test -s conftest$ac_exeext'
13510   { (case "(($ac_try" in
13511   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13512   *) ac_try_echo=$ac_try;;
13513 esac
13514 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13515   (eval "$ac_try") 2>&5
13516   ac_status=$?
13517   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13518   (exit $ac_status); }; }; then
13519   ac_cv_lib_imagehlp_main=yes
13520 else
13521   echo "$as_me: failed program was:" >&5
13522 sed 's/^/| /' conftest.$ac_ext >&5
13523
13524         ac_cv_lib_imagehlp_main=no
13525 fi
13526
13527 rm -f core conftest.err conftest.$ac_objext \
13528       conftest$ac_exeext conftest.$ac_ext
13529 LIBS=$ac_check_lib_save_LIBS
13530 fi
13531 { echo "$as_me:$LINENO: result: $ac_cv_lib_imagehlp_main" >&5
13532 echo "${ECHO_T}$ac_cv_lib_imagehlp_main" >&6; }
13533 if test $ac_cv_lib_imagehlp_main = yes; then
13534   cat >>confdefs.h <<_ACEOF
13535 #define HAVE_LIBIMAGEHLP 1
13536 _ACEOF
13537
13538   LIBS="-limagehlp $LIBS"
13539
13540 fi
13541
13542
13543 { echo "$as_me:$LINENO: checking for main in -lpsapi" >&5
13544 echo $ECHO_N "checking for main in -lpsapi... $ECHO_C" >&6; }
13545 if test "${ac_cv_lib_psapi_main+set}" = set; then
13546   echo $ECHO_N "(cached) $ECHO_C" >&6
13547 else
13548   ac_check_lib_save_LIBS=$LIBS
13549 LIBS="-lpsapi  $LIBS"
13550 cat >conftest.$ac_ext <<_ACEOF
13551 /* confdefs.h.  */
13552 _ACEOF
13553 cat confdefs.h >>conftest.$ac_ext
13554 cat >>conftest.$ac_ext <<_ACEOF
13555 /* end confdefs.h.  */
13556
13557
13558 int
13559 main ()
13560 {
13561 return main ();
13562   ;
13563   return 0;
13564 }
13565 _ACEOF
13566 rm -f conftest.$ac_objext conftest$ac_exeext
13567 if { (ac_try="$ac_link"
13568 case "(($ac_try" in
13569   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13570   *) ac_try_echo=$ac_try;;
13571 esac
13572 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13573   (eval "$ac_link") 2>conftest.er1
13574   ac_status=$?
13575   grep -v '^ *+' conftest.er1 >conftest.err
13576   rm -f conftest.er1
13577   cat conftest.err >&5
13578   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13579   (exit $ac_status); } &&
13580          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13581   { (case "(($ac_try" in
13582   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13583   *) ac_try_echo=$ac_try;;
13584 esac
13585 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13586   (eval "$ac_try") 2>&5
13587   ac_status=$?
13588   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13589   (exit $ac_status); }; } &&
13590          { ac_try='test -s conftest$ac_exeext'
13591   { (case "(($ac_try" in
13592   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13593   *) ac_try_echo=$ac_try;;
13594 esac
13595 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13596   (eval "$ac_try") 2>&5
13597   ac_status=$?
13598   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13599   (exit $ac_status); }; }; then
13600   ac_cv_lib_psapi_main=yes
13601 else
13602   echo "$as_me: failed program was:" >&5
13603 sed 's/^/| /' conftest.$ac_ext >&5
13604
13605         ac_cv_lib_psapi_main=no
13606 fi
13607
13608 rm -f core conftest.err conftest.$ac_objext \
13609       conftest$ac_exeext conftest.$ac_ext
13610 LIBS=$ac_check_lib_save_LIBS
13611 fi
13612 { echo "$as_me:$LINENO: result: $ac_cv_lib_psapi_main" >&5
13613 echo "${ECHO_T}$ac_cv_lib_psapi_main" >&6; }
13614 if test $ac_cv_lib_psapi_main = yes; then
13615   cat >>confdefs.h <<_ACEOF
13616 #define HAVE_LIBPSAPI 1
13617 _ACEOF
13618
13619   LIBS="-lpsapi $LIBS"
13620
13621 fi
13622
13623 fi
13624
13625 { echo "$as_me:$LINENO: checking for library containing dlopen" >&5
13626 echo $ECHO_N "checking for library containing dlopen... $ECHO_C" >&6; }
13627 if test "${ac_cv_search_dlopen+set}" = set; then
13628   echo $ECHO_N "(cached) $ECHO_C" >&6
13629 else
13630   ac_func_search_save_LIBS=$LIBS
13631 cat >conftest.$ac_ext <<_ACEOF
13632 /* confdefs.h.  */
13633 _ACEOF
13634 cat confdefs.h >>conftest.$ac_ext
13635 cat >>conftest.$ac_ext <<_ACEOF
13636 /* end confdefs.h.  */
13637
13638 /* Override any GCC internal prototype to avoid an error.
13639    Use char because int might match the return type of a GCC
13640    builtin and then its argument prototype would still apply.  */
13641 #ifdef __cplusplus
13642 extern "C"
13643 #endif
13644 char dlopen ();
13645 int
13646 main ()
13647 {
13648 return dlopen ();
13649   ;
13650   return 0;
13651 }
13652 _ACEOF
13653 for ac_lib in '' dl; do
13654   if test -z "$ac_lib"; then
13655     ac_res="none required"
13656   else
13657     ac_res=-l$ac_lib
13658     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13659   fi
13660   rm -f conftest.$ac_objext conftest$ac_exeext
13661 if { (ac_try="$ac_link"
13662 case "(($ac_try" in
13663   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13664   *) ac_try_echo=$ac_try;;
13665 esac
13666 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13667   (eval "$ac_link") 2>conftest.er1
13668   ac_status=$?
13669   grep -v '^ *+' conftest.er1 >conftest.err
13670   rm -f conftest.er1
13671   cat conftest.err >&5
13672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13673   (exit $ac_status); } &&
13674          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13675   { (case "(($ac_try" in
13676   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13677   *) ac_try_echo=$ac_try;;
13678 esac
13679 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13680   (eval "$ac_try") 2>&5
13681   ac_status=$?
13682   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13683   (exit $ac_status); }; } &&
13684          { ac_try='test -s conftest$ac_exeext'
13685   { (case "(($ac_try" in
13686   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13687   *) ac_try_echo=$ac_try;;
13688 esac
13689 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13690   (eval "$ac_try") 2>&5
13691   ac_status=$?
13692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13693   (exit $ac_status); }; }; then
13694   ac_cv_search_dlopen=$ac_res
13695 else
13696   echo "$as_me: failed program was:" >&5
13697 sed 's/^/| /' conftest.$ac_ext >&5
13698
13699
13700 fi
13701
13702 rm -f core conftest.err conftest.$ac_objext \
13703       conftest$ac_exeext
13704   if test "${ac_cv_search_dlopen+set}" = set; then
13705   break
13706 fi
13707 done
13708 if test "${ac_cv_search_dlopen+set}" = set; then
13709   :
13710 else
13711   ac_cv_search_dlopen=no
13712 fi
13713 rm conftest.$ac_ext
13714 LIBS=$ac_func_search_save_LIBS
13715 fi
13716 { echo "$as_me:$LINENO: result: $ac_cv_search_dlopen" >&5
13717 echo "${ECHO_T}$ac_cv_search_dlopen" >&6; }
13718 ac_res=$ac_cv_search_dlopen
13719 if test "$ac_res" != no; then
13720   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13721
13722 cat >>confdefs.h <<\_ACEOF
13723 #define HAVE_DLOPEN 1
13724 _ACEOF
13725
13726 else
13727   { echo "$as_me:$LINENO: WARNING: dlopen() not found - disabling plugin support" >&5
13728 echo "$as_me: WARNING: dlopen() not found - disabling plugin support" >&2;}
13729 fi
13730
13731
13732 if test "$llvm_cv_enable_libffi" = "yes" ; then
13733   { echo "$as_me:$LINENO: checking for library containing ffi_call" >&5
13734 echo $ECHO_N "checking for library containing ffi_call... $ECHO_C" >&6; }
13735 if test "${ac_cv_search_ffi_call+set}" = set; then
13736   echo $ECHO_N "(cached) $ECHO_C" >&6
13737 else
13738   ac_func_search_save_LIBS=$LIBS
13739 cat >conftest.$ac_ext <<_ACEOF
13740 /* confdefs.h.  */
13741 _ACEOF
13742 cat confdefs.h >>conftest.$ac_ext
13743 cat >>conftest.$ac_ext <<_ACEOF
13744 /* end confdefs.h.  */
13745
13746 /* Override any GCC internal prototype to avoid an error.
13747    Use char because int might match the return type of a GCC
13748    builtin and then its argument prototype would still apply.  */
13749 #ifdef __cplusplus
13750 extern "C"
13751 #endif
13752 char ffi_call ();
13753 int
13754 main ()
13755 {
13756 return ffi_call ();
13757   ;
13758   return 0;
13759 }
13760 _ACEOF
13761 for ac_lib in '' ffi; do
13762   if test -z "$ac_lib"; then
13763     ac_res="none required"
13764   else
13765     ac_res=-l$ac_lib
13766     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13767   fi
13768   rm -f conftest.$ac_objext conftest$ac_exeext
13769 if { (ac_try="$ac_link"
13770 case "(($ac_try" in
13771   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13772   *) ac_try_echo=$ac_try;;
13773 esac
13774 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13775   (eval "$ac_link") 2>conftest.er1
13776   ac_status=$?
13777   grep -v '^ *+' conftest.er1 >conftest.err
13778   rm -f conftest.er1
13779   cat conftest.err >&5
13780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13781   (exit $ac_status); } &&
13782          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13783   { (case "(($ac_try" in
13784   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13785   *) ac_try_echo=$ac_try;;
13786 esac
13787 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13788   (eval "$ac_try") 2>&5
13789   ac_status=$?
13790   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13791   (exit $ac_status); }; } &&
13792          { ac_try='test -s conftest$ac_exeext'
13793   { (case "(($ac_try" in
13794   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13795   *) ac_try_echo=$ac_try;;
13796 esac
13797 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13798   (eval "$ac_try") 2>&5
13799   ac_status=$?
13800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13801   (exit $ac_status); }; }; then
13802   ac_cv_search_ffi_call=$ac_res
13803 else
13804   echo "$as_me: failed program was:" >&5
13805 sed 's/^/| /' conftest.$ac_ext >&5
13806
13807
13808 fi
13809
13810 rm -f core conftest.err conftest.$ac_objext \
13811       conftest$ac_exeext
13812   if test "${ac_cv_search_ffi_call+set}" = set; then
13813   break
13814 fi
13815 done
13816 if test "${ac_cv_search_ffi_call+set}" = set; then
13817   :
13818 else
13819   ac_cv_search_ffi_call=no
13820 fi
13821 rm conftest.$ac_ext
13822 LIBS=$ac_func_search_save_LIBS
13823 fi
13824 { echo "$as_me:$LINENO: result: $ac_cv_search_ffi_call" >&5
13825 echo "${ECHO_T}$ac_cv_search_ffi_call" >&6; }
13826 ac_res=$ac_cv_search_ffi_call
13827 if test "$ac_res" != no; then
13828   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13829
13830 cat >>confdefs.h <<\_ACEOF
13831 #define HAVE_FFI_CALL 1
13832 _ACEOF
13833
13834 else
13835   { { echo "$as_me:$LINENO: error: libffi not found - configure without --enable-libffi to compile without it" >&5
13836 echo "$as_me: error: libffi not found - configure without --enable-libffi to compile without it" >&2;}
13837    { (exit 1); exit 1; }; }
13838 fi
13839
13840 fi
13841
13842 { echo "$as_me:$LINENO: checking for library containing mallinfo" >&5
13843 echo $ECHO_N "checking for library containing mallinfo... $ECHO_C" >&6; }
13844 if test "${ac_cv_search_mallinfo+set}" = set; then
13845   echo $ECHO_N "(cached) $ECHO_C" >&6
13846 else
13847   ac_func_search_save_LIBS=$LIBS
13848 cat >conftest.$ac_ext <<_ACEOF
13849 /* confdefs.h.  */
13850 _ACEOF
13851 cat confdefs.h >>conftest.$ac_ext
13852 cat >>conftest.$ac_ext <<_ACEOF
13853 /* end confdefs.h.  */
13854
13855 /* Override any GCC internal prototype to avoid an error.
13856    Use char because int might match the return type of a GCC
13857    builtin and then its argument prototype would still apply.  */
13858 #ifdef __cplusplus
13859 extern "C"
13860 #endif
13861 char mallinfo ();
13862 int
13863 main ()
13864 {
13865 return mallinfo ();
13866   ;
13867   return 0;
13868 }
13869 _ACEOF
13870 for ac_lib in '' malloc; do
13871   if test -z "$ac_lib"; then
13872     ac_res="none required"
13873   else
13874     ac_res=-l$ac_lib
13875     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
13876   fi
13877   rm -f conftest.$ac_objext conftest$ac_exeext
13878 if { (ac_try="$ac_link"
13879 case "(($ac_try" in
13880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13881   *) ac_try_echo=$ac_try;;
13882 esac
13883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13884   (eval "$ac_link") 2>conftest.er1
13885   ac_status=$?
13886   grep -v '^ *+' conftest.er1 >conftest.err
13887   rm -f conftest.er1
13888   cat conftest.err >&5
13889   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13890   (exit $ac_status); } &&
13891          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13892   { (case "(($ac_try" in
13893   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13894   *) ac_try_echo=$ac_try;;
13895 esac
13896 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13897   (eval "$ac_try") 2>&5
13898   ac_status=$?
13899   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13900   (exit $ac_status); }; } &&
13901          { ac_try='test -s conftest$ac_exeext'
13902   { (case "(($ac_try" in
13903   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13904   *) ac_try_echo=$ac_try;;
13905 esac
13906 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13907   (eval "$ac_try") 2>&5
13908   ac_status=$?
13909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13910   (exit $ac_status); }; }; then
13911   ac_cv_search_mallinfo=$ac_res
13912 else
13913   echo "$as_me: failed program was:" >&5
13914 sed 's/^/| /' conftest.$ac_ext >&5
13915
13916
13917 fi
13918
13919 rm -f core conftest.err conftest.$ac_objext \
13920       conftest$ac_exeext
13921   if test "${ac_cv_search_mallinfo+set}" = set; then
13922   break
13923 fi
13924 done
13925 if test "${ac_cv_search_mallinfo+set}" = set; then
13926   :
13927 else
13928   ac_cv_search_mallinfo=no
13929 fi
13930 rm conftest.$ac_ext
13931 LIBS=$ac_func_search_save_LIBS
13932 fi
13933 { echo "$as_me:$LINENO: result: $ac_cv_search_mallinfo" >&5
13934 echo "${ECHO_T}$ac_cv_search_mallinfo" >&6; }
13935 ac_res=$ac_cv_search_mallinfo
13936 if test "$ac_res" != no; then
13937   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
13938
13939 cat >>confdefs.h <<\_ACEOF
13940 #define HAVE_MALLINFO 1
13941 _ACEOF
13942
13943 fi
13944
13945
13946 if test "$ENABLE_THREADS" -eq 1 ; then
13947
13948 { echo "$as_me:$LINENO: checking for pthread_mutex_init in -lpthread" >&5
13949 echo $ECHO_N "checking for pthread_mutex_init in -lpthread... $ECHO_C" >&6; }
13950 if test "${ac_cv_lib_pthread_pthread_mutex_init+set}" = set; then
13951   echo $ECHO_N "(cached) $ECHO_C" >&6
13952 else
13953   ac_check_lib_save_LIBS=$LIBS
13954 LIBS="-lpthread  $LIBS"
13955 cat >conftest.$ac_ext <<_ACEOF
13956 /* confdefs.h.  */
13957 _ACEOF
13958 cat confdefs.h >>conftest.$ac_ext
13959 cat >>conftest.$ac_ext <<_ACEOF
13960 /* end confdefs.h.  */
13961
13962 /* Override any GCC internal prototype to avoid an error.
13963    Use char because int might match the return type of a GCC
13964    builtin and then its argument prototype would still apply.  */
13965 #ifdef __cplusplus
13966 extern "C"
13967 #endif
13968 char pthread_mutex_init ();
13969 int
13970 main ()
13971 {
13972 return pthread_mutex_init ();
13973   ;
13974   return 0;
13975 }
13976 _ACEOF
13977 rm -f conftest.$ac_objext conftest$ac_exeext
13978 if { (ac_try="$ac_link"
13979 case "(($ac_try" in
13980   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13981   *) ac_try_echo=$ac_try;;
13982 esac
13983 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13984   (eval "$ac_link") 2>conftest.er1
13985   ac_status=$?
13986   grep -v '^ *+' conftest.er1 >conftest.err
13987   rm -f conftest.er1
13988   cat conftest.err >&5
13989   echo "$as_me:$LINENO: \$? = $ac_status" >&5
13990   (exit $ac_status); } &&
13991          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
13992   { (case "(($ac_try" in
13993   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
13994   *) ac_try_echo=$ac_try;;
13995 esac
13996 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
13997   (eval "$ac_try") 2>&5
13998   ac_status=$?
13999   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14000   (exit $ac_status); }; } &&
14001          { ac_try='test -s conftest$ac_exeext'
14002   { (case "(($ac_try" in
14003   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14004   *) ac_try_echo=$ac_try;;
14005 esac
14006 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14007   (eval "$ac_try") 2>&5
14008   ac_status=$?
14009   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14010   (exit $ac_status); }; }; then
14011   ac_cv_lib_pthread_pthread_mutex_init=yes
14012 else
14013   echo "$as_me: failed program was:" >&5
14014 sed 's/^/| /' conftest.$ac_ext >&5
14015
14016         ac_cv_lib_pthread_pthread_mutex_init=no
14017 fi
14018
14019 rm -f core conftest.err conftest.$ac_objext \
14020       conftest$ac_exeext conftest.$ac_ext
14021 LIBS=$ac_check_lib_save_LIBS
14022 fi
14023 { echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_mutex_init" >&5
14024 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_mutex_init" >&6; }
14025 if test $ac_cv_lib_pthread_pthread_mutex_init = yes; then
14026   cat >>confdefs.h <<_ACEOF
14027 #define HAVE_LIBPTHREAD 1
14028 _ACEOF
14029
14030   LIBS="-lpthread $LIBS"
14031
14032 fi
14033
14034   { echo "$as_me:$LINENO: checking for library containing pthread_mutex_lock" >&5
14035 echo $ECHO_N "checking for library containing pthread_mutex_lock... $ECHO_C" >&6; }
14036 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14037   echo $ECHO_N "(cached) $ECHO_C" >&6
14038 else
14039   ac_func_search_save_LIBS=$LIBS
14040 cat >conftest.$ac_ext <<_ACEOF
14041 /* confdefs.h.  */
14042 _ACEOF
14043 cat confdefs.h >>conftest.$ac_ext
14044 cat >>conftest.$ac_ext <<_ACEOF
14045 /* end confdefs.h.  */
14046
14047 /* Override any GCC internal prototype to avoid an error.
14048    Use char because int might match the return type of a GCC
14049    builtin and then its argument prototype would still apply.  */
14050 #ifdef __cplusplus
14051 extern "C"
14052 #endif
14053 char pthread_mutex_lock ();
14054 int
14055 main ()
14056 {
14057 return pthread_mutex_lock ();
14058   ;
14059   return 0;
14060 }
14061 _ACEOF
14062 for ac_lib in '' pthread; do
14063   if test -z "$ac_lib"; then
14064     ac_res="none required"
14065   else
14066     ac_res=-l$ac_lib
14067     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14068   fi
14069   rm -f conftest.$ac_objext conftest$ac_exeext
14070 if { (ac_try="$ac_link"
14071 case "(($ac_try" in
14072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14073   *) ac_try_echo=$ac_try;;
14074 esac
14075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14076   (eval "$ac_link") 2>conftest.er1
14077   ac_status=$?
14078   grep -v '^ *+' conftest.er1 >conftest.err
14079   rm -f conftest.er1
14080   cat conftest.err >&5
14081   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14082   (exit $ac_status); } &&
14083          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14084   { (case "(($ac_try" in
14085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14086   *) ac_try_echo=$ac_try;;
14087 esac
14088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14089   (eval "$ac_try") 2>&5
14090   ac_status=$?
14091   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14092   (exit $ac_status); }; } &&
14093          { ac_try='test -s conftest$ac_exeext'
14094   { (case "(($ac_try" in
14095   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14096   *) ac_try_echo=$ac_try;;
14097 esac
14098 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14099   (eval "$ac_try") 2>&5
14100   ac_status=$?
14101   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14102   (exit $ac_status); }; }; then
14103   ac_cv_search_pthread_mutex_lock=$ac_res
14104 else
14105   echo "$as_me: failed program was:" >&5
14106 sed 's/^/| /' conftest.$ac_ext >&5
14107
14108
14109 fi
14110
14111 rm -f core conftest.err conftest.$ac_objext \
14112       conftest$ac_exeext
14113   if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14114   break
14115 fi
14116 done
14117 if test "${ac_cv_search_pthread_mutex_lock+set}" = set; then
14118   :
14119 else
14120   ac_cv_search_pthread_mutex_lock=no
14121 fi
14122 rm conftest.$ac_ext
14123 LIBS=$ac_func_search_save_LIBS
14124 fi
14125 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_mutex_lock" >&5
14126 echo "${ECHO_T}$ac_cv_search_pthread_mutex_lock" >&6; }
14127 ac_res=$ac_cv_search_pthread_mutex_lock
14128 if test "$ac_res" != no; then
14129   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14130
14131 cat >>confdefs.h <<\_ACEOF
14132 #define HAVE_PTHREAD_MUTEX_LOCK 1
14133 _ACEOF
14134
14135 fi
14136
14137   { echo "$as_me:$LINENO: checking for library containing pthread_rwlock_init" >&5
14138 echo $ECHO_N "checking for library containing pthread_rwlock_init... $ECHO_C" >&6; }
14139 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14140   echo $ECHO_N "(cached) $ECHO_C" >&6
14141 else
14142   ac_func_search_save_LIBS=$LIBS
14143 cat >conftest.$ac_ext <<_ACEOF
14144 /* confdefs.h.  */
14145 _ACEOF
14146 cat confdefs.h >>conftest.$ac_ext
14147 cat >>conftest.$ac_ext <<_ACEOF
14148 /* end confdefs.h.  */
14149
14150 /* Override any GCC internal prototype to avoid an error.
14151    Use char because int might match the return type of a GCC
14152    builtin and then its argument prototype would still apply.  */
14153 #ifdef __cplusplus
14154 extern "C"
14155 #endif
14156 char pthread_rwlock_init ();
14157 int
14158 main ()
14159 {
14160 return pthread_rwlock_init ();
14161   ;
14162   return 0;
14163 }
14164 _ACEOF
14165 for ac_lib in '' pthread; do
14166   if test -z "$ac_lib"; then
14167     ac_res="none required"
14168   else
14169     ac_res=-l$ac_lib
14170     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14171   fi
14172   rm -f conftest.$ac_objext conftest$ac_exeext
14173 if { (ac_try="$ac_link"
14174 case "(($ac_try" in
14175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14176   *) ac_try_echo=$ac_try;;
14177 esac
14178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14179   (eval "$ac_link") 2>conftest.er1
14180   ac_status=$?
14181   grep -v '^ *+' conftest.er1 >conftest.err
14182   rm -f conftest.er1
14183   cat conftest.err >&5
14184   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14185   (exit $ac_status); } &&
14186          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14187   { (case "(($ac_try" in
14188   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14189   *) ac_try_echo=$ac_try;;
14190 esac
14191 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14192   (eval "$ac_try") 2>&5
14193   ac_status=$?
14194   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14195   (exit $ac_status); }; } &&
14196          { ac_try='test -s conftest$ac_exeext'
14197   { (case "(($ac_try" in
14198   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14199   *) ac_try_echo=$ac_try;;
14200 esac
14201 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14202   (eval "$ac_try") 2>&5
14203   ac_status=$?
14204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14205   (exit $ac_status); }; }; then
14206   ac_cv_search_pthread_rwlock_init=$ac_res
14207 else
14208   echo "$as_me: failed program was:" >&5
14209 sed 's/^/| /' conftest.$ac_ext >&5
14210
14211
14212 fi
14213
14214 rm -f core conftest.err conftest.$ac_objext \
14215       conftest$ac_exeext
14216   if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14217   break
14218 fi
14219 done
14220 if test "${ac_cv_search_pthread_rwlock_init+set}" = set; then
14221   :
14222 else
14223   ac_cv_search_pthread_rwlock_init=no
14224 fi
14225 rm conftest.$ac_ext
14226 LIBS=$ac_func_search_save_LIBS
14227 fi
14228 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_rwlock_init" >&5
14229 echo "${ECHO_T}$ac_cv_search_pthread_rwlock_init" >&6; }
14230 ac_res=$ac_cv_search_pthread_rwlock_init
14231 if test "$ac_res" != no; then
14232   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14233
14234 cat >>confdefs.h <<\_ACEOF
14235 #define HAVE_PTHREAD_RWLOCK_INIT 1
14236 _ACEOF
14237
14238 fi
14239
14240   { echo "$as_me:$LINENO: checking for library containing pthread_getspecific" >&5
14241 echo $ECHO_N "checking for library containing pthread_getspecific... $ECHO_C" >&6; }
14242 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14243   echo $ECHO_N "(cached) $ECHO_C" >&6
14244 else
14245   ac_func_search_save_LIBS=$LIBS
14246 cat >conftest.$ac_ext <<_ACEOF
14247 /* confdefs.h.  */
14248 _ACEOF
14249 cat confdefs.h >>conftest.$ac_ext
14250 cat >>conftest.$ac_ext <<_ACEOF
14251 /* end confdefs.h.  */
14252
14253 /* Override any GCC internal prototype to avoid an error.
14254    Use char because int might match the return type of a GCC
14255    builtin and then its argument prototype would still apply.  */
14256 #ifdef __cplusplus
14257 extern "C"
14258 #endif
14259 char pthread_getspecific ();
14260 int
14261 main ()
14262 {
14263 return pthread_getspecific ();
14264   ;
14265   return 0;
14266 }
14267 _ACEOF
14268 for ac_lib in '' pthread; do
14269   if test -z "$ac_lib"; then
14270     ac_res="none required"
14271   else
14272     ac_res=-l$ac_lib
14273     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14274   fi
14275   rm -f conftest.$ac_objext conftest$ac_exeext
14276 if { (ac_try="$ac_link"
14277 case "(($ac_try" in
14278   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14279   *) ac_try_echo=$ac_try;;
14280 esac
14281 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14282   (eval "$ac_link") 2>conftest.er1
14283   ac_status=$?
14284   grep -v '^ *+' conftest.er1 >conftest.err
14285   rm -f conftest.er1
14286   cat conftest.err >&5
14287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14288   (exit $ac_status); } &&
14289          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14290   { (case "(($ac_try" in
14291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14292   *) ac_try_echo=$ac_try;;
14293 esac
14294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14295   (eval "$ac_try") 2>&5
14296   ac_status=$?
14297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14298   (exit $ac_status); }; } &&
14299          { ac_try='test -s conftest$ac_exeext'
14300   { (case "(($ac_try" in
14301   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14302   *) ac_try_echo=$ac_try;;
14303 esac
14304 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14305   (eval "$ac_try") 2>&5
14306   ac_status=$?
14307   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14308   (exit $ac_status); }; }; then
14309   ac_cv_search_pthread_getspecific=$ac_res
14310 else
14311   echo "$as_me: failed program was:" >&5
14312 sed 's/^/| /' conftest.$ac_ext >&5
14313
14314
14315 fi
14316
14317 rm -f core conftest.err conftest.$ac_objext \
14318       conftest$ac_exeext
14319   if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14320   break
14321 fi
14322 done
14323 if test "${ac_cv_search_pthread_getspecific+set}" = set; then
14324   :
14325 else
14326   ac_cv_search_pthread_getspecific=no
14327 fi
14328 rm conftest.$ac_ext
14329 LIBS=$ac_func_search_save_LIBS
14330 fi
14331 { echo "$as_me:$LINENO: result: $ac_cv_search_pthread_getspecific" >&5
14332 echo "${ECHO_T}$ac_cv_search_pthread_getspecific" >&6; }
14333 ac_res=$ac_cv_search_pthread_getspecific
14334 if test "$ac_res" != no; then
14335   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14336
14337 cat >>confdefs.h <<\_ACEOF
14338 #define HAVE_PTHREAD_GETSPECIFIC 1
14339 _ACEOF
14340
14341 fi
14342
14343 fi
14344
14345
14346 # Check whether --with-udis86 was given.
14347 if test "${with_udis86+set}" = set; then
14348   withval=$with_udis86;
14349       USE_UDIS86=1
14350
14351       case "$withval" in
14352         /usr/lib|yes) ;;
14353         *) LDFLAGS="$LDFLAGS -L${withval}" ;;
14354       esac
14355
14356 { echo "$as_me:$LINENO: checking for ud_init in -ludis86" >&5
14357 echo $ECHO_N "checking for ud_init in -ludis86... $ECHO_C" >&6; }
14358 if test "${ac_cv_lib_udis86_ud_init+set}" = set; then
14359   echo $ECHO_N "(cached) $ECHO_C" >&6
14360 else
14361   ac_check_lib_save_LIBS=$LIBS
14362 LIBS="-ludis86  $LIBS"
14363 cat >conftest.$ac_ext <<_ACEOF
14364 /* confdefs.h.  */
14365 _ACEOF
14366 cat confdefs.h >>conftest.$ac_ext
14367 cat >>conftest.$ac_ext <<_ACEOF
14368 /* end confdefs.h.  */
14369
14370 /* Override any GCC internal prototype to avoid an error.
14371    Use char because int might match the return type of a GCC
14372    builtin and then its argument prototype would still apply.  */
14373 #ifdef __cplusplus
14374 extern "C"
14375 #endif
14376 char ud_init ();
14377 int
14378 main ()
14379 {
14380 return ud_init ();
14381   ;
14382   return 0;
14383 }
14384 _ACEOF
14385 rm -f conftest.$ac_objext conftest$ac_exeext
14386 if { (ac_try="$ac_link"
14387 case "(($ac_try" in
14388   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14389   *) ac_try_echo=$ac_try;;
14390 esac
14391 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14392   (eval "$ac_link") 2>conftest.er1
14393   ac_status=$?
14394   grep -v '^ *+' conftest.er1 >conftest.err
14395   rm -f conftest.er1
14396   cat conftest.err >&5
14397   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14398   (exit $ac_status); } &&
14399          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14400   { (case "(($ac_try" in
14401   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14402   *) ac_try_echo=$ac_try;;
14403 esac
14404 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14405   (eval "$ac_try") 2>&5
14406   ac_status=$?
14407   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14408   (exit $ac_status); }; } &&
14409          { ac_try='test -s conftest$ac_exeext'
14410   { (case "(($ac_try" in
14411   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14412   *) ac_try_echo=$ac_try;;
14413 esac
14414 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14415   (eval "$ac_try") 2>&5
14416   ac_status=$?
14417   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14418   (exit $ac_status); }; }; then
14419   ac_cv_lib_udis86_ud_init=yes
14420 else
14421   echo "$as_me: failed program was:" >&5
14422 sed 's/^/| /' conftest.$ac_ext >&5
14423
14424         ac_cv_lib_udis86_ud_init=no
14425 fi
14426
14427 rm -f core conftest.err conftest.$ac_objext \
14428       conftest$ac_exeext conftest.$ac_ext
14429 LIBS=$ac_check_lib_save_LIBS
14430 fi
14431 { echo "$as_me:$LINENO: result: $ac_cv_lib_udis86_ud_init" >&5
14432 echo "${ECHO_T}$ac_cv_lib_udis86_ud_init" >&6; }
14433 if test $ac_cv_lib_udis86_ud_init = yes; then
14434   cat >>confdefs.h <<_ACEOF
14435 #define HAVE_LIBUDIS86 1
14436 _ACEOF
14437
14438   LIBS="-ludis86 $LIBS"
14439
14440 else
14441
14442         echo "Error! You need to have libudis86 around."
14443         exit -1
14444
14445 fi
14446
14447
14448 else
14449   USE_UDIS86=0
14450
14451 fi
14452
14453
14454 cat >>confdefs.h <<_ACEOF
14455 #define USE_UDIS86 $USE_UDIS86
14456 _ACEOF
14457
14458
14459
14460 # Check whether --with-oprofile was given.
14461 if test "${with_oprofile+set}" = set; then
14462   withval=$with_oprofile;
14463       USE_OPROFILE=1
14464
14465       case "$withval" in
14466         /usr|yes) llvm_cv_oppath=/usr/lib/oprofile ;;
14467         no) llvm_cv_oppath=
14468             USE_OPROFILE=0
14469  ;;
14470         *) llvm_cv_oppath="${withval}/lib/oprofile"
14471            CPPFLAGS="-I${withval}/include";;
14472       esac
14473       if test -n "$llvm_cv_oppath" ; then
14474         LIBS="$LIBS -L${llvm_cv_oppath} -Wl,-rpath,${llvm_cv_oppath}"
14475                                         { echo "$as_me:$LINENO: checking for library containing bfd_init" >&5
14476 echo $ECHO_N "checking for library containing bfd_init... $ECHO_C" >&6; }
14477 if test "${ac_cv_search_bfd_init+set}" = set; then
14478   echo $ECHO_N "(cached) $ECHO_C" >&6
14479 else
14480   ac_func_search_save_LIBS=$LIBS
14481 cat >conftest.$ac_ext <<_ACEOF
14482 /* confdefs.h.  */
14483 _ACEOF
14484 cat confdefs.h >>conftest.$ac_ext
14485 cat >>conftest.$ac_ext <<_ACEOF
14486 /* end confdefs.h.  */
14487
14488 /* Override any GCC internal prototype to avoid an error.
14489    Use char because int might match the return type of a GCC
14490    builtin and then its argument prototype would still apply.  */
14491 #ifdef __cplusplus
14492 extern "C"
14493 #endif
14494 char bfd_init ();
14495 int
14496 main ()
14497 {
14498 return bfd_init ();
14499   ;
14500   return 0;
14501 }
14502 _ACEOF
14503 for ac_lib in '' bfd; do
14504   if test -z "$ac_lib"; then
14505     ac_res="none required"
14506   else
14507     ac_res=-l$ac_lib
14508     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14509   fi
14510   rm -f conftest.$ac_objext conftest$ac_exeext
14511 if { (ac_try="$ac_link"
14512 case "(($ac_try" in
14513   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14514   *) ac_try_echo=$ac_try;;
14515 esac
14516 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14517   (eval "$ac_link") 2>conftest.er1
14518   ac_status=$?
14519   grep -v '^ *+' conftest.er1 >conftest.err
14520   rm -f conftest.er1
14521   cat conftest.err >&5
14522   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14523   (exit $ac_status); } &&
14524          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14525   { (case "(($ac_try" in
14526   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14527   *) ac_try_echo=$ac_try;;
14528 esac
14529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14530   (eval "$ac_try") 2>&5
14531   ac_status=$?
14532   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14533   (exit $ac_status); }; } &&
14534          { ac_try='test -s conftest$ac_exeext'
14535   { (case "(($ac_try" in
14536   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14537   *) ac_try_echo=$ac_try;;
14538 esac
14539 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14540   (eval "$ac_try") 2>&5
14541   ac_status=$?
14542   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14543   (exit $ac_status); }; }; then
14544   ac_cv_search_bfd_init=$ac_res
14545 else
14546   echo "$as_me: failed program was:" >&5
14547 sed 's/^/| /' conftest.$ac_ext >&5
14548
14549
14550 fi
14551
14552 rm -f core conftest.err conftest.$ac_objext \
14553       conftest$ac_exeext
14554   if test "${ac_cv_search_bfd_init+set}" = set; then
14555   break
14556 fi
14557 done
14558 if test "${ac_cv_search_bfd_init+set}" = set; then
14559   :
14560 else
14561   ac_cv_search_bfd_init=no
14562 fi
14563 rm conftest.$ac_ext
14564 LIBS=$ac_func_search_save_LIBS
14565 fi
14566 { echo "$as_me:$LINENO: result: $ac_cv_search_bfd_init" >&5
14567 echo "${ECHO_T}$ac_cv_search_bfd_init" >&6; }
14568 ac_res=$ac_cv_search_bfd_init
14569 if test "$ac_res" != no; then
14570   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14571
14572 fi
14573
14574         { echo "$as_me:$LINENO: checking for library containing op_open_agent" >&5
14575 echo $ECHO_N "checking for library containing op_open_agent... $ECHO_C" >&6; }
14576 if test "${ac_cv_search_op_open_agent+set}" = set; then
14577   echo $ECHO_N "(cached) $ECHO_C" >&6
14578 else
14579   ac_func_search_save_LIBS=$LIBS
14580 cat >conftest.$ac_ext <<_ACEOF
14581 /* confdefs.h.  */
14582 _ACEOF
14583 cat confdefs.h >>conftest.$ac_ext
14584 cat >>conftest.$ac_ext <<_ACEOF
14585 /* end confdefs.h.  */
14586
14587 /* Override any GCC internal prototype to avoid an error.
14588    Use char because int might match the return type of a GCC
14589    builtin and then its argument prototype would still apply.  */
14590 #ifdef __cplusplus
14591 extern "C"
14592 #endif
14593 char op_open_agent ();
14594 int
14595 main ()
14596 {
14597 return op_open_agent ();
14598   ;
14599   return 0;
14600 }
14601 _ACEOF
14602 for ac_lib in '' opagent; do
14603   if test -z "$ac_lib"; then
14604     ac_res="none required"
14605   else
14606     ac_res=-l$ac_lib
14607     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14608   fi
14609   rm -f conftest.$ac_objext conftest$ac_exeext
14610 if { (ac_try="$ac_link"
14611 case "(($ac_try" in
14612   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14613   *) ac_try_echo=$ac_try;;
14614 esac
14615 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14616   (eval "$ac_link") 2>conftest.er1
14617   ac_status=$?
14618   grep -v '^ *+' conftest.er1 >conftest.err
14619   rm -f conftest.er1
14620   cat conftest.err >&5
14621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14622   (exit $ac_status); } &&
14623          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14624   { (case "(($ac_try" in
14625   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14626   *) ac_try_echo=$ac_try;;
14627 esac
14628 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14629   (eval "$ac_try") 2>&5
14630   ac_status=$?
14631   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14632   (exit $ac_status); }; } &&
14633          { ac_try='test -s conftest$ac_exeext'
14634   { (case "(($ac_try" in
14635   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14636   *) ac_try_echo=$ac_try;;
14637 esac
14638 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14639   (eval "$ac_try") 2>&5
14640   ac_status=$?
14641   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14642   (exit $ac_status); }; }; then
14643   ac_cv_search_op_open_agent=$ac_res
14644 else
14645   echo "$as_me: failed program was:" >&5
14646 sed 's/^/| /' conftest.$ac_ext >&5
14647
14648
14649 fi
14650
14651 rm -f core conftest.err conftest.$ac_objext \
14652       conftest$ac_exeext
14653   if test "${ac_cv_search_op_open_agent+set}" = set; then
14654   break
14655 fi
14656 done
14657 if test "${ac_cv_search_op_open_agent+set}" = set; then
14658   :
14659 else
14660   ac_cv_search_op_open_agent=no
14661 fi
14662 rm conftest.$ac_ext
14663 LIBS=$ac_func_search_save_LIBS
14664 fi
14665 { echo "$as_me:$LINENO: result: $ac_cv_search_op_open_agent" >&5
14666 echo "${ECHO_T}$ac_cv_search_op_open_agent" >&6; }
14667 ac_res=$ac_cv_search_op_open_agent
14668 if test "$ac_res" != no; then
14669   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
14670
14671 else
14672
14673           echo "Error! You need to have libopagent around."
14674           exit -1
14675
14676 fi
14677
14678         if test "${ac_cv_header_opagent_h+set}" = set; then
14679   { echo "$as_me:$LINENO: checking for opagent.h" >&5
14680 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14681 if test "${ac_cv_header_opagent_h+set}" = set; then
14682   echo $ECHO_N "(cached) $ECHO_C" >&6
14683 fi
14684 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14685 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14686 else
14687   # Is the header compilable?
14688 { echo "$as_me:$LINENO: checking opagent.h usability" >&5
14689 echo $ECHO_N "checking opagent.h usability... $ECHO_C" >&6; }
14690 cat >conftest.$ac_ext <<_ACEOF
14691 /* confdefs.h.  */
14692 _ACEOF
14693 cat confdefs.h >>conftest.$ac_ext
14694 cat >>conftest.$ac_ext <<_ACEOF
14695 /* end confdefs.h.  */
14696 $ac_includes_default
14697 #include <opagent.h>
14698 _ACEOF
14699 rm -f conftest.$ac_objext
14700 if { (ac_try="$ac_compile"
14701 case "(($ac_try" in
14702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14703   *) ac_try_echo=$ac_try;;
14704 esac
14705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14706   (eval "$ac_compile") 2>conftest.er1
14707   ac_status=$?
14708   grep -v '^ *+' conftest.er1 >conftest.err
14709   rm -f conftest.er1
14710   cat conftest.err >&5
14711   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14712   (exit $ac_status); } &&
14713          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14714   { (case "(($ac_try" in
14715   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14716   *) ac_try_echo=$ac_try;;
14717 esac
14718 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14719   (eval "$ac_try") 2>&5
14720   ac_status=$?
14721   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14722   (exit $ac_status); }; } &&
14723          { ac_try='test -s conftest.$ac_objext'
14724   { (case "(($ac_try" in
14725   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14726   *) ac_try_echo=$ac_try;;
14727 esac
14728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14729   (eval "$ac_try") 2>&5
14730   ac_status=$?
14731   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14732   (exit $ac_status); }; }; then
14733   ac_header_compiler=yes
14734 else
14735   echo "$as_me: failed program was:" >&5
14736 sed 's/^/| /' conftest.$ac_ext >&5
14737
14738         ac_header_compiler=no
14739 fi
14740
14741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14742 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
14743 echo "${ECHO_T}$ac_header_compiler" >&6; }
14744
14745 # Is the header present?
14746 { echo "$as_me:$LINENO: checking opagent.h presence" >&5
14747 echo $ECHO_N "checking opagent.h presence... $ECHO_C" >&6; }
14748 cat >conftest.$ac_ext <<_ACEOF
14749 /* confdefs.h.  */
14750 _ACEOF
14751 cat confdefs.h >>conftest.$ac_ext
14752 cat >>conftest.$ac_ext <<_ACEOF
14753 /* end confdefs.h.  */
14754 #include <opagent.h>
14755 _ACEOF
14756 if { (ac_try="$ac_cpp conftest.$ac_ext"
14757 case "(($ac_try" in
14758   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14759   *) ac_try_echo=$ac_try;;
14760 esac
14761 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14762   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
14763   ac_status=$?
14764   grep -v '^ *+' conftest.er1 >conftest.err
14765   rm -f conftest.er1
14766   cat conftest.err >&5
14767   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14768   (exit $ac_status); } >/dev/null; then
14769   if test -s conftest.err; then
14770     ac_cpp_err=$ac_c_preproc_warn_flag
14771     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
14772   else
14773     ac_cpp_err=
14774   fi
14775 else
14776   ac_cpp_err=yes
14777 fi
14778 if test -z "$ac_cpp_err"; then
14779   ac_header_preproc=yes
14780 else
14781   echo "$as_me: failed program was:" >&5
14782 sed 's/^/| /' conftest.$ac_ext >&5
14783
14784   ac_header_preproc=no
14785 fi
14786
14787 rm -f conftest.err conftest.$ac_ext
14788 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
14789 echo "${ECHO_T}$ac_header_preproc" >&6; }
14790
14791 # So?  What about this header?
14792 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
14793   yes:no: )
14794     { echo "$as_me:$LINENO: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&5
14795 echo "$as_me: WARNING: opagent.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
14796     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the compiler's result" >&5
14797 echo "$as_me: WARNING: opagent.h: proceeding with the compiler's result" >&2;}
14798     ac_header_preproc=yes
14799     ;;
14800   no:yes:* )
14801     { echo "$as_me:$LINENO: WARNING: opagent.h: present but cannot be compiled" >&5
14802 echo "$as_me: WARNING: opagent.h: present but cannot be compiled" >&2;}
14803     { echo "$as_me:$LINENO: WARNING: opagent.h:     check for missing prerequisite headers?" >&5
14804 echo "$as_me: WARNING: opagent.h:     check for missing prerequisite headers?" >&2;}
14805     { echo "$as_me:$LINENO: WARNING: opagent.h: see the Autoconf documentation" >&5
14806 echo "$as_me: WARNING: opagent.h: see the Autoconf documentation" >&2;}
14807     { echo "$as_me:$LINENO: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&5
14808 echo "$as_me: WARNING: opagent.h:     section \"Present But Cannot Be Compiled\"" >&2;}
14809     { echo "$as_me:$LINENO: WARNING: opagent.h: proceeding with the preprocessor's result" >&5
14810 echo "$as_me: WARNING: opagent.h: proceeding with the preprocessor's result" >&2;}
14811     { echo "$as_me:$LINENO: WARNING: opagent.h: in the future, the compiler will take precedence" >&5
14812 echo "$as_me: WARNING: opagent.h: in the future, the compiler will take precedence" >&2;}
14813     ( cat <<\_ASBOX
14814 ## ----------------------------------- ##
14815 ## Report this to llvmbugs@cs.uiuc.edu ##
14816 ## ----------------------------------- ##
14817 _ASBOX
14818      ) | sed "s/^/$as_me: WARNING:     /" >&2
14819     ;;
14820 esac
14821 { echo "$as_me:$LINENO: checking for opagent.h" >&5
14822 echo $ECHO_N "checking for opagent.h... $ECHO_C" >&6; }
14823 if test "${ac_cv_header_opagent_h+set}" = set; then
14824   echo $ECHO_N "(cached) $ECHO_C" >&6
14825 else
14826   ac_cv_header_opagent_h=$ac_header_preproc
14827 fi
14828 { echo "$as_me:$LINENO: result: $ac_cv_header_opagent_h" >&5
14829 echo "${ECHO_T}$ac_cv_header_opagent_h" >&6; }
14830
14831 fi
14832 if test $ac_cv_header_opagent_h = yes; then
14833   :
14834 else
14835
14836           echo "Error! You need to have opagent.h around."
14837           exit -1
14838
14839 fi
14840
14841
14842       fi
14843
14844 else
14845
14846       USE_OPROFILE=0
14847
14848
14849 fi
14850
14851
14852 cat >>confdefs.h <<_ACEOF
14853 #define USE_OPROFILE $USE_OPROFILE
14854 _ACEOF
14855
14856
14857
14858
14859
14860
14861
14862
14863 ac_header_dirent=no
14864 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
14865   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
14866 { echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
14867 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6; }
14868 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
14869   echo $ECHO_N "(cached) $ECHO_C" >&6
14870 else
14871   cat >conftest.$ac_ext <<_ACEOF
14872 /* confdefs.h.  */
14873 _ACEOF
14874 cat confdefs.h >>conftest.$ac_ext
14875 cat >>conftest.$ac_ext <<_ACEOF
14876 /* end confdefs.h.  */
14877 #include <sys/types.h>
14878 #include <$ac_hdr>
14879
14880 int
14881 main ()
14882 {
14883 if ((DIR *) 0)
14884 return 0;
14885   ;
14886   return 0;
14887 }
14888 _ACEOF
14889 rm -f conftest.$ac_objext
14890 if { (ac_try="$ac_compile"
14891 case "(($ac_try" in
14892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14893   *) ac_try_echo=$ac_try;;
14894 esac
14895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14896   (eval "$ac_compile") 2>conftest.er1
14897   ac_status=$?
14898   grep -v '^ *+' conftest.er1 >conftest.err
14899   rm -f conftest.er1
14900   cat conftest.err >&5
14901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14902   (exit $ac_status); } &&
14903          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14904   { (case "(($ac_try" in
14905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14906   *) ac_try_echo=$ac_try;;
14907 esac
14908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14909   (eval "$ac_try") 2>&5
14910   ac_status=$?
14911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14912   (exit $ac_status); }; } &&
14913          { ac_try='test -s conftest.$ac_objext'
14914   { (case "(($ac_try" in
14915   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14916   *) ac_try_echo=$ac_try;;
14917 esac
14918 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14919   (eval "$ac_try") 2>&5
14920   ac_status=$?
14921   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14922   (exit $ac_status); }; }; then
14923   eval "$as_ac_Header=yes"
14924 else
14925   echo "$as_me: failed program was:" >&5
14926 sed 's/^/| /' conftest.$ac_ext >&5
14927
14928         eval "$as_ac_Header=no"
14929 fi
14930
14931 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14932 fi
14933 ac_res=`eval echo '${'$as_ac_Header'}'`
14934                { echo "$as_me:$LINENO: result: $ac_res" >&5
14935 echo "${ECHO_T}$ac_res" >&6; }
14936 if test `eval echo '${'$as_ac_Header'}'` = yes; then
14937   cat >>confdefs.h <<_ACEOF
14938 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
14939 _ACEOF
14940
14941 ac_header_dirent=$ac_hdr; break
14942 fi
14943
14944 done
14945 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
14946 if test $ac_header_dirent = dirent.h; then
14947   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
14948 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
14949 if test "${ac_cv_search_opendir+set}" = set; then
14950   echo $ECHO_N "(cached) $ECHO_C" >&6
14951 else
14952   ac_func_search_save_LIBS=$LIBS
14953 cat >conftest.$ac_ext <<_ACEOF
14954 /* confdefs.h.  */
14955 _ACEOF
14956 cat confdefs.h >>conftest.$ac_ext
14957 cat >>conftest.$ac_ext <<_ACEOF
14958 /* end confdefs.h.  */
14959
14960 /* Override any GCC internal prototype to avoid an error.
14961    Use char because int might match the return type of a GCC
14962    builtin and then its argument prototype would still apply.  */
14963 #ifdef __cplusplus
14964 extern "C"
14965 #endif
14966 char opendir ();
14967 int
14968 main ()
14969 {
14970 return opendir ();
14971   ;
14972   return 0;
14973 }
14974 _ACEOF
14975 for ac_lib in '' dir; do
14976   if test -z "$ac_lib"; then
14977     ac_res="none required"
14978   else
14979     ac_res=-l$ac_lib
14980     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
14981   fi
14982   rm -f conftest.$ac_objext conftest$ac_exeext
14983 if { (ac_try="$ac_link"
14984 case "(($ac_try" in
14985   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14986   *) ac_try_echo=$ac_try;;
14987 esac
14988 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
14989   (eval "$ac_link") 2>conftest.er1
14990   ac_status=$?
14991   grep -v '^ *+' conftest.er1 >conftest.err
14992   rm -f conftest.er1
14993   cat conftest.err >&5
14994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
14995   (exit $ac_status); } &&
14996          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
14997   { (case "(($ac_try" in
14998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14999   *) ac_try_echo=$ac_try;;
15000 esac
15001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15002   (eval "$ac_try") 2>&5
15003   ac_status=$?
15004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15005   (exit $ac_status); }; } &&
15006          { ac_try='test -s conftest$ac_exeext'
15007   { (case "(($ac_try" in
15008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15009   *) ac_try_echo=$ac_try;;
15010 esac
15011 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15012   (eval "$ac_try") 2>&5
15013   ac_status=$?
15014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15015   (exit $ac_status); }; }; then
15016   ac_cv_search_opendir=$ac_res
15017 else
15018   echo "$as_me: failed program was:" >&5
15019 sed 's/^/| /' conftest.$ac_ext >&5
15020
15021
15022 fi
15023
15024 rm -f core conftest.err conftest.$ac_objext \
15025       conftest$ac_exeext
15026   if test "${ac_cv_search_opendir+set}" = set; then
15027   break
15028 fi
15029 done
15030 if test "${ac_cv_search_opendir+set}" = set; then
15031   :
15032 else
15033   ac_cv_search_opendir=no
15034 fi
15035 rm conftest.$ac_ext
15036 LIBS=$ac_func_search_save_LIBS
15037 fi
15038 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15039 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15040 ac_res=$ac_cv_search_opendir
15041 if test "$ac_res" != no; then
15042   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15043
15044 fi
15045
15046 else
15047   { echo "$as_me:$LINENO: checking for library containing opendir" >&5
15048 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6; }
15049 if test "${ac_cv_search_opendir+set}" = set; then
15050   echo $ECHO_N "(cached) $ECHO_C" >&6
15051 else
15052   ac_func_search_save_LIBS=$LIBS
15053 cat >conftest.$ac_ext <<_ACEOF
15054 /* confdefs.h.  */
15055 _ACEOF
15056 cat confdefs.h >>conftest.$ac_ext
15057 cat >>conftest.$ac_ext <<_ACEOF
15058 /* end confdefs.h.  */
15059
15060 /* Override any GCC internal prototype to avoid an error.
15061    Use char because int might match the return type of a GCC
15062    builtin and then its argument prototype would still apply.  */
15063 #ifdef __cplusplus
15064 extern "C"
15065 #endif
15066 char opendir ();
15067 int
15068 main ()
15069 {
15070 return opendir ();
15071   ;
15072   return 0;
15073 }
15074 _ACEOF
15075 for ac_lib in '' x; do
15076   if test -z "$ac_lib"; then
15077     ac_res="none required"
15078   else
15079     ac_res=-l$ac_lib
15080     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
15081   fi
15082   rm -f conftest.$ac_objext conftest$ac_exeext
15083 if { (ac_try="$ac_link"
15084 case "(($ac_try" in
15085   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15086   *) ac_try_echo=$ac_try;;
15087 esac
15088 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15089   (eval "$ac_link") 2>conftest.er1
15090   ac_status=$?
15091   grep -v '^ *+' conftest.er1 >conftest.err
15092   rm -f conftest.er1
15093   cat conftest.err >&5
15094   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15095   (exit $ac_status); } &&
15096          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15097   { (case "(($ac_try" in
15098   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15099   *) ac_try_echo=$ac_try;;
15100 esac
15101 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15102   (eval "$ac_try") 2>&5
15103   ac_status=$?
15104   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15105   (exit $ac_status); }; } &&
15106          { ac_try='test -s conftest$ac_exeext'
15107   { (case "(($ac_try" in
15108   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15109   *) ac_try_echo=$ac_try;;
15110 esac
15111 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15112   (eval "$ac_try") 2>&5
15113   ac_status=$?
15114   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15115   (exit $ac_status); }; }; then
15116   ac_cv_search_opendir=$ac_res
15117 else
15118   echo "$as_me: failed program was:" >&5
15119 sed 's/^/| /' conftest.$ac_ext >&5
15120
15121
15122 fi
15123
15124 rm -f core conftest.err conftest.$ac_objext \
15125       conftest$ac_exeext
15126   if test "${ac_cv_search_opendir+set}" = set; then
15127   break
15128 fi
15129 done
15130 if test "${ac_cv_search_opendir+set}" = set; then
15131   :
15132 else
15133   ac_cv_search_opendir=no
15134 fi
15135 rm conftest.$ac_ext
15136 LIBS=$ac_func_search_save_LIBS
15137 fi
15138 { echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
15139 echo "${ECHO_T}$ac_cv_search_opendir" >&6; }
15140 ac_res=$ac_cv_search_opendir
15141 if test "$ac_res" != no; then
15142   test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15143
15144 fi
15145
15146 fi
15147
15148 { echo "$as_me:$LINENO: checking for MAP_ANONYMOUS vs. MAP_ANON" >&5
15149 echo $ECHO_N "checking for MAP_ANONYMOUS vs. MAP_ANON... $ECHO_C" >&6; }
15150 if test "${ac_cv_header_mmap_anon+set}" = set; then
15151   echo $ECHO_N "(cached) $ECHO_C" >&6
15152 else
15153    ac_ext=c
15154 ac_cpp='$CPP $CPPFLAGS'
15155 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15156 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15157 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15158
15159   cat >conftest.$ac_ext <<_ACEOF
15160 /* confdefs.h.  */
15161 _ACEOF
15162 cat confdefs.h >>conftest.$ac_ext
15163 cat >>conftest.$ac_ext <<_ACEOF
15164 /* end confdefs.h.  */
15165 #include <sys/mman.h>
15166 #include <unistd.h>
15167 #include <fcntl.h>
15168 int
15169 main ()
15170 {
15171 mmap (0, 1, PROT_READ, MAP_ANONYMOUS, -1, 0); return (0);
15172   ;
15173   return 0;
15174 }
15175 _ACEOF
15176 rm -f conftest.$ac_objext
15177 if { (ac_try="$ac_compile"
15178 case "(($ac_try" in
15179   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15180   *) ac_try_echo=$ac_try;;
15181 esac
15182 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15183   (eval "$ac_compile") 2>conftest.er1
15184   ac_status=$?
15185   grep -v '^ *+' conftest.er1 >conftest.err
15186   rm -f conftest.er1
15187   cat conftest.err >&5
15188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15189   (exit $ac_status); } &&
15190          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15191   { (case "(($ac_try" in
15192   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15193   *) ac_try_echo=$ac_try;;
15194 esac
15195 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15196   (eval "$ac_try") 2>&5
15197   ac_status=$?
15198   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15199   (exit $ac_status); }; } &&
15200          { ac_try='test -s conftest.$ac_objext'
15201   { (case "(($ac_try" in
15202   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15203   *) ac_try_echo=$ac_try;;
15204 esac
15205 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15206   (eval "$ac_try") 2>&5
15207   ac_status=$?
15208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15209   (exit $ac_status); }; }; then
15210   ac_cv_header_mmap_anon=yes
15211 else
15212   echo "$as_me: failed program was:" >&5
15213 sed 's/^/| /' conftest.$ac_ext >&5
15214
15215         ac_cv_header_mmap_anon=no
15216 fi
15217
15218 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15219   ac_ext=c
15220 ac_cpp='$CPP $CPPFLAGS'
15221 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
15222 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
15223 ac_compiler_gnu=$ac_cv_c_compiler_gnu
15224
15225
15226 fi
15227 { echo "$as_me:$LINENO: result: $ac_cv_header_mmap_anon" >&5
15228 echo "${ECHO_T}$ac_cv_header_mmap_anon" >&6; }
15229 if test "$ac_cv_header_mmap_anon" = yes; then
15230
15231 cat >>confdefs.h <<\_ACEOF
15232 #define HAVE_MMAP_ANONYMOUS 1
15233 _ACEOF
15234
15235 fi
15236
15237 { echo "$as_me:$LINENO: checking whether stat file-mode macros are broken" >&5
15238 echo $ECHO_N "checking whether stat file-mode macros are broken... $ECHO_C" >&6; }
15239 if test "${ac_cv_header_stat_broken+set}" = set; then
15240   echo $ECHO_N "(cached) $ECHO_C" >&6
15241 else
15242   cat >conftest.$ac_ext <<_ACEOF
15243 /* confdefs.h.  */
15244 _ACEOF
15245 cat confdefs.h >>conftest.$ac_ext
15246 cat >>conftest.$ac_ext <<_ACEOF
15247 /* end confdefs.h.  */
15248 #include <sys/types.h>
15249 #include <sys/stat.h>
15250
15251 #if defined S_ISBLK && defined S_IFDIR
15252 # if S_ISBLK (S_IFDIR)
15253 You lose.
15254 # endif
15255 #endif
15256
15257 #if defined S_ISBLK && defined S_IFCHR
15258 # if S_ISBLK (S_IFCHR)
15259 You lose.
15260 # endif
15261 #endif
15262
15263 #if defined S_ISLNK && defined S_IFREG
15264 # if S_ISLNK (S_IFREG)
15265 You lose.
15266 # endif
15267 #endif
15268
15269 #if defined S_ISSOCK && defined S_IFREG
15270 # if S_ISSOCK (S_IFREG)
15271 You lose.
15272 # endif
15273 #endif
15274
15275 _ACEOF
15276 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15277   $EGREP "You lose" >/dev/null 2>&1; then
15278   ac_cv_header_stat_broken=yes
15279 else
15280   ac_cv_header_stat_broken=no
15281 fi
15282 rm -f conftest*
15283
15284 fi
15285 { echo "$as_me:$LINENO: result: $ac_cv_header_stat_broken" >&5
15286 echo "${ECHO_T}$ac_cv_header_stat_broken" >&6; }
15287 if test $ac_cv_header_stat_broken = yes; then
15288
15289 cat >>confdefs.h <<\_ACEOF
15290 #define STAT_MACROS_BROKEN 1
15291 _ACEOF
15292
15293 fi
15294
15295 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
15296 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
15297 if test "${ac_cv_header_stdc+set}" = set; then
15298   echo $ECHO_N "(cached) $ECHO_C" >&6
15299 else
15300   cat >conftest.$ac_ext <<_ACEOF
15301 /* confdefs.h.  */
15302 _ACEOF
15303 cat confdefs.h >>conftest.$ac_ext
15304 cat >>conftest.$ac_ext <<_ACEOF
15305 /* end confdefs.h.  */
15306 #include <stdlib.h>
15307 #include <stdarg.h>
15308 #include <string.h>
15309 #include <float.h>
15310
15311 int
15312 main ()
15313 {
15314
15315   ;
15316   return 0;
15317 }
15318 _ACEOF
15319 rm -f conftest.$ac_objext
15320 if { (ac_try="$ac_compile"
15321 case "(($ac_try" in
15322   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15323   *) ac_try_echo=$ac_try;;
15324 esac
15325 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15326   (eval "$ac_compile") 2>conftest.er1
15327   ac_status=$?
15328   grep -v '^ *+' conftest.er1 >conftest.err
15329   rm -f conftest.er1
15330   cat conftest.err >&5
15331   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15332   (exit $ac_status); } &&
15333          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15334   { (case "(($ac_try" in
15335   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15336   *) ac_try_echo=$ac_try;;
15337 esac
15338 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15339   (eval "$ac_try") 2>&5
15340   ac_status=$?
15341   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15342   (exit $ac_status); }; } &&
15343          { ac_try='test -s conftest.$ac_objext'
15344   { (case "(($ac_try" in
15345   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15346   *) ac_try_echo=$ac_try;;
15347 esac
15348 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15349   (eval "$ac_try") 2>&5
15350   ac_status=$?
15351   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15352   (exit $ac_status); }; }; then
15353   ac_cv_header_stdc=yes
15354 else
15355   echo "$as_me: failed program was:" >&5
15356 sed 's/^/| /' conftest.$ac_ext >&5
15357
15358         ac_cv_header_stdc=no
15359 fi
15360
15361 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15362
15363 if test $ac_cv_header_stdc = yes; then
15364   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15365   cat >conftest.$ac_ext <<_ACEOF
15366 /* confdefs.h.  */
15367 _ACEOF
15368 cat confdefs.h >>conftest.$ac_ext
15369 cat >>conftest.$ac_ext <<_ACEOF
15370 /* end confdefs.h.  */
15371 #include <string.h>
15372
15373 _ACEOF
15374 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15375   $EGREP "memchr" >/dev/null 2>&1; then
15376   :
15377 else
15378   ac_cv_header_stdc=no
15379 fi
15380 rm -f conftest*
15381
15382 fi
15383
15384 if test $ac_cv_header_stdc = yes; then
15385   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15386   cat >conftest.$ac_ext <<_ACEOF
15387 /* confdefs.h.  */
15388 _ACEOF
15389 cat confdefs.h >>conftest.$ac_ext
15390 cat >>conftest.$ac_ext <<_ACEOF
15391 /* end confdefs.h.  */
15392 #include <stdlib.h>
15393
15394 _ACEOF
15395 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15396   $EGREP "free" >/dev/null 2>&1; then
15397   :
15398 else
15399   ac_cv_header_stdc=no
15400 fi
15401 rm -f conftest*
15402
15403 fi
15404
15405 if test $ac_cv_header_stdc = yes; then
15406   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15407   if test "$cross_compiling" = yes; then
15408   :
15409 else
15410   cat >conftest.$ac_ext <<_ACEOF
15411 /* confdefs.h.  */
15412 _ACEOF
15413 cat confdefs.h >>conftest.$ac_ext
15414 cat >>conftest.$ac_ext <<_ACEOF
15415 /* end confdefs.h.  */
15416 #include <ctype.h>
15417 #include <stdlib.h>
15418 #if ((' ' & 0x0FF) == 0x020)
15419 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15420 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15421 #else
15422 # define ISLOWER(c) \
15423                    (('a' <= (c) && (c) <= 'i') \
15424                      || ('j' <= (c) && (c) <= 'r') \
15425                      || ('s' <= (c) && (c) <= 'z'))
15426 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15427 #endif
15428
15429 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15430 int
15431 main ()
15432 {
15433   int i;
15434   for (i = 0; i < 256; i++)
15435     if (XOR (islower (i), ISLOWER (i))
15436         || toupper (i) != TOUPPER (i))
15437       return 2;
15438   return 0;
15439 }
15440 _ACEOF
15441 rm -f conftest$ac_exeext
15442 if { (ac_try="$ac_link"
15443 case "(($ac_try" in
15444   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15445   *) ac_try_echo=$ac_try;;
15446 esac
15447 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15448   (eval "$ac_link") 2>&5
15449   ac_status=$?
15450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15451   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
15452   { (case "(($ac_try" in
15453   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15454   *) ac_try_echo=$ac_try;;
15455 esac
15456 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15457   (eval "$ac_try") 2>&5
15458   ac_status=$?
15459   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15460   (exit $ac_status); }; }; then
15461   :
15462 else
15463   echo "$as_me: program exited with status $ac_status" >&5
15464 echo "$as_me: failed program was:" >&5
15465 sed 's/^/| /' conftest.$ac_ext >&5
15466
15467 ( exit $ac_status )
15468 ac_cv_header_stdc=no
15469 fi
15470 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
15471 fi
15472
15473
15474 fi
15475 fi
15476 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
15477 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
15478 if test $ac_cv_header_stdc = yes; then
15479
15480 cat >>confdefs.h <<\_ACEOF
15481 #define STDC_HEADERS 1
15482 _ACEOF
15483
15484 fi
15485
15486 { echo "$as_me:$LINENO: checking for sys/wait.h that is POSIX.1 compatible" >&5
15487 echo $ECHO_N "checking for sys/wait.h that is POSIX.1 compatible... $ECHO_C" >&6; }
15488 if test "${ac_cv_header_sys_wait_h+set}" = set; then
15489   echo $ECHO_N "(cached) $ECHO_C" >&6
15490 else
15491   cat >conftest.$ac_ext <<_ACEOF
15492 /* confdefs.h.  */
15493 _ACEOF
15494 cat confdefs.h >>conftest.$ac_ext
15495 cat >>conftest.$ac_ext <<_ACEOF
15496 /* end confdefs.h.  */
15497 #include <sys/types.h>
15498 #include <sys/wait.h>
15499 #ifndef WEXITSTATUS
15500 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15501 #endif
15502 #ifndef WIFEXITED
15503 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15504 #endif
15505
15506 int
15507 main ()
15508 {
15509   int s;
15510   wait (&s);
15511   s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15512   ;
15513   return 0;
15514 }
15515 _ACEOF
15516 rm -f conftest.$ac_objext
15517 if { (ac_try="$ac_compile"
15518 case "(($ac_try" in
15519   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15520   *) ac_try_echo=$ac_try;;
15521 esac
15522 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15523   (eval "$ac_compile") 2>conftest.er1
15524   ac_status=$?
15525   grep -v '^ *+' conftest.er1 >conftest.err
15526   rm -f conftest.er1
15527   cat conftest.err >&5
15528   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15529   (exit $ac_status); } &&
15530          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15531   { (case "(($ac_try" in
15532   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15533   *) ac_try_echo=$ac_try;;
15534 esac
15535 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15536   (eval "$ac_try") 2>&5
15537   ac_status=$?
15538   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15539   (exit $ac_status); }; } &&
15540          { ac_try='test -s conftest.$ac_objext'
15541   { (case "(($ac_try" in
15542   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15543   *) ac_try_echo=$ac_try;;
15544 esac
15545 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15546   (eval "$ac_try") 2>&5
15547   ac_status=$?
15548   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15549   (exit $ac_status); }; }; then
15550   ac_cv_header_sys_wait_h=yes
15551 else
15552   echo "$as_me: failed program was:" >&5
15553 sed 's/^/| /' conftest.$ac_ext >&5
15554
15555         ac_cv_header_sys_wait_h=no
15556 fi
15557
15558 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15559 fi
15560 { echo "$as_me:$LINENO: result: $ac_cv_header_sys_wait_h" >&5
15561 echo "${ECHO_T}$ac_cv_header_sys_wait_h" >&6; }
15562 if test $ac_cv_header_sys_wait_h = yes; then
15563
15564 cat >>confdefs.h <<\_ACEOF
15565 #define HAVE_SYS_WAIT_H 1
15566 _ACEOF
15567
15568 fi
15569
15570 { echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
15571 echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6; }
15572 if test "${ac_cv_header_time+set}" = set; then
15573   echo $ECHO_N "(cached) $ECHO_C" >&6
15574 else
15575   cat >conftest.$ac_ext <<_ACEOF
15576 /* confdefs.h.  */
15577 _ACEOF
15578 cat confdefs.h >>conftest.$ac_ext
15579 cat >>conftest.$ac_ext <<_ACEOF
15580 /* end confdefs.h.  */
15581 #include <sys/types.h>
15582 #include <sys/time.h>
15583 #include <time.h>
15584
15585 int
15586 main ()
15587 {
15588 if ((struct tm *) 0)
15589 return 0;
15590   ;
15591   return 0;
15592 }
15593 _ACEOF
15594 rm -f conftest.$ac_objext
15595 if { (ac_try="$ac_compile"
15596 case "(($ac_try" in
15597   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15598   *) ac_try_echo=$ac_try;;
15599 esac
15600 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15601   (eval "$ac_compile") 2>conftest.er1
15602   ac_status=$?
15603   grep -v '^ *+' conftest.er1 >conftest.err
15604   rm -f conftest.er1
15605   cat conftest.err >&5
15606   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15607   (exit $ac_status); } &&
15608          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15609   { (case "(($ac_try" in
15610   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15611   *) ac_try_echo=$ac_try;;
15612 esac
15613 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15614   (eval "$ac_try") 2>&5
15615   ac_status=$?
15616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15617   (exit $ac_status); }; } &&
15618          { ac_try='test -s conftest.$ac_objext'
15619   { (case "(($ac_try" in
15620   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15621   *) ac_try_echo=$ac_try;;
15622 esac
15623 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15624   (eval "$ac_try") 2>&5
15625   ac_status=$?
15626   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15627   (exit $ac_status); }; }; then
15628   ac_cv_header_time=yes
15629 else
15630   echo "$as_me: failed program was:" >&5
15631 sed 's/^/| /' conftest.$ac_ext >&5
15632
15633         ac_cv_header_time=no
15634 fi
15635
15636 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15637 fi
15638 { echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
15639 echo "${ECHO_T}$ac_cv_header_time" >&6; }
15640 if test $ac_cv_header_time = yes; then
15641
15642 cat >>confdefs.h <<\_ACEOF
15643 #define TIME_WITH_SYS_TIME 1
15644 _ACEOF
15645
15646 fi
15647
15648
15649
15650
15651
15652
15653
15654
15655 for ac_header in dlfcn.h execinfo.h fcntl.h inttypes.h limits.h link.h
15656 do
15657 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15658 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15659   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15662   echo $ECHO_N "(cached) $ECHO_C" >&6
15663 fi
15664 ac_res=`eval echo '${'$as_ac_Header'}'`
15665                { echo "$as_me:$LINENO: result: $ac_res" >&5
15666 echo "${ECHO_T}$ac_res" >&6; }
15667 else
15668   # Is the header compilable?
15669 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15670 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15671 cat >conftest.$ac_ext <<_ACEOF
15672 /* confdefs.h.  */
15673 _ACEOF
15674 cat confdefs.h >>conftest.$ac_ext
15675 cat >>conftest.$ac_ext <<_ACEOF
15676 /* end confdefs.h.  */
15677 $ac_includes_default
15678 #include <$ac_header>
15679 _ACEOF
15680 rm -f conftest.$ac_objext
15681 if { (ac_try="$ac_compile"
15682 case "(($ac_try" in
15683   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15684   *) ac_try_echo=$ac_try;;
15685 esac
15686 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15687   (eval "$ac_compile") 2>conftest.er1
15688   ac_status=$?
15689   grep -v '^ *+' conftest.er1 >conftest.err
15690   rm -f conftest.er1
15691   cat conftest.err >&5
15692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15693   (exit $ac_status); } &&
15694          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15695   { (case "(($ac_try" in
15696   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15697   *) ac_try_echo=$ac_try;;
15698 esac
15699 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15700   (eval "$ac_try") 2>&5
15701   ac_status=$?
15702   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15703   (exit $ac_status); }; } &&
15704          { ac_try='test -s conftest.$ac_objext'
15705   { (case "(($ac_try" in
15706   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15707   *) ac_try_echo=$ac_try;;
15708 esac
15709 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15710   (eval "$ac_try") 2>&5
15711   ac_status=$?
15712   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15713   (exit $ac_status); }; }; then
15714   ac_header_compiler=yes
15715 else
15716   echo "$as_me: failed program was:" >&5
15717 sed 's/^/| /' conftest.$ac_ext >&5
15718
15719         ac_header_compiler=no
15720 fi
15721
15722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15723 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15724 echo "${ECHO_T}$ac_header_compiler" >&6; }
15725
15726 # Is the header present?
15727 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15728 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15729 cat >conftest.$ac_ext <<_ACEOF
15730 /* confdefs.h.  */
15731 _ACEOF
15732 cat confdefs.h >>conftest.$ac_ext
15733 cat >>conftest.$ac_ext <<_ACEOF
15734 /* end confdefs.h.  */
15735 #include <$ac_header>
15736 _ACEOF
15737 if { (ac_try="$ac_cpp conftest.$ac_ext"
15738 case "(($ac_try" in
15739   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15740   *) ac_try_echo=$ac_try;;
15741 esac
15742 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15743   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15744   ac_status=$?
15745   grep -v '^ *+' conftest.er1 >conftest.err
15746   rm -f conftest.er1
15747   cat conftest.err >&5
15748   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15749   (exit $ac_status); } >/dev/null; then
15750   if test -s conftest.err; then
15751     ac_cpp_err=$ac_c_preproc_warn_flag
15752     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15753   else
15754     ac_cpp_err=
15755   fi
15756 else
15757   ac_cpp_err=yes
15758 fi
15759 if test -z "$ac_cpp_err"; then
15760   ac_header_preproc=yes
15761 else
15762   echo "$as_me: failed program was:" >&5
15763 sed 's/^/| /' conftest.$ac_ext >&5
15764
15765   ac_header_preproc=no
15766 fi
15767
15768 rm -f conftest.err conftest.$ac_ext
15769 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15770 echo "${ECHO_T}$ac_header_preproc" >&6; }
15771
15772 # So?  What about this header?
15773 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15774   yes:no: )
15775     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15776 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15777     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15778 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15779     ac_header_preproc=yes
15780     ;;
15781   no:yes:* )
15782     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15783 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15784     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15785 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15786     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15787 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15788     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15789 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15790     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15791 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15792     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15793 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15794     ( cat <<\_ASBOX
15795 ## ----------------------------------- ##
15796 ## Report this to llvmbugs@cs.uiuc.edu ##
15797 ## ----------------------------------- ##
15798 _ASBOX
15799      ) | sed "s/^/$as_me: WARNING:     /" >&2
15800     ;;
15801 esac
15802 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15803 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15804 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15805   echo $ECHO_N "(cached) $ECHO_C" >&6
15806 else
15807   eval "$as_ac_Header=\$ac_header_preproc"
15808 fi
15809 ac_res=`eval echo '${'$as_ac_Header'}'`
15810                { echo "$as_me:$LINENO: result: $ac_res" >&5
15811 echo "${ECHO_T}$ac_res" >&6; }
15812
15813 fi
15814 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15815   cat >>confdefs.h <<_ACEOF
15816 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15817 _ACEOF
15818
15819 fi
15820
15821 done
15822
15823
15824
15825
15826
15827
15828
15829 for ac_header in malloc.h setjmp.h signal.h stdint.h termios.h unistd.h
15830 do
15831 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
15832 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15833   { echo "$as_me:$LINENO: checking for $ac_header" >&5
15834 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15835 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15836   echo $ECHO_N "(cached) $ECHO_C" >&6
15837 fi
15838 ac_res=`eval echo '${'$as_ac_Header'}'`
15839                { echo "$as_me:$LINENO: result: $ac_res" >&5
15840 echo "${ECHO_T}$ac_res" >&6; }
15841 else
15842   # Is the header compilable?
15843 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
15844 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
15845 cat >conftest.$ac_ext <<_ACEOF
15846 /* confdefs.h.  */
15847 _ACEOF
15848 cat confdefs.h >>conftest.$ac_ext
15849 cat >>conftest.$ac_ext <<_ACEOF
15850 /* end confdefs.h.  */
15851 $ac_includes_default
15852 #include <$ac_header>
15853 _ACEOF
15854 rm -f conftest.$ac_objext
15855 if { (ac_try="$ac_compile"
15856 case "(($ac_try" in
15857   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15858   *) ac_try_echo=$ac_try;;
15859 esac
15860 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15861   (eval "$ac_compile") 2>conftest.er1
15862   ac_status=$?
15863   grep -v '^ *+' conftest.er1 >conftest.err
15864   rm -f conftest.er1
15865   cat conftest.err >&5
15866   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15867   (exit $ac_status); } &&
15868          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
15869   { (case "(($ac_try" in
15870   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15871   *) ac_try_echo=$ac_try;;
15872 esac
15873 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15874   (eval "$ac_try") 2>&5
15875   ac_status=$?
15876   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15877   (exit $ac_status); }; } &&
15878          { ac_try='test -s conftest.$ac_objext'
15879   { (case "(($ac_try" in
15880   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15881   *) ac_try_echo=$ac_try;;
15882 esac
15883 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15884   (eval "$ac_try") 2>&5
15885   ac_status=$?
15886   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15887   (exit $ac_status); }; }; then
15888   ac_header_compiler=yes
15889 else
15890   echo "$as_me: failed program was:" >&5
15891 sed 's/^/| /' conftest.$ac_ext >&5
15892
15893         ac_header_compiler=no
15894 fi
15895
15896 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15897 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
15898 echo "${ECHO_T}$ac_header_compiler" >&6; }
15899
15900 # Is the header present?
15901 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
15902 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
15903 cat >conftest.$ac_ext <<_ACEOF
15904 /* confdefs.h.  */
15905 _ACEOF
15906 cat confdefs.h >>conftest.$ac_ext
15907 cat >>conftest.$ac_ext <<_ACEOF
15908 /* end confdefs.h.  */
15909 #include <$ac_header>
15910 _ACEOF
15911 if { (ac_try="$ac_cpp conftest.$ac_ext"
15912 case "(($ac_try" in
15913   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
15914   *) ac_try_echo=$ac_try;;
15915 esac
15916 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
15917   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
15918   ac_status=$?
15919   grep -v '^ *+' conftest.er1 >conftest.err
15920   rm -f conftest.er1
15921   cat conftest.err >&5
15922   echo "$as_me:$LINENO: \$? = $ac_status" >&5
15923   (exit $ac_status); } >/dev/null; then
15924   if test -s conftest.err; then
15925     ac_cpp_err=$ac_c_preproc_warn_flag
15926     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
15927   else
15928     ac_cpp_err=
15929   fi
15930 else
15931   ac_cpp_err=yes
15932 fi
15933 if test -z "$ac_cpp_err"; then
15934   ac_header_preproc=yes
15935 else
15936   echo "$as_me: failed program was:" >&5
15937 sed 's/^/| /' conftest.$ac_ext >&5
15938
15939   ac_header_preproc=no
15940 fi
15941
15942 rm -f conftest.err conftest.$ac_ext
15943 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
15944 echo "${ECHO_T}$ac_header_preproc" >&6; }
15945
15946 # So?  What about this header?
15947 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
15948   yes:no: )
15949     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
15950 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
15951     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
15952 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
15953     ac_header_preproc=yes
15954     ;;
15955   no:yes:* )
15956     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
15957 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
15958     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
15959 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
15960     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
15961 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
15962     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
15963 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
15964     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
15965 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
15966     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
15967 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
15968     ( cat <<\_ASBOX
15969 ## ----------------------------------- ##
15970 ## Report this to llvmbugs@cs.uiuc.edu ##
15971 ## ----------------------------------- ##
15972 _ASBOX
15973      ) | sed "s/^/$as_me: WARNING:     /" >&2
15974     ;;
15975 esac
15976 { echo "$as_me:$LINENO: checking for $ac_header" >&5
15977 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
15978 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
15979   echo $ECHO_N "(cached) $ECHO_C" >&6
15980 else
15981   eval "$as_ac_Header=\$ac_header_preproc"
15982 fi
15983 ac_res=`eval echo '${'$as_ac_Header'}'`
15984                { echo "$as_me:$LINENO: result: $ac_res" >&5
15985 echo "${ECHO_T}$ac_res" >&6; }
15986
15987 fi
15988 if test `eval echo '${'$as_ac_Header'}'` = yes; then
15989   cat >>confdefs.h <<_ACEOF
15990 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
15991 _ACEOF
15992
15993 fi
15994
15995 done
15996
15997
15998
15999 for ac_header in utime.h windows.h
16000 do
16001 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16002 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16003   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16004 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16005 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16006   echo $ECHO_N "(cached) $ECHO_C" >&6
16007 fi
16008 ac_res=`eval echo '${'$as_ac_Header'}'`
16009                { echo "$as_me:$LINENO: result: $ac_res" >&5
16010 echo "${ECHO_T}$ac_res" >&6; }
16011 else
16012   # Is the header compilable?
16013 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16014 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16015 cat >conftest.$ac_ext <<_ACEOF
16016 /* confdefs.h.  */
16017 _ACEOF
16018 cat confdefs.h >>conftest.$ac_ext
16019 cat >>conftest.$ac_ext <<_ACEOF
16020 /* end confdefs.h.  */
16021 $ac_includes_default
16022 #include <$ac_header>
16023 _ACEOF
16024 rm -f conftest.$ac_objext
16025 if { (ac_try="$ac_compile"
16026 case "(($ac_try" in
16027   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16028   *) ac_try_echo=$ac_try;;
16029 esac
16030 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16031   (eval "$ac_compile") 2>conftest.er1
16032   ac_status=$?
16033   grep -v '^ *+' conftest.er1 >conftest.err
16034   rm -f conftest.er1
16035   cat conftest.err >&5
16036   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16037   (exit $ac_status); } &&
16038          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16039   { (case "(($ac_try" in
16040   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16041   *) ac_try_echo=$ac_try;;
16042 esac
16043 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16044   (eval "$ac_try") 2>&5
16045   ac_status=$?
16046   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16047   (exit $ac_status); }; } &&
16048          { ac_try='test -s conftest.$ac_objext'
16049   { (case "(($ac_try" in
16050   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16051   *) ac_try_echo=$ac_try;;
16052 esac
16053 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16054   (eval "$ac_try") 2>&5
16055   ac_status=$?
16056   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16057   (exit $ac_status); }; }; then
16058   ac_header_compiler=yes
16059 else
16060   echo "$as_me: failed program was:" >&5
16061 sed 's/^/| /' conftest.$ac_ext >&5
16062
16063         ac_header_compiler=no
16064 fi
16065
16066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16067 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16068 echo "${ECHO_T}$ac_header_compiler" >&6; }
16069
16070 # Is the header present?
16071 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16072 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16073 cat >conftest.$ac_ext <<_ACEOF
16074 /* confdefs.h.  */
16075 _ACEOF
16076 cat confdefs.h >>conftest.$ac_ext
16077 cat >>conftest.$ac_ext <<_ACEOF
16078 /* end confdefs.h.  */
16079 #include <$ac_header>
16080 _ACEOF
16081 if { (ac_try="$ac_cpp conftest.$ac_ext"
16082 case "(($ac_try" in
16083   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16084   *) ac_try_echo=$ac_try;;
16085 esac
16086 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16087   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16088   ac_status=$?
16089   grep -v '^ *+' conftest.er1 >conftest.err
16090   rm -f conftest.er1
16091   cat conftest.err >&5
16092   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16093   (exit $ac_status); } >/dev/null; then
16094   if test -s conftest.err; then
16095     ac_cpp_err=$ac_c_preproc_warn_flag
16096     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16097   else
16098     ac_cpp_err=
16099   fi
16100 else
16101   ac_cpp_err=yes
16102 fi
16103 if test -z "$ac_cpp_err"; then
16104   ac_header_preproc=yes
16105 else
16106   echo "$as_me: failed program was:" >&5
16107 sed 's/^/| /' conftest.$ac_ext >&5
16108
16109   ac_header_preproc=no
16110 fi
16111
16112 rm -f conftest.err conftest.$ac_ext
16113 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16114 echo "${ECHO_T}$ac_header_preproc" >&6; }
16115
16116 # So?  What about this header?
16117 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16118   yes:no: )
16119     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16120 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16121     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16122 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16123     ac_header_preproc=yes
16124     ;;
16125   no:yes:* )
16126     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16127 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16128     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16129 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16130     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16131 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16132     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16133 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16134     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16135 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16136     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16137 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16138     ( cat <<\_ASBOX
16139 ## ----------------------------------- ##
16140 ## Report this to llvmbugs@cs.uiuc.edu ##
16141 ## ----------------------------------- ##
16142 _ASBOX
16143      ) | sed "s/^/$as_me: WARNING:     /" >&2
16144     ;;
16145 esac
16146 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16147 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16148 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16149   echo $ECHO_N "(cached) $ECHO_C" >&6
16150 else
16151   eval "$as_ac_Header=\$ac_header_preproc"
16152 fi
16153 ac_res=`eval echo '${'$as_ac_Header'}'`
16154                { echo "$as_me:$LINENO: result: $ac_res" >&5
16155 echo "${ECHO_T}$ac_res" >&6; }
16156
16157 fi
16158 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16159   cat >>confdefs.h <<_ACEOF
16160 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16161 _ACEOF
16162
16163 fi
16164
16165 done
16166
16167
16168
16169
16170
16171 for ac_header in sys/mman.h sys/param.h sys/resource.h sys/time.h
16172 do
16173 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16174 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16175   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16176 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16177 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16178   echo $ECHO_N "(cached) $ECHO_C" >&6
16179 fi
16180 ac_res=`eval echo '${'$as_ac_Header'}'`
16181                { echo "$as_me:$LINENO: result: $ac_res" >&5
16182 echo "${ECHO_T}$ac_res" >&6; }
16183 else
16184   # Is the header compilable?
16185 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16186 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16187 cat >conftest.$ac_ext <<_ACEOF
16188 /* confdefs.h.  */
16189 _ACEOF
16190 cat confdefs.h >>conftest.$ac_ext
16191 cat >>conftest.$ac_ext <<_ACEOF
16192 /* end confdefs.h.  */
16193 $ac_includes_default
16194 #include <$ac_header>
16195 _ACEOF
16196 rm -f conftest.$ac_objext
16197 if { (ac_try="$ac_compile"
16198 case "(($ac_try" in
16199   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16200   *) ac_try_echo=$ac_try;;
16201 esac
16202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16203   (eval "$ac_compile") 2>conftest.er1
16204   ac_status=$?
16205   grep -v '^ *+' conftest.er1 >conftest.err
16206   rm -f conftest.er1
16207   cat conftest.err >&5
16208   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16209   (exit $ac_status); } &&
16210          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16211   { (case "(($ac_try" in
16212   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16213   *) ac_try_echo=$ac_try;;
16214 esac
16215 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16216   (eval "$ac_try") 2>&5
16217   ac_status=$?
16218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16219   (exit $ac_status); }; } &&
16220          { ac_try='test -s conftest.$ac_objext'
16221   { (case "(($ac_try" in
16222   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16223   *) ac_try_echo=$ac_try;;
16224 esac
16225 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16226   (eval "$ac_try") 2>&5
16227   ac_status=$?
16228   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16229   (exit $ac_status); }; }; then
16230   ac_header_compiler=yes
16231 else
16232   echo "$as_me: failed program was:" >&5
16233 sed 's/^/| /' conftest.$ac_ext >&5
16234
16235         ac_header_compiler=no
16236 fi
16237
16238 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16239 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16240 echo "${ECHO_T}$ac_header_compiler" >&6; }
16241
16242 # Is the header present?
16243 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16244 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16245 cat >conftest.$ac_ext <<_ACEOF
16246 /* confdefs.h.  */
16247 _ACEOF
16248 cat confdefs.h >>conftest.$ac_ext
16249 cat >>conftest.$ac_ext <<_ACEOF
16250 /* end confdefs.h.  */
16251 #include <$ac_header>
16252 _ACEOF
16253 if { (ac_try="$ac_cpp conftest.$ac_ext"
16254 case "(($ac_try" in
16255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16256   *) ac_try_echo=$ac_try;;
16257 esac
16258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16259   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16260   ac_status=$?
16261   grep -v '^ *+' conftest.er1 >conftest.err
16262   rm -f conftest.er1
16263   cat conftest.err >&5
16264   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16265   (exit $ac_status); } >/dev/null; then
16266   if test -s conftest.err; then
16267     ac_cpp_err=$ac_c_preproc_warn_flag
16268     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16269   else
16270     ac_cpp_err=
16271   fi
16272 else
16273   ac_cpp_err=yes
16274 fi
16275 if test -z "$ac_cpp_err"; then
16276   ac_header_preproc=yes
16277 else
16278   echo "$as_me: failed program was:" >&5
16279 sed 's/^/| /' conftest.$ac_ext >&5
16280
16281   ac_header_preproc=no
16282 fi
16283
16284 rm -f conftest.err conftest.$ac_ext
16285 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16286 echo "${ECHO_T}$ac_header_preproc" >&6; }
16287
16288 # So?  What about this header?
16289 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16290   yes:no: )
16291     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16292 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16293     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16294 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16295     ac_header_preproc=yes
16296     ;;
16297   no:yes:* )
16298     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16299 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16300     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16301 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16302     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16303 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16304     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16305 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16306     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16307 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16308     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16309 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16310     ( cat <<\_ASBOX
16311 ## ----------------------------------- ##
16312 ## Report this to llvmbugs@cs.uiuc.edu ##
16313 ## ----------------------------------- ##
16314 _ASBOX
16315      ) | sed "s/^/$as_me: WARNING:     /" >&2
16316     ;;
16317 esac
16318 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16319 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16320 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16321   echo $ECHO_N "(cached) $ECHO_C" >&6
16322 else
16323   eval "$as_ac_Header=\$ac_header_preproc"
16324 fi
16325 ac_res=`eval echo '${'$as_ac_Header'}'`
16326                { echo "$as_me:$LINENO: result: $ac_res" >&5
16327 echo "${ECHO_T}$ac_res" >&6; }
16328
16329 fi
16330 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16331   cat >>confdefs.h <<_ACEOF
16332 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16333 _ACEOF
16334
16335 fi
16336
16337 done
16338
16339
16340
16341
16342
16343 for ac_header in sys/types.h sys/ioctl.h malloc/malloc.h mach/mach.h
16344 do
16345 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16346 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16347   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16348 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16349 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16350   echo $ECHO_N "(cached) $ECHO_C" >&6
16351 fi
16352 ac_res=`eval echo '${'$as_ac_Header'}'`
16353                { echo "$as_me:$LINENO: result: $ac_res" >&5
16354 echo "${ECHO_T}$ac_res" >&6; }
16355 else
16356   # Is the header compilable?
16357 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16358 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16359 cat >conftest.$ac_ext <<_ACEOF
16360 /* confdefs.h.  */
16361 _ACEOF
16362 cat confdefs.h >>conftest.$ac_ext
16363 cat >>conftest.$ac_ext <<_ACEOF
16364 /* end confdefs.h.  */
16365 $ac_includes_default
16366 #include <$ac_header>
16367 _ACEOF
16368 rm -f conftest.$ac_objext
16369 if { (ac_try="$ac_compile"
16370 case "(($ac_try" in
16371   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16372   *) ac_try_echo=$ac_try;;
16373 esac
16374 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16375   (eval "$ac_compile") 2>conftest.er1
16376   ac_status=$?
16377   grep -v '^ *+' conftest.er1 >conftest.err
16378   rm -f conftest.er1
16379   cat conftest.err >&5
16380   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16381   (exit $ac_status); } &&
16382          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16383   { (case "(($ac_try" in
16384   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16385   *) ac_try_echo=$ac_try;;
16386 esac
16387 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16388   (eval "$ac_try") 2>&5
16389   ac_status=$?
16390   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16391   (exit $ac_status); }; } &&
16392          { ac_try='test -s conftest.$ac_objext'
16393   { (case "(($ac_try" in
16394   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16395   *) ac_try_echo=$ac_try;;
16396 esac
16397 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16398   (eval "$ac_try") 2>&5
16399   ac_status=$?
16400   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16401   (exit $ac_status); }; }; then
16402   ac_header_compiler=yes
16403 else
16404   echo "$as_me: failed program was:" >&5
16405 sed 's/^/| /' conftest.$ac_ext >&5
16406
16407         ac_header_compiler=no
16408 fi
16409
16410 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16411 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16412 echo "${ECHO_T}$ac_header_compiler" >&6; }
16413
16414 # Is the header present?
16415 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16416 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16417 cat >conftest.$ac_ext <<_ACEOF
16418 /* confdefs.h.  */
16419 _ACEOF
16420 cat confdefs.h >>conftest.$ac_ext
16421 cat >>conftest.$ac_ext <<_ACEOF
16422 /* end confdefs.h.  */
16423 #include <$ac_header>
16424 _ACEOF
16425 if { (ac_try="$ac_cpp conftest.$ac_ext"
16426 case "(($ac_try" in
16427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16428   *) ac_try_echo=$ac_try;;
16429 esac
16430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16431   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16432   ac_status=$?
16433   grep -v '^ *+' conftest.er1 >conftest.err
16434   rm -f conftest.er1
16435   cat conftest.err >&5
16436   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16437   (exit $ac_status); } >/dev/null; then
16438   if test -s conftest.err; then
16439     ac_cpp_err=$ac_c_preproc_warn_flag
16440     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16441   else
16442     ac_cpp_err=
16443   fi
16444 else
16445   ac_cpp_err=yes
16446 fi
16447 if test -z "$ac_cpp_err"; then
16448   ac_header_preproc=yes
16449 else
16450   echo "$as_me: failed program was:" >&5
16451 sed 's/^/| /' conftest.$ac_ext >&5
16452
16453   ac_header_preproc=no
16454 fi
16455
16456 rm -f conftest.err conftest.$ac_ext
16457 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16458 echo "${ECHO_T}$ac_header_preproc" >&6; }
16459
16460 # So?  What about this header?
16461 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16462   yes:no: )
16463     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16464 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16465     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16466 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16467     ac_header_preproc=yes
16468     ;;
16469   no:yes:* )
16470     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16471 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16472     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16473 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16474     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16475 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16476     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16477 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16478     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16479 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16480     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16481 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16482     ( cat <<\_ASBOX
16483 ## ----------------------------------- ##
16484 ## Report this to llvmbugs@cs.uiuc.edu ##
16485 ## ----------------------------------- ##
16486 _ASBOX
16487      ) | sed "s/^/$as_me: WARNING:     /" >&2
16488     ;;
16489 esac
16490 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16491 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16492 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16493   echo $ECHO_N "(cached) $ECHO_C" >&6
16494 else
16495   eval "$as_ac_Header=\$ac_header_preproc"
16496 fi
16497 ac_res=`eval echo '${'$as_ac_Header'}'`
16498                { echo "$as_me:$LINENO: result: $ac_res" >&5
16499 echo "${ECHO_T}$ac_res" >&6; }
16500
16501 fi
16502 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16503   cat >>confdefs.h <<_ACEOF
16504 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16505 _ACEOF
16506
16507 fi
16508
16509 done
16510
16511
16512 for ac_header in valgrind/valgrind.h
16513 do
16514 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16515 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16516   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16517 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16518 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16519   echo $ECHO_N "(cached) $ECHO_C" >&6
16520 fi
16521 ac_res=`eval echo '${'$as_ac_Header'}'`
16522                { echo "$as_me:$LINENO: result: $ac_res" >&5
16523 echo "${ECHO_T}$ac_res" >&6; }
16524 else
16525   # Is the header compilable?
16526 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16527 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16528 cat >conftest.$ac_ext <<_ACEOF
16529 /* confdefs.h.  */
16530 _ACEOF
16531 cat confdefs.h >>conftest.$ac_ext
16532 cat >>conftest.$ac_ext <<_ACEOF
16533 /* end confdefs.h.  */
16534 $ac_includes_default
16535 #include <$ac_header>
16536 _ACEOF
16537 rm -f conftest.$ac_objext
16538 if { (ac_try="$ac_compile"
16539 case "(($ac_try" in
16540   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16541   *) ac_try_echo=$ac_try;;
16542 esac
16543 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16544   (eval "$ac_compile") 2>conftest.er1
16545   ac_status=$?
16546   grep -v '^ *+' conftest.er1 >conftest.err
16547   rm -f conftest.er1
16548   cat conftest.err >&5
16549   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16550   (exit $ac_status); } &&
16551          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16552   { (case "(($ac_try" in
16553   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16554   *) ac_try_echo=$ac_try;;
16555 esac
16556 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16557   (eval "$ac_try") 2>&5
16558   ac_status=$?
16559   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16560   (exit $ac_status); }; } &&
16561          { ac_try='test -s conftest.$ac_objext'
16562   { (case "(($ac_try" in
16563   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16564   *) ac_try_echo=$ac_try;;
16565 esac
16566 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16567   (eval "$ac_try") 2>&5
16568   ac_status=$?
16569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16570   (exit $ac_status); }; }; then
16571   ac_header_compiler=yes
16572 else
16573   echo "$as_me: failed program was:" >&5
16574 sed 's/^/| /' conftest.$ac_ext >&5
16575
16576         ac_header_compiler=no
16577 fi
16578
16579 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16580 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16581 echo "${ECHO_T}$ac_header_compiler" >&6; }
16582
16583 # Is the header present?
16584 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16585 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16586 cat >conftest.$ac_ext <<_ACEOF
16587 /* confdefs.h.  */
16588 _ACEOF
16589 cat confdefs.h >>conftest.$ac_ext
16590 cat >>conftest.$ac_ext <<_ACEOF
16591 /* end confdefs.h.  */
16592 #include <$ac_header>
16593 _ACEOF
16594 if { (ac_try="$ac_cpp conftest.$ac_ext"
16595 case "(($ac_try" in
16596   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16597   *) ac_try_echo=$ac_try;;
16598 esac
16599 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16600   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16601   ac_status=$?
16602   grep -v '^ *+' conftest.er1 >conftest.err
16603   rm -f conftest.er1
16604   cat conftest.err >&5
16605   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16606   (exit $ac_status); } >/dev/null; then
16607   if test -s conftest.err; then
16608     ac_cpp_err=$ac_c_preproc_warn_flag
16609     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16610   else
16611     ac_cpp_err=
16612   fi
16613 else
16614   ac_cpp_err=yes
16615 fi
16616 if test -z "$ac_cpp_err"; then
16617   ac_header_preproc=yes
16618 else
16619   echo "$as_me: failed program was:" >&5
16620 sed 's/^/| /' conftest.$ac_ext >&5
16621
16622   ac_header_preproc=no
16623 fi
16624
16625 rm -f conftest.err conftest.$ac_ext
16626 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16627 echo "${ECHO_T}$ac_header_preproc" >&6; }
16628
16629 # So?  What about this header?
16630 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16631   yes:no: )
16632     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16633 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16634     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16635 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16636     ac_header_preproc=yes
16637     ;;
16638   no:yes:* )
16639     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16640 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16641     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16642 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16643     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16644 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16645     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16646 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16647     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16648 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16649     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16650 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16651     ( cat <<\_ASBOX
16652 ## ----------------------------------- ##
16653 ## Report this to llvmbugs@cs.uiuc.edu ##
16654 ## ----------------------------------- ##
16655 _ASBOX
16656      ) | sed "s/^/$as_me: WARNING:     /" >&2
16657     ;;
16658 esac
16659 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16660 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16661 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16662   echo $ECHO_N "(cached) $ECHO_C" >&6
16663 else
16664   eval "$as_ac_Header=\$ac_header_preproc"
16665 fi
16666 ac_res=`eval echo '${'$as_ac_Header'}'`
16667                { echo "$as_me:$LINENO: result: $ac_res" >&5
16668 echo "${ECHO_T}$ac_res" >&6; }
16669
16670 fi
16671 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16672   cat >>confdefs.h <<_ACEOF
16673 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16674 _ACEOF
16675
16676 fi
16677
16678 done
16679
16680
16681 for ac_header in fenv.h
16682 do
16683 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16684 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16685   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16686 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16687 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16688   echo $ECHO_N "(cached) $ECHO_C" >&6
16689 fi
16690 ac_res=`eval echo '${'$as_ac_Header'}'`
16691                { echo "$as_me:$LINENO: result: $ac_res" >&5
16692 echo "${ECHO_T}$ac_res" >&6; }
16693 else
16694   # Is the header compilable?
16695 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16696 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16697 cat >conftest.$ac_ext <<_ACEOF
16698 /* confdefs.h.  */
16699 _ACEOF
16700 cat confdefs.h >>conftest.$ac_ext
16701 cat >>conftest.$ac_ext <<_ACEOF
16702 /* end confdefs.h.  */
16703 $ac_includes_default
16704 #include <$ac_header>
16705 _ACEOF
16706 rm -f conftest.$ac_objext
16707 if { (ac_try="$ac_compile"
16708 case "(($ac_try" in
16709   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16710   *) ac_try_echo=$ac_try;;
16711 esac
16712 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16713   (eval "$ac_compile") 2>conftest.er1
16714   ac_status=$?
16715   grep -v '^ *+' conftest.er1 >conftest.err
16716   rm -f conftest.er1
16717   cat conftest.err >&5
16718   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16719   (exit $ac_status); } &&
16720          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16721   { (case "(($ac_try" in
16722   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16723   *) ac_try_echo=$ac_try;;
16724 esac
16725 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16726   (eval "$ac_try") 2>&5
16727   ac_status=$?
16728   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16729   (exit $ac_status); }; } &&
16730          { ac_try='test -s conftest.$ac_objext'
16731   { (case "(($ac_try" in
16732   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16733   *) ac_try_echo=$ac_try;;
16734 esac
16735 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16736   (eval "$ac_try") 2>&5
16737   ac_status=$?
16738   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16739   (exit $ac_status); }; }; then
16740   ac_header_compiler=yes
16741 else
16742   echo "$as_me: failed program was:" >&5
16743 sed 's/^/| /' conftest.$ac_ext >&5
16744
16745         ac_header_compiler=no
16746 fi
16747
16748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16749 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16750 echo "${ECHO_T}$ac_header_compiler" >&6; }
16751
16752 # Is the header present?
16753 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16754 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16755 cat >conftest.$ac_ext <<_ACEOF
16756 /* confdefs.h.  */
16757 _ACEOF
16758 cat confdefs.h >>conftest.$ac_ext
16759 cat >>conftest.$ac_ext <<_ACEOF
16760 /* end confdefs.h.  */
16761 #include <$ac_header>
16762 _ACEOF
16763 if { (ac_try="$ac_cpp conftest.$ac_ext"
16764 case "(($ac_try" in
16765   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16766   *) ac_try_echo=$ac_try;;
16767 esac
16768 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16769   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16770   ac_status=$?
16771   grep -v '^ *+' conftest.er1 >conftest.err
16772   rm -f conftest.er1
16773   cat conftest.err >&5
16774   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16775   (exit $ac_status); } >/dev/null; then
16776   if test -s conftest.err; then
16777     ac_cpp_err=$ac_c_preproc_warn_flag
16778     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16779   else
16780     ac_cpp_err=
16781   fi
16782 else
16783   ac_cpp_err=yes
16784 fi
16785 if test -z "$ac_cpp_err"; then
16786   ac_header_preproc=yes
16787 else
16788   echo "$as_me: failed program was:" >&5
16789 sed 's/^/| /' conftest.$ac_ext >&5
16790
16791   ac_header_preproc=no
16792 fi
16793
16794 rm -f conftest.err conftest.$ac_ext
16795 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16796 echo "${ECHO_T}$ac_header_preproc" >&6; }
16797
16798 # So?  What about this header?
16799 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16800   yes:no: )
16801     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16802 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16803     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16804 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16805     ac_header_preproc=yes
16806     ;;
16807   no:yes:* )
16808     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16809 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16810     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16811 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16812     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16813 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16814     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16815 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16816     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16817 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16818     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16819 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16820     ( cat <<\_ASBOX
16821 ## ----------------------------------- ##
16822 ## Report this to llvmbugs@cs.uiuc.edu ##
16823 ## ----------------------------------- ##
16824 _ASBOX
16825      ) | sed "s/^/$as_me: WARNING:     /" >&2
16826     ;;
16827 esac
16828 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16829 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16830 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16831   echo $ECHO_N "(cached) $ECHO_C" >&6
16832 else
16833   eval "$as_ac_Header=\$ac_header_preproc"
16834 fi
16835 ac_res=`eval echo '${'$as_ac_Header'}'`
16836                { echo "$as_me:$LINENO: result: $ac_res" >&5
16837 echo "${ECHO_T}$ac_res" >&6; }
16838
16839 fi
16840 if test `eval echo '${'$as_ac_Header'}'` = yes; then
16841   cat >>confdefs.h <<_ACEOF
16842 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
16843 _ACEOF
16844
16845 fi
16846
16847 done
16848
16849 if test "$ENABLE_THREADS" -eq 1 ; then
16850
16851 for ac_header in pthread.h
16852 do
16853 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
16854 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16855   { echo "$as_me:$LINENO: checking for $ac_header" >&5
16856 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
16857 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
16858   echo $ECHO_N "(cached) $ECHO_C" >&6
16859 fi
16860 ac_res=`eval echo '${'$as_ac_Header'}'`
16861                { echo "$as_me:$LINENO: result: $ac_res" >&5
16862 echo "${ECHO_T}$ac_res" >&6; }
16863 else
16864   # Is the header compilable?
16865 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
16866 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
16867 cat >conftest.$ac_ext <<_ACEOF
16868 /* confdefs.h.  */
16869 _ACEOF
16870 cat confdefs.h >>conftest.$ac_ext
16871 cat >>conftest.$ac_ext <<_ACEOF
16872 /* end confdefs.h.  */
16873 $ac_includes_default
16874 #include <$ac_header>
16875 _ACEOF
16876 rm -f conftest.$ac_objext
16877 if { (ac_try="$ac_compile"
16878 case "(($ac_try" in
16879   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16880   *) ac_try_echo=$ac_try;;
16881 esac
16882 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16883   (eval "$ac_compile") 2>conftest.er1
16884   ac_status=$?
16885   grep -v '^ *+' conftest.er1 >conftest.err
16886   rm -f conftest.er1
16887   cat conftest.err >&5
16888   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16889   (exit $ac_status); } &&
16890          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
16891   { (case "(($ac_try" in
16892   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16893   *) ac_try_echo=$ac_try;;
16894 esac
16895 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16896   (eval "$ac_try") 2>&5
16897   ac_status=$?
16898   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16899   (exit $ac_status); }; } &&
16900          { ac_try='test -s conftest.$ac_objext'
16901   { (case "(($ac_try" in
16902   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16903   *) ac_try_echo=$ac_try;;
16904 esac
16905 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16906   (eval "$ac_try") 2>&5
16907   ac_status=$?
16908   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16909   (exit $ac_status); }; }; then
16910   ac_header_compiler=yes
16911 else
16912   echo "$as_me: failed program was:" >&5
16913 sed 's/^/| /' conftest.$ac_ext >&5
16914
16915         ac_header_compiler=no
16916 fi
16917
16918 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16919 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
16920 echo "${ECHO_T}$ac_header_compiler" >&6; }
16921
16922 # Is the header present?
16923 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
16924 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
16925 cat >conftest.$ac_ext <<_ACEOF
16926 /* confdefs.h.  */
16927 _ACEOF
16928 cat confdefs.h >>conftest.$ac_ext
16929 cat >>conftest.$ac_ext <<_ACEOF
16930 /* end confdefs.h.  */
16931 #include <$ac_header>
16932 _ACEOF
16933 if { (ac_try="$ac_cpp conftest.$ac_ext"
16934 case "(($ac_try" in
16935   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
16936   *) ac_try_echo=$ac_try;;
16937 esac
16938 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
16939   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
16940   ac_status=$?
16941   grep -v '^ *+' conftest.er1 >conftest.err
16942   rm -f conftest.er1
16943   cat conftest.err >&5
16944   echo "$as_me:$LINENO: \$? = $ac_status" >&5
16945   (exit $ac_status); } >/dev/null; then
16946   if test -s conftest.err; then
16947     ac_cpp_err=$ac_c_preproc_warn_flag
16948     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
16949   else
16950     ac_cpp_err=
16951   fi
16952 else
16953   ac_cpp_err=yes
16954 fi
16955 if test -z "$ac_cpp_err"; then
16956   ac_header_preproc=yes
16957 else
16958   echo "$as_me: failed program was:" >&5
16959 sed 's/^/| /' conftest.$ac_ext >&5
16960
16961   ac_header_preproc=no
16962 fi
16963
16964 rm -f conftest.err conftest.$ac_ext
16965 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
16966 echo "${ECHO_T}$ac_header_preproc" >&6; }
16967
16968 # So?  What about this header?
16969 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
16970   yes:no: )
16971     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
16972 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
16973     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
16974 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
16975     ac_header_preproc=yes
16976     ;;
16977   no:yes:* )
16978     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
16979 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
16980     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
16981 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
16982     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
16983 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
16984     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
16985 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
16986     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
16987 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
16988     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
16989 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
16990     ( cat <<\_ASBOX
16991 ## ----------------------------------- ##
16992 ## Report this to llvmbugs@cs.uiuc.edu ##
16993 ## ----------------------------------- ##
16994 _ASBOX
16995      ) | sed "s/^/$as_me: WARNING:     /" >&2
16996     ;;
16997 esac
16998 { echo "$as_me:$LINENO: checking for $ac_header" >&5
16999 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17000 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17001   echo $ECHO_N "(cached) $ECHO_C" >&6
17002 else
17003   eval "$as_ac_Header=\$ac_header_preproc"
17004 fi
17005 ac_res=`eval echo '${'$as_ac_Header'}'`
17006                { echo "$as_me:$LINENO: result: $ac_res" >&5
17007 echo "${ECHO_T}$ac_res" >&6; }
17008
17009 fi
17010 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17011   cat >>confdefs.h <<_ACEOF
17012 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17013 _ACEOF
17014  HAVE_PTHREAD=1
17015
17016 else
17017   HAVE_PTHREAD=0
17018
17019 fi
17020
17021 done
17022
17023 else
17024   HAVE_PTHREAD=0
17025
17026 fi
17027
17028 if test "$llvm_cv_enable_libffi" = "yes" ; then
17029
17030
17031 for ac_header in ffi.h ffi/ffi.h
17032 do
17033 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17034 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17035   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17036 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17037 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17038   echo $ECHO_N "(cached) $ECHO_C" >&6
17039 fi
17040 ac_res=`eval echo '${'$as_ac_Header'}'`
17041                { echo "$as_me:$LINENO: result: $ac_res" >&5
17042 echo "${ECHO_T}$ac_res" >&6; }
17043 else
17044   # Is the header compilable?
17045 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17046 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17047 cat >conftest.$ac_ext <<_ACEOF
17048 /* confdefs.h.  */
17049 _ACEOF
17050 cat confdefs.h >>conftest.$ac_ext
17051 cat >>conftest.$ac_ext <<_ACEOF
17052 /* end confdefs.h.  */
17053 $ac_includes_default
17054 #include <$ac_header>
17055 _ACEOF
17056 rm -f conftest.$ac_objext
17057 if { (ac_try="$ac_compile"
17058 case "(($ac_try" in
17059   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17060   *) ac_try_echo=$ac_try;;
17061 esac
17062 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17063   (eval "$ac_compile") 2>conftest.er1
17064   ac_status=$?
17065   grep -v '^ *+' conftest.er1 >conftest.err
17066   rm -f conftest.er1
17067   cat conftest.err >&5
17068   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17069   (exit $ac_status); } &&
17070          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17071   { (case "(($ac_try" in
17072   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17073   *) ac_try_echo=$ac_try;;
17074 esac
17075 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17076   (eval "$ac_try") 2>&5
17077   ac_status=$?
17078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17079   (exit $ac_status); }; } &&
17080          { ac_try='test -s conftest.$ac_objext'
17081   { (case "(($ac_try" in
17082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17083   *) ac_try_echo=$ac_try;;
17084 esac
17085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17086   (eval "$ac_try") 2>&5
17087   ac_status=$?
17088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17089   (exit $ac_status); }; }; then
17090   ac_header_compiler=yes
17091 else
17092   echo "$as_me: failed program was:" >&5
17093 sed 's/^/| /' conftest.$ac_ext >&5
17094
17095         ac_header_compiler=no
17096 fi
17097
17098 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17099 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17100 echo "${ECHO_T}$ac_header_compiler" >&6; }
17101
17102 # Is the header present?
17103 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17104 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17105 cat >conftest.$ac_ext <<_ACEOF
17106 /* confdefs.h.  */
17107 _ACEOF
17108 cat confdefs.h >>conftest.$ac_ext
17109 cat >>conftest.$ac_ext <<_ACEOF
17110 /* end confdefs.h.  */
17111 #include <$ac_header>
17112 _ACEOF
17113 if { (ac_try="$ac_cpp conftest.$ac_ext"
17114 case "(($ac_try" in
17115   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17116   *) ac_try_echo=$ac_try;;
17117 esac
17118 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17119   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17120   ac_status=$?
17121   grep -v '^ *+' conftest.er1 >conftest.err
17122   rm -f conftest.er1
17123   cat conftest.err >&5
17124   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17125   (exit $ac_status); } >/dev/null; then
17126   if test -s conftest.err; then
17127     ac_cpp_err=$ac_c_preproc_warn_flag
17128     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17129   else
17130     ac_cpp_err=
17131   fi
17132 else
17133   ac_cpp_err=yes
17134 fi
17135 if test -z "$ac_cpp_err"; then
17136   ac_header_preproc=yes
17137 else
17138   echo "$as_me: failed program was:" >&5
17139 sed 's/^/| /' conftest.$ac_ext >&5
17140
17141   ac_header_preproc=no
17142 fi
17143
17144 rm -f conftest.err conftest.$ac_ext
17145 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17146 echo "${ECHO_T}$ac_header_preproc" >&6; }
17147
17148 # So?  What about this header?
17149 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17150   yes:no: )
17151     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17152 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17153     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17154 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17155     ac_header_preproc=yes
17156     ;;
17157   no:yes:* )
17158     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17159 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17160     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17161 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17162     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17163 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17164     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17165 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17166     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17167 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17168     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17169 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17170     ( cat <<\_ASBOX
17171 ## ----------------------------------- ##
17172 ## Report this to llvmbugs@cs.uiuc.edu ##
17173 ## ----------------------------------- ##
17174 _ASBOX
17175      ) | sed "s/^/$as_me: WARNING:     /" >&2
17176     ;;
17177 esac
17178 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17179 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17180 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17181   echo $ECHO_N "(cached) $ECHO_C" >&6
17182 else
17183   eval "$as_ac_Header=\$ac_header_preproc"
17184 fi
17185 ac_res=`eval echo '${'$as_ac_Header'}'`
17186                { echo "$as_me:$LINENO: result: $ac_res" >&5
17187 echo "${ECHO_T}$ac_res" >&6; }
17188
17189 fi
17190 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17191   cat >>confdefs.h <<_ACEOF
17192 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17193 _ACEOF
17194
17195 fi
17196
17197 done
17198
17199 fi
17200
17201
17202 for ac_header in CrashReporterClient.h
17203 do
17204 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
17205 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17206   { echo "$as_me:$LINENO: checking for $ac_header" >&5
17207 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17208 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17209   echo $ECHO_N "(cached) $ECHO_C" >&6
17210 fi
17211 ac_res=`eval echo '${'$as_ac_Header'}'`
17212                { echo "$as_me:$LINENO: result: $ac_res" >&5
17213 echo "${ECHO_T}$ac_res" >&6; }
17214 else
17215   # Is the header compilable?
17216 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
17217 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
17218 cat >conftest.$ac_ext <<_ACEOF
17219 /* confdefs.h.  */
17220 _ACEOF
17221 cat confdefs.h >>conftest.$ac_ext
17222 cat >>conftest.$ac_ext <<_ACEOF
17223 /* end confdefs.h.  */
17224 $ac_includes_default
17225 #include <$ac_header>
17226 _ACEOF
17227 rm -f conftest.$ac_objext
17228 if { (ac_try="$ac_compile"
17229 case "(($ac_try" in
17230   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17231   *) ac_try_echo=$ac_try;;
17232 esac
17233 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17234   (eval "$ac_compile") 2>conftest.er1
17235   ac_status=$?
17236   grep -v '^ *+' conftest.er1 >conftest.err
17237   rm -f conftest.er1
17238   cat conftest.err >&5
17239   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17240   (exit $ac_status); } &&
17241          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17242   { (case "(($ac_try" in
17243   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17244   *) ac_try_echo=$ac_try;;
17245 esac
17246 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17247   (eval "$ac_try") 2>&5
17248   ac_status=$?
17249   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17250   (exit $ac_status); }; } &&
17251          { ac_try='test -s conftest.$ac_objext'
17252   { (case "(($ac_try" in
17253   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17254   *) ac_try_echo=$ac_try;;
17255 esac
17256 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17257   (eval "$ac_try") 2>&5
17258   ac_status=$?
17259   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17260   (exit $ac_status); }; }; then
17261   ac_header_compiler=yes
17262 else
17263   echo "$as_me: failed program was:" >&5
17264 sed 's/^/| /' conftest.$ac_ext >&5
17265
17266         ac_header_compiler=no
17267 fi
17268
17269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17270 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
17271 echo "${ECHO_T}$ac_header_compiler" >&6; }
17272
17273 # Is the header present?
17274 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
17275 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
17276 cat >conftest.$ac_ext <<_ACEOF
17277 /* confdefs.h.  */
17278 _ACEOF
17279 cat confdefs.h >>conftest.$ac_ext
17280 cat >>conftest.$ac_ext <<_ACEOF
17281 /* end confdefs.h.  */
17282 #include <$ac_header>
17283 _ACEOF
17284 if { (ac_try="$ac_cpp conftest.$ac_ext"
17285 case "(($ac_try" in
17286   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17287   *) ac_try_echo=$ac_try;;
17288 esac
17289 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17290   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
17291   ac_status=$?
17292   grep -v '^ *+' conftest.er1 >conftest.err
17293   rm -f conftest.er1
17294   cat conftest.err >&5
17295   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17296   (exit $ac_status); } >/dev/null; then
17297   if test -s conftest.err; then
17298     ac_cpp_err=$ac_c_preproc_warn_flag
17299     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
17300   else
17301     ac_cpp_err=
17302   fi
17303 else
17304   ac_cpp_err=yes
17305 fi
17306 if test -z "$ac_cpp_err"; then
17307   ac_header_preproc=yes
17308 else
17309   echo "$as_me: failed program was:" >&5
17310 sed 's/^/| /' conftest.$ac_ext >&5
17311
17312   ac_header_preproc=no
17313 fi
17314
17315 rm -f conftest.err conftest.$ac_ext
17316 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
17317 echo "${ECHO_T}$ac_header_preproc" >&6; }
17318
17319 # So?  What about this header?
17320 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
17321   yes:no: )
17322     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
17323 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
17324     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
17325 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
17326     ac_header_preproc=yes
17327     ;;
17328   no:yes:* )
17329     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
17330 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
17331     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
17332 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
17333     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
17334 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
17335     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
17336 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
17337     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
17338 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
17339     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
17340 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
17341     ( cat <<\_ASBOX
17342 ## ----------------------------------- ##
17343 ## Report this to llvmbugs@cs.uiuc.edu ##
17344 ## ----------------------------------- ##
17345 _ASBOX
17346      ) | sed "s/^/$as_me: WARNING:     /" >&2
17347     ;;
17348 esac
17349 { echo "$as_me:$LINENO: checking for $ac_header" >&5
17350 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
17351 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
17352   echo $ECHO_N "(cached) $ECHO_C" >&6
17353 else
17354   eval "$as_ac_Header=\$ac_header_preproc"
17355 fi
17356 ac_res=`eval echo '${'$as_ac_Header'}'`
17357                { echo "$as_me:$LINENO: result: $ac_res" >&5
17358 echo "${ECHO_T}$ac_res" >&6; }
17359
17360 fi
17361 if test `eval echo '${'$as_ac_Header'}'` = yes; then
17362   cat >>confdefs.h <<_ACEOF
17363 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
17364 _ACEOF
17365
17366 fi
17367
17368 done
17369
17370
17371
17372
17373
17374   { echo "$as_me:$LINENO: checking for HUGE_VAL sanity" >&5
17375 echo $ECHO_N "checking for HUGE_VAL sanity... $ECHO_C" >&6; }
17376 if test "${ac_cv_huge_val_sanity+set}" = set; then
17377   echo $ECHO_N "(cached) $ECHO_C" >&6
17378 else
17379
17380     ac_ext=cpp
17381 ac_cpp='$CXXCPP $CPPFLAGS'
17382 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17383 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17384 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
17385
17386     ac_save_CXXFLAGS=$CXXFLAGS
17387     CXXFLAGS=-pedantic
17388     if test "$cross_compiling" = yes; then
17389   ac_cv_huge_val_sanity=yes
17390 else
17391   cat >conftest.$ac_ext <<_ACEOF
17392 /* confdefs.h.  */
17393 _ACEOF
17394 cat confdefs.h >>conftest.$ac_ext
17395 cat >>conftest.$ac_ext <<_ACEOF
17396 /* end confdefs.h.  */
17397 #include <math.h>
17398 int
17399 main ()
17400 {
17401 double x = HUGE_VAL; return x != x;
17402   ;
17403   return 0;
17404 }
17405 _ACEOF
17406 rm -f conftest$ac_exeext
17407 if { (ac_try="$ac_link"
17408 case "(($ac_try" in
17409   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17410   *) ac_try_echo=$ac_try;;
17411 esac
17412 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17413   (eval "$ac_link") 2>&5
17414   ac_status=$?
17415   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17416   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
17417   { (case "(($ac_try" in
17418   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17419   *) ac_try_echo=$ac_try;;
17420 esac
17421 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17422   (eval "$ac_try") 2>&5
17423   ac_status=$?
17424   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17425   (exit $ac_status); }; }; then
17426   ac_cv_huge_val_sanity=yes
17427 else
17428   echo "$as_me: program exited with status $ac_status" >&5
17429 echo "$as_me: failed program was:" >&5
17430 sed 's/^/| /' conftest.$ac_ext >&5
17431
17432 ( exit $ac_status )
17433 ac_cv_huge_val_sanity=no
17434 fi
17435 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
17436 fi
17437
17438
17439     CXXFLAGS=$ac_save_CXXFLAGS
17440     ac_ext=c
17441 ac_cpp='$CPP $CPPFLAGS'
17442 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
17443 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
17444 ac_compiler_gnu=$ac_cv_c_compiler_gnu
17445
17446
17447 fi
17448 { echo "$as_me:$LINENO: result: $ac_cv_huge_val_sanity" >&5
17449 echo "${ECHO_T}$ac_cv_huge_val_sanity" >&6; }
17450   HUGE_VAL_SANITY=$ac_cv_huge_val_sanity
17451
17452
17453 { echo "$as_me:$LINENO: checking for pid_t" >&5
17454 echo $ECHO_N "checking for pid_t... $ECHO_C" >&6; }
17455 if test "${ac_cv_type_pid_t+set}" = set; then
17456   echo $ECHO_N "(cached) $ECHO_C" >&6
17457 else
17458   cat >conftest.$ac_ext <<_ACEOF
17459 /* confdefs.h.  */
17460 _ACEOF
17461 cat confdefs.h >>conftest.$ac_ext
17462 cat >>conftest.$ac_ext <<_ACEOF
17463 /* end confdefs.h.  */
17464 $ac_includes_default
17465 typedef pid_t ac__type_new_;
17466 int
17467 main ()
17468 {
17469 if ((ac__type_new_ *) 0)
17470   return 0;
17471 if (sizeof (ac__type_new_))
17472   return 0;
17473   ;
17474   return 0;
17475 }
17476 _ACEOF
17477 rm -f conftest.$ac_objext
17478 if { (ac_try="$ac_compile"
17479 case "(($ac_try" in
17480   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17481   *) ac_try_echo=$ac_try;;
17482 esac
17483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17484   (eval "$ac_compile") 2>conftest.er1
17485   ac_status=$?
17486   grep -v '^ *+' conftest.er1 >conftest.err
17487   rm -f conftest.er1
17488   cat conftest.err >&5
17489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17490   (exit $ac_status); } &&
17491          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17492   { (case "(($ac_try" in
17493   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17494   *) ac_try_echo=$ac_try;;
17495 esac
17496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17497   (eval "$ac_try") 2>&5
17498   ac_status=$?
17499   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17500   (exit $ac_status); }; } &&
17501          { ac_try='test -s conftest.$ac_objext'
17502   { (case "(($ac_try" in
17503   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17504   *) ac_try_echo=$ac_try;;
17505 esac
17506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17507   (eval "$ac_try") 2>&5
17508   ac_status=$?
17509   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17510   (exit $ac_status); }; }; then
17511   ac_cv_type_pid_t=yes
17512 else
17513   echo "$as_me: failed program was:" >&5
17514 sed 's/^/| /' conftest.$ac_ext >&5
17515
17516         ac_cv_type_pid_t=no
17517 fi
17518
17519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17520 fi
17521 { echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
17522 echo "${ECHO_T}$ac_cv_type_pid_t" >&6; }
17523 if test $ac_cv_type_pid_t = yes; then
17524   :
17525 else
17526
17527 cat >>confdefs.h <<_ACEOF
17528 #define pid_t int
17529 _ACEOF
17530
17531 fi
17532
17533 { echo "$as_me:$LINENO: checking for size_t" >&5
17534 echo $ECHO_N "checking for size_t... $ECHO_C" >&6; }
17535 if test "${ac_cv_type_size_t+set}" = set; then
17536   echo $ECHO_N "(cached) $ECHO_C" >&6
17537 else
17538   cat >conftest.$ac_ext <<_ACEOF
17539 /* confdefs.h.  */
17540 _ACEOF
17541 cat confdefs.h >>conftest.$ac_ext
17542 cat >>conftest.$ac_ext <<_ACEOF
17543 /* end confdefs.h.  */
17544 $ac_includes_default
17545 typedef size_t ac__type_new_;
17546 int
17547 main ()
17548 {
17549 if ((ac__type_new_ *) 0)
17550   return 0;
17551 if (sizeof (ac__type_new_))
17552   return 0;
17553   ;
17554   return 0;
17555 }
17556 _ACEOF
17557 rm -f conftest.$ac_objext
17558 if { (ac_try="$ac_compile"
17559 case "(($ac_try" in
17560   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17561   *) ac_try_echo=$ac_try;;
17562 esac
17563 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17564   (eval "$ac_compile") 2>conftest.er1
17565   ac_status=$?
17566   grep -v '^ *+' conftest.er1 >conftest.err
17567   rm -f conftest.er1
17568   cat conftest.err >&5
17569   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17570   (exit $ac_status); } &&
17571          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17572   { (case "(($ac_try" in
17573   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17574   *) ac_try_echo=$ac_try;;
17575 esac
17576 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17577   (eval "$ac_try") 2>&5
17578   ac_status=$?
17579   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17580   (exit $ac_status); }; } &&
17581          { ac_try='test -s conftest.$ac_objext'
17582   { (case "(($ac_try" in
17583   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17584   *) ac_try_echo=$ac_try;;
17585 esac
17586 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17587   (eval "$ac_try") 2>&5
17588   ac_status=$?
17589   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17590   (exit $ac_status); }; }; then
17591   ac_cv_type_size_t=yes
17592 else
17593   echo "$as_me: failed program was:" >&5
17594 sed 's/^/| /' conftest.$ac_ext >&5
17595
17596         ac_cv_type_size_t=no
17597 fi
17598
17599 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17600 fi
17601 { echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
17602 echo "${ECHO_T}$ac_cv_type_size_t" >&6; }
17603 if test $ac_cv_type_size_t = yes; then
17604   :
17605 else
17606
17607 cat >>confdefs.h <<_ACEOF
17608 #define size_t unsigned int
17609 _ACEOF
17610
17611 fi
17612
17613
17614 cat >>confdefs.h <<_ACEOF
17615 #define RETSIGTYPE void
17616 _ACEOF
17617
17618 { echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
17619 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6; }
17620 if test "${ac_cv_struct_tm+set}" = set; then
17621   echo $ECHO_N "(cached) $ECHO_C" >&6
17622 else
17623   cat >conftest.$ac_ext <<_ACEOF
17624 /* confdefs.h.  */
17625 _ACEOF
17626 cat confdefs.h >>conftest.$ac_ext
17627 cat >>conftest.$ac_ext <<_ACEOF
17628 /* end confdefs.h.  */
17629 #include <sys/types.h>
17630 #include <time.h>
17631
17632 int
17633 main ()
17634 {
17635 struct tm *tp; tp->tm_sec;
17636   ;
17637   return 0;
17638 }
17639 _ACEOF
17640 rm -f conftest.$ac_objext
17641 if { (ac_try="$ac_compile"
17642 case "(($ac_try" in
17643   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17644   *) ac_try_echo=$ac_try;;
17645 esac
17646 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17647   (eval "$ac_compile") 2>conftest.er1
17648   ac_status=$?
17649   grep -v '^ *+' conftest.er1 >conftest.err
17650   rm -f conftest.er1
17651   cat conftest.err >&5
17652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17653   (exit $ac_status); } &&
17654          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17655   { (case "(($ac_try" in
17656   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17657   *) ac_try_echo=$ac_try;;
17658 esac
17659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17660   (eval "$ac_try") 2>&5
17661   ac_status=$?
17662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17663   (exit $ac_status); }; } &&
17664          { ac_try='test -s conftest.$ac_objext'
17665   { (case "(($ac_try" in
17666   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17667   *) ac_try_echo=$ac_try;;
17668 esac
17669 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17670   (eval "$ac_try") 2>&5
17671   ac_status=$?
17672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17673   (exit $ac_status); }; }; then
17674   ac_cv_struct_tm=time.h
17675 else
17676   echo "$as_me: failed program was:" >&5
17677 sed 's/^/| /' conftest.$ac_ext >&5
17678
17679         ac_cv_struct_tm=sys/time.h
17680 fi
17681
17682 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17683 fi
17684 { echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
17685 echo "${ECHO_T}$ac_cv_struct_tm" >&6; }
17686 if test $ac_cv_struct_tm = sys/time.h; then
17687
17688 cat >>confdefs.h <<\_ACEOF
17689 #define TM_IN_SYS_TIME 1
17690 _ACEOF
17691
17692 fi
17693
17694 { echo "$as_me:$LINENO: checking for int64_t" >&5
17695 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
17696 if test "${ac_cv_type_int64_t+set}" = set; then
17697   echo $ECHO_N "(cached) $ECHO_C" >&6
17698 else
17699   cat >conftest.$ac_ext <<_ACEOF
17700 /* confdefs.h.  */
17701 _ACEOF
17702 cat confdefs.h >>conftest.$ac_ext
17703 cat >>conftest.$ac_ext <<_ACEOF
17704 /* end confdefs.h.  */
17705 $ac_includes_default
17706 typedef int64_t ac__type_new_;
17707 int
17708 main ()
17709 {
17710 if ((ac__type_new_ *) 0)
17711   return 0;
17712 if (sizeof (ac__type_new_))
17713   return 0;
17714   ;
17715   return 0;
17716 }
17717 _ACEOF
17718 rm -f conftest.$ac_objext
17719 if { (ac_try="$ac_compile"
17720 case "(($ac_try" in
17721   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17722   *) ac_try_echo=$ac_try;;
17723 esac
17724 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17725   (eval "$ac_compile") 2>conftest.er1
17726   ac_status=$?
17727   grep -v '^ *+' conftest.er1 >conftest.err
17728   rm -f conftest.er1
17729   cat conftest.err >&5
17730   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17731   (exit $ac_status); } &&
17732          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17733   { (case "(($ac_try" in
17734   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17735   *) ac_try_echo=$ac_try;;
17736 esac
17737 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17738   (eval "$ac_try") 2>&5
17739   ac_status=$?
17740   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17741   (exit $ac_status); }; } &&
17742          { ac_try='test -s conftest.$ac_objext'
17743   { (case "(($ac_try" in
17744   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17745   *) ac_try_echo=$ac_try;;
17746 esac
17747 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17748   (eval "$ac_try") 2>&5
17749   ac_status=$?
17750   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17751   (exit $ac_status); }; }; then
17752   ac_cv_type_int64_t=yes
17753 else
17754   echo "$as_me: failed program was:" >&5
17755 sed 's/^/| /' conftest.$ac_ext >&5
17756
17757         ac_cv_type_int64_t=no
17758 fi
17759
17760 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17761 fi
17762 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
17763 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
17764 if test $ac_cv_type_int64_t = yes; then
17765
17766 cat >>confdefs.h <<_ACEOF
17767 #define HAVE_INT64_T 1
17768 _ACEOF
17769
17770
17771 else
17772   { { echo "$as_me:$LINENO: error: Type int64_t required but not found" >&5
17773 echo "$as_me: error: Type int64_t required but not found" >&2;}
17774    { (exit 1); exit 1; }; }
17775 fi
17776
17777 { echo "$as_me:$LINENO: checking for uint64_t" >&5
17778 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
17779 if test "${ac_cv_type_uint64_t+set}" = set; then
17780   echo $ECHO_N "(cached) $ECHO_C" >&6
17781 else
17782   cat >conftest.$ac_ext <<_ACEOF
17783 /* confdefs.h.  */
17784 _ACEOF
17785 cat confdefs.h >>conftest.$ac_ext
17786 cat >>conftest.$ac_ext <<_ACEOF
17787 /* end confdefs.h.  */
17788 $ac_includes_default
17789 typedef uint64_t ac__type_new_;
17790 int
17791 main ()
17792 {
17793 if ((ac__type_new_ *) 0)
17794   return 0;
17795 if (sizeof (ac__type_new_))
17796   return 0;
17797   ;
17798   return 0;
17799 }
17800 _ACEOF
17801 rm -f conftest.$ac_objext
17802 if { (ac_try="$ac_compile"
17803 case "(($ac_try" in
17804   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17805   *) ac_try_echo=$ac_try;;
17806 esac
17807 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17808   (eval "$ac_compile") 2>conftest.er1
17809   ac_status=$?
17810   grep -v '^ *+' conftest.er1 >conftest.err
17811   rm -f conftest.er1
17812   cat conftest.err >&5
17813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17814   (exit $ac_status); } &&
17815          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17816   { (case "(($ac_try" in
17817   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17818   *) ac_try_echo=$ac_try;;
17819 esac
17820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17821   (eval "$ac_try") 2>&5
17822   ac_status=$?
17823   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17824   (exit $ac_status); }; } &&
17825          { ac_try='test -s conftest.$ac_objext'
17826   { (case "(($ac_try" in
17827   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17828   *) ac_try_echo=$ac_try;;
17829 esac
17830 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17831   (eval "$ac_try") 2>&5
17832   ac_status=$?
17833   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17834   (exit $ac_status); }; }; then
17835   ac_cv_type_uint64_t=yes
17836 else
17837   echo "$as_me: failed program was:" >&5
17838 sed 's/^/| /' conftest.$ac_ext >&5
17839
17840         ac_cv_type_uint64_t=no
17841 fi
17842
17843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17844 fi
17845 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
17846 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
17847 if test $ac_cv_type_uint64_t = yes; then
17848
17849 cat >>confdefs.h <<_ACEOF
17850 #define HAVE_UINT64_T 1
17851 _ACEOF
17852
17853
17854 else
17855   { echo "$as_me:$LINENO: checking for u_int64_t" >&5
17856 echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6; }
17857 if test "${ac_cv_type_u_int64_t+set}" = set; then
17858   echo $ECHO_N "(cached) $ECHO_C" >&6
17859 else
17860   cat >conftest.$ac_ext <<_ACEOF
17861 /* confdefs.h.  */
17862 _ACEOF
17863 cat confdefs.h >>conftest.$ac_ext
17864 cat >>conftest.$ac_ext <<_ACEOF
17865 /* end confdefs.h.  */
17866 $ac_includes_default
17867 typedef u_int64_t ac__type_new_;
17868 int
17869 main ()
17870 {
17871 if ((ac__type_new_ *) 0)
17872   return 0;
17873 if (sizeof (ac__type_new_))
17874   return 0;
17875   ;
17876   return 0;
17877 }
17878 _ACEOF
17879 rm -f conftest.$ac_objext
17880 if { (ac_try="$ac_compile"
17881 case "(($ac_try" in
17882   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17883   *) ac_try_echo=$ac_try;;
17884 esac
17885 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17886   (eval "$ac_compile") 2>conftest.er1
17887   ac_status=$?
17888   grep -v '^ *+' conftest.er1 >conftest.err
17889   rm -f conftest.er1
17890   cat conftest.err >&5
17891   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17892   (exit $ac_status); } &&
17893          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
17894   { (case "(($ac_try" in
17895   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17896   *) ac_try_echo=$ac_try;;
17897 esac
17898 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17899   (eval "$ac_try") 2>&5
17900   ac_status=$?
17901   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17902   (exit $ac_status); }; } &&
17903          { ac_try='test -s conftest.$ac_objext'
17904   { (case "(($ac_try" in
17905   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
17906   *) ac_try_echo=$ac_try;;
17907 esac
17908 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
17909   (eval "$ac_try") 2>&5
17910   ac_status=$?
17911   echo "$as_me:$LINENO: \$? = $ac_status" >&5
17912   (exit $ac_status); }; }; then
17913   ac_cv_type_u_int64_t=yes
17914 else
17915   echo "$as_me: failed program was:" >&5
17916 sed 's/^/| /' conftest.$ac_ext >&5
17917
17918         ac_cv_type_u_int64_t=no
17919 fi
17920
17921 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17922 fi
17923 { echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5
17924 echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6; }
17925 if test $ac_cv_type_u_int64_t = yes; then
17926
17927 cat >>confdefs.h <<_ACEOF
17928 #define HAVE_U_INT64_T 1
17929 _ACEOF
17930
17931
17932 else
17933   { { echo "$as_me:$LINENO: error: Type uint64_t or u_int64_t required but not found" >&5
17934 echo "$as_me: error: Type uint64_t or u_int64_t required but not found" >&2;}
17935    { (exit 1); exit 1; }; }
17936 fi
17937
17938 fi
17939
17940
17941
17942
17943
17944
17945
17946
17947
17948
17949 for ac_func in backtrace ceilf floorf roundf rintf nearbyintf getcwd
17950 do
17951 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
17952 { echo "$as_me:$LINENO: checking for $ac_func" >&5
17953 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
17954 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
17955   echo $ECHO_N "(cached) $ECHO_C" >&6
17956 else
17957   cat >conftest.$ac_ext <<_ACEOF
17958 /* confdefs.h.  */
17959 _ACEOF
17960 cat confdefs.h >>conftest.$ac_ext
17961 cat >>conftest.$ac_ext <<_ACEOF
17962 /* end confdefs.h.  */
17963 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
17964    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
17965 #define $ac_func innocuous_$ac_func
17966
17967 /* System header to define __stub macros and hopefully few prototypes,
17968     which can conflict with char $ac_func (); below.
17969     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
17970     <limits.h> exists even on freestanding compilers.  */
17971
17972 #ifdef __STDC__
17973 # include <limits.h>
17974 #else
17975 # include <assert.h>
17976 #endif
17977
17978 #undef $ac_func
17979
17980 /* Override any GCC internal prototype to avoid an error.
17981    Use char because int might match the return type of a GCC
17982    builtin and then its argument prototype would still apply.  */
17983 #ifdef __cplusplus
17984 extern "C"
17985 #endif
17986 char $ac_func ();
17987 /* The GNU C library defines this for functions which it implements
17988     to always fail with ENOSYS.  Some functions are actually named
17989     something starting with __ and the normal name is an alias.  */
17990 #if defined __stub_$ac_func || defined __stub___$ac_func
17991 choke me
17992 #endif
17993
17994 int
17995 main ()
17996 {
17997 return $ac_func ();
17998   ;
17999   return 0;
18000 }
18001 _ACEOF
18002 rm -f conftest.$ac_objext conftest$ac_exeext
18003 if { (ac_try="$ac_link"
18004 case "(($ac_try" in
18005   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18006   *) ac_try_echo=$ac_try;;
18007 esac
18008 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18009   (eval "$ac_link") 2>conftest.er1
18010   ac_status=$?
18011   grep -v '^ *+' conftest.er1 >conftest.err
18012   rm -f conftest.er1
18013   cat conftest.err >&5
18014   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18015   (exit $ac_status); } &&
18016          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18017   { (case "(($ac_try" in
18018   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18019   *) ac_try_echo=$ac_try;;
18020 esac
18021 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18022   (eval "$ac_try") 2>&5
18023   ac_status=$?
18024   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18025   (exit $ac_status); }; } &&
18026          { ac_try='test -s conftest$ac_exeext'
18027   { (case "(($ac_try" in
18028   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18029   *) ac_try_echo=$ac_try;;
18030 esac
18031 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18032   (eval "$ac_try") 2>&5
18033   ac_status=$?
18034   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18035   (exit $ac_status); }; }; then
18036   eval "$as_ac_var=yes"
18037 else
18038   echo "$as_me: failed program was:" >&5
18039 sed 's/^/| /' conftest.$ac_ext >&5
18040
18041         eval "$as_ac_var=no"
18042 fi
18043
18044 rm -f core conftest.err conftest.$ac_objext \
18045       conftest$ac_exeext conftest.$ac_ext
18046 fi
18047 ac_res=`eval echo '${'$as_ac_var'}'`
18048                { echo "$as_me:$LINENO: result: $ac_res" >&5
18049 echo "${ECHO_T}$ac_res" >&6; }
18050 if test `eval echo '${'$as_ac_var'}'` = yes; then
18051   cat >>confdefs.h <<_ACEOF
18052 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18053 _ACEOF
18054
18055 fi
18056 done
18057
18058
18059
18060
18061
18062 for ac_func in powf fmodf strtof round
18063 do
18064 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18065 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18066 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18067 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18068   echo $ECHO_N "(cached) $ECHO_C" >&6
18069 else
18070   cat >conftest.$ac_ext <<_ACEOF
18071 /* confdefs.h.  */
18072 _ACEOF
18073 cat confdefs.h >>conftest.$ac_ext
18074 cat >>conftest.$ac_ext <<_ACEOF
18075 /* end confdefs.h.  */
18076 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18077    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18078 #define $ac_func innocuous_$ac_func
18079
18080 /* System header to define __stub macros and hopefully few prototypes,
18081     which can conflict with char $ac_func (); below.
18082     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18083     <limits.h> exists even on freestanding compilers.  */
18084
18085 #ifdef __STDC__
18086 # include <limits.h>
18087 #else
18088 # include <assert.h>
18089 #endif
18090
18091 #undef $ac_func
18092
18093 /* Override any GCC internal prototype to avoid an error.
18094    Use char because int might match the return type of a GCC
18095    builtin and then its argument prototype would still apply.  */
18096 #ifdef __cplusplus
18097 extern "C"
18098 #endif
18099 char $ac_func ();
18100 /* The GNU C library defines this for functions which it implements
18101     to always fail with ENOSYS.  Some functions are actually named
18102     something starting with __ and the normal name is an alias.  */
18103 #if defined __stub_$ac_func || defined __stub___$ac_func
18104 choke me
18105 #endif
18106
18107 int
18108 main ()
18109 {
18110 return $ac_func ();
18111   ;
18112   return 0;
18113 }
18114 _ACEOF
18115 rm -f conftest.$ac_objext conftest$ac_exeext
18116 if { (ac_try="$ac_link"
18117 case "(($ac_try" in
18118   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18119   *) ac_try_echo=$ac_try;;
18120 esac
18121 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18122   (eval "$ac_link") 2>conftest.er1
18123   ac_status=$?
18124   grep -v '^ *+' conftest.er1 >conftest.err
18125   rm -f conftest.er1
18126   cat conftest.err >&5
18127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18128   (exit $ac_status); } &&
18129          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18130   { (case "(($ac_try" in
18131   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18132   *) ac_try_echo=$ac_try;;
18133 esac
18134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18135   (eval "$ac_try") 2>&5
18136   ac_status=$?
18137   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18138   (exit $ac_status); }; } &&
18139          { ac_try='test -s conftest$ac_exeext'
18140   { (case "(($ac_try" in
18141   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18142   *) ac_try_echo=$ac_try;;
18143 esac
18144 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18145   (eval "$ac_try") 2>&5
18146   ac_status=$?
18147   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18148   (exit $ac_status); }; }; then
18149   eval "$as_ac_var=yes"
18150 else
18151   echo "$as_me: failed program was:" >&5
18152 sed 's/^/| /' conftest.$ac_ext >&5
18153
18154         eval "$as_ac_var=no"
18155 fi
18156
18157 rm -f core conftest.err conftest.$ac_objext \
18158       conftest$ac_exeext conftest.$ac_ext
18159 fi
18160 ac_res=`eval echo '${'$as_ac_var'}'`
18161                { echo "$as_me:$LINENO: result: $ac_res" >&5
18162 echo "${ECHO_T}$ac_res" >&6; }
18163 if test `eval echo '${'$as_ac_var'}'` = yes; then
18164   cat >>confdefs.h <<_ACEOF
18165 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18166 _ACEOF
18167
18168 fi
18169 done
18170
18171
18172
18173
18174
18175
18176 for ac_func in getpagesize getrusage getrlimit setrlimit gettimeofday
18177 do
18178 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18179 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18180 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18181 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18182   echo $ECHO_N "(cached) $ECHO_C" >&6
18183 else
18184   cat >conftest.$ac_ext <<_ACEOF
18185 /* confdefs.h.  */
18186 _ACEOF
18187 cat confdefs.h >>conftest.$ac_ext
18188 cat >>conftest.$ac_ext <<_ACEOF
18189 /* end confdefs.h.  */
18190 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18191    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18192 #define $ac_func innocuous_$ac_func
18193
18194 /* System header to define __stub macros and hopefully few prototypes,
18195     which can conflict with char $ac_func (); below.
18196     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18197     <limits.h> exists even on freestanding compilers.  */
18198
18199 #ifdef __STDC__
18200 # include <limits.h>
18201 #else
18202 # include <assert.h>
18203 #endif
18204
18205 #undef $ac_func
18206
18207 /* Override any GCC internal prototype to avoid an error.
18208    Use char because int might match the return type of a GCC
18209    builtin and then its argument prototype would still apply.  */
18210 #ifdef __cplusplus
18211 extern "C"
18212 #endif
18213 char $ac_func ();
18214 /* The GNU C library defines this for functions which it implements
18215     to always fail with ENOSYS.  Some functions are actually named
18216     something starting with __ and the normal name is an alias.  */
18217 #if defined __stub_$ac_func || defined __stub___$ac_func
18218 choke me
18219 #endif
18220
18221 int
18222 main ()
18223 {
18224 return $ac_func ();
18225   ;
18226   return 0;
18227 }
18228 _ACEOF
18229 rm -f conftest.$ac_objext conftest$ac_exeext
18230 if { (ac_try="$ac_link"
18231 case "(($ac_try" in
18232   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18233   *) ac_try_echo=$ac_try;;
18234 esac
18235 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18236   (eval "$ac_link") 2>conftest.er1
18237   ac_status=$?
18238   grep -v '^ *+' conftest.er1 >conftest.err
18239   rm -f conftest.er1
18240   cat conftest.err >&5
18241   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18242   (exit $ac_status); } &&
18243          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18244   { (case "(($ac_try" in
18245   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18246   *) ac_try_echo=$ac_try;;
18247 esac
18248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18249   (eval "$ac_try") 2>&5
18250   ac_status=$?
18251   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18252   (exit $ac_status); }; } &&
18253          { ac_try='test -s conftest$ac_exeext'
18254   { (case "(($ac_try" in
18255   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18256   *) ac_try_echo=$ac_try;;
18257 esac
18258 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18259   (eval "$ac_try") 2>&5
18260   ac_status=$?
18261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18262   (exit $ac_status); }; }; then
18263   eval "$as_ac_var=yes"
18264 else
18265   echo "$as_me: failed program was:" >&5
18266 sed 's/^/| /' conftest.$ac_ext >&5
18267
18268         eval "$as_ac_var=no"
18269 fi
18270
18271 rm -f core conftest.err conftest.$ac_objext \
18272       conftest$ac_exeext conftest.$ac_ext
18273 fi
18274 ac_res=`eval echo '${'$as_ac_var'}'`
18275                { echo "$as_me:$LINENO: result: $ac_res" >&5
18276 echo "${ECHO_T}$ac_res" >&6; }
18277 if test `eval echo '${'$as_ac_var'}'` = yes; then
18278   cat >>confdefs.h <<_ACEOF
18279 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18280 _ACEOF
18281
18282 fi
18283 done
18284
18285
18286
18287
18288 for ac_func in isatty mkdtemp mkstemp
18289 do
18290 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18291 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18292 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18293 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18294   echo $ECHO_N "(cached) $ECHO_C" >&6
18295 else
18296   cat >conftest.$ac_ext <<_ACEOF
18297 /* confdefs.h.  */
18298 _ACEOF
18299 cat confdefs.h >>conftest.$ac_ext
18300 cat >>conftest.$ac_ext <<_ACEOF
18301 /* end confdefs.h.  */
18302 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18303    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18304 #define $ac_func innocuous_$ac_func
18305
18306 /* System header to define __stub macros and hopefully few prototypes,
18307     which can conflict with char $ac_func (); below.
18308     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18309     <limits.h> exists even on freestanding compilers.  */
18310
18311 #ifdef __STDC__
18312 # include <limits.h>
18313 #else
18314 # include <assert.h>
18315 #endif
18316
18317 #undef $ac_func
18318
18319 /* Override any GCC internal prototype to avoid an error.
18320    Use char because int might match the return type of a GCC
18321    builtin and then its argument prototype would still apply.  */
18322 #ifdef __cplusplus
18323 extern "C"
18324 #endif
18325 char $ac_func ();
18326 /* The GNU C library defines this for functions which it implements
18327     to always fail with ENOSYS.  Some functions are actually named
18328     something starting with __ and the normal name is an alias.  */
18329 #if defined __stub_$ac_func || defined __stub___$ac_func
18330 choke me
18331 #endif
18332
18333 int
18334 main ()
18335 {
18336 return $ac_func ();
18337   ;
18338   return 0;
18339 }
18340 _ACEOF
18341 rm -f conftest.$ac_objext conftest$ac_exeext
18342 if { (ac_try="$ac_link"
18343 case "(($ac_try" in
18344   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18345   *) ac_try_echo=$ac_try;;
18346 esac
18347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18348   (eval "$ac_link") 2>conftest.er1
18349   ac_status=$?
18350   grep -v '^ *+' conftest.er1 >conftest.err
18351   rm -f conftest.er1
18352   cat conftest.err >&5
18353   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18354   (exit $ac_status); } &&
18355          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18356   { (case "(($ac_try" in
18357   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18358   *) ac_try_echo=$ac_try;;
18359 esac
18360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18361   (eval "$ac_try") 2>&5
18362   ac_status=$?
18363   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18364   (exit $ac_status); }; } &&
18365          { ac_try='test -s conftest$ac_exeext'
18366   { (case "(($ac_try" in
18367   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18368   *) ac_try_echo=$ac_try;;
18369 esac
18370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18371   (eval "$ac_try") 2>&5
18372   ac_status=$?
18373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18374   (exit $ac_status); }; }; then
18375   eval "$as_ac_var=yes"
18376 else
18377   echo "$as_me: failed program was:" >&5
18378 sed 's/^/| /' conftest.$ac_ext >&5
18379
18380         eval "$as_ac_var=no"
18381 fi
18382
18383 rm -f core conftest.err conftest.$ac_objext \
18384       conftest$ac_exeext conftest.$ac_ext
18385 fi
18386 ac_res=`eval echo '${'$as_ac_var'}'`
18387                { echo "$as_me:$LINENO: result: $ac_res" >&5
18388 echo "${ECHO_T}$ac_res" >&6; }
18389 if test `eval echo '${'$as_ac_var'}'` = yes; then
18390   cat >>confdefs.h <<_ACEOF
18391 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18392 _ACEOF
18393
18394 fi
18395 done
18396
18397
18398
18399
18400
18401
18402
18403 for ac_func in mktemp posix_spawn realpath sbrk setrlimit strdup
18404 do
18405 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18406 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18407 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18408 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18409   echo $ECHO_N "(cached) $ECHO_C" >&6
18410 else
18411   cat >conftest.$ac_ext <<_ACEOF
18412 /* confdefs.h.  */
18413 _ACEOF
18414 cat confdefs.h >>conftest.$ac_ext
18415 cat >>conftest.$ac_ext <<_ACEOF
18416 /* end confdefs.h.  */
18417 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18418    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18419 #define $ac_func innocuous_$ac_func
18420
18421 /* System header to define __stub macros and hopefully few prototypes,
18422     which can conflict with char $ac_func (); below.
18423     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18424     <limits.h> exists even on freestanding compilers.  */
18425
18426 #ifdef __STDC__
18427 # include <limits.h>
18428 #else
18429 # include <assert.h>
18430 #endif
18431
18432 #undef $ac_func
18433
18434 /* Override any GCC internal prototype to avoid an error.
18435    Use char because int might match the return type of a GCC
18436    builtin and then its argument prototype would still apply.  */
18437 #ifdef __cplusplus
18438 extern "C"
18439 #endif
18440 char $ac_func ();
18441 /* The GNU C library defines this for functions which it implements
18442     to always fail with ENOSYS.  Some functions are actually named
18443     something starting with __ and the normal name is an alias.  */
18444 #if defined __stub_$ac_func || defined __stub___$ac_func
18445 choke me
18446 #endif
18447
18448 int
18449 main ()
18450 {
18451 return $ac_func ();
18452   ;
18453   return 0;
18454 }
18455 _ACEOF
18456 rm -f conftest.$ac_objext conftest$ac_exeext
18457 if { (ac_try="$ac_link"
18458 case "(($ac_try" in
18459   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18460   *) ac_try_echo=$ac_try;;
18461 esac
18462 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18463   (eval "$ac_link") 2>conftest.er1
18464   ac_status=$?
18465   grep -v '^ *+' conftest.er1 >conftest.err
18466   rm -f conftest.er1
18467   cat conftest.err >&5
18468   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18469   (exit $ac_status); } &&
18470          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18471   { (case "(($ac_try" in
18472   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18473   *) ac_try_echo=$ac_try;;
18474 esac
18475 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18476   (eval "$ac_try") 2>&5
18477   ac_status=$?
18478   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18479   (exit $ac_status); }; } &&
18480          { ac_try='test -s conftest$ac_exeext'
18481   { (case "(($ac_try" in
18482   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18483   *) ac_try_echo=$ac_try;;
18484 esac
18485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18486   (eval "$ac_try") 2>&5
18487   ac_status=$?
18488   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18489   (exit $ac_status); }; }; then
18490   eval "$as_ac_var=yes"
18491 else
18492   echo "$as_me: failed program was:" >&5
18493 sed 's/^/| /' conftest.$ac_ext >&5
18494
18495         eval "$as_ac_var=no"
18496 fi
18497
18498 rm -f core conftest.err conftest.$ac_objext \
18499       conftest$ac_exeext conftest.$ac_ext
18500 fi
18501 ac_res=`eval echo '${'$as_ac_var'}'`
18502                { echo "$as_me:$LINENO: result: $ac_res" >&5
18503 echo "${ECHO_T}$ac_res" >&6; }
18504 if test `eval echo '${'$as_ac_var'}'` = yes; then
18505   cat >>confdefs.h <<_ACEOF
18506 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18507 _ACEOF
18508
18509 fi
18510 done
18511
18512
18513
18514
18515
18516 for ac_func in strerror strerror_r strerror_s setenv
18517 do
18518 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18519 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18520 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18521 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18522   echo $ECHO_N "(cached) $ECHO_C" >&6
18523 else
18524   cat >conftest.$ac_ext <<_ACEOF
18525 /* confdefs.h.  */
18526 _ACEOF
18527 cat confdefs.h >>conftest.$ac_ext
18528 cat >>conftest.$ac_ext <<_ACEOF
18529 /* end confdefs.h.  */
18530 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18531    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18532 #define $ac_func innocuous_$ac_func
18533
18534 /* System header to define __stub macros and hopefully few prototypes,
18535     which can conflict with char $ac_func (); below.
18536     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18537     <limits.h> exists even on freestanding compilers.  */
18538
18539 #ifdef __STDC__
18540 # include <limits.h>
18541 #else
18542 # include <assert.h>
18543 #endif
18544
18545 #undef $ac_func
18546
18547 /* Override any GCC internal prototype to avoid an error.
18548    Use char because int might match the return type of a GCC
18549    builtin and then its argument prototype would still apply.  */
18550 #ifdef __cplusplus
18551 extern "C"
18552 #endif
18553 char $ac_func ();
18554 /* The GNU C library defines this for functions which it implements
18555     to always fail with ENOSYS.  Some functions are actually named
18556     something starting with __ and the normal name is an alias.  */
18557 #if defined __stub_$ac_func || defined __stub___$ac_func
18558 choke me
18559 #endif
18560
18561 int
18562 main ()
18563 {
18564 return $ac_func ();
18565   ;
18566   return 0;
18567 }
18568 _ACEOF
18569 rm -f conftest.$ac_objext conftest$ac_exeext
18570 if { (ac_try="$ac_link"
18571 case "(($ac_try" in
18572   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18573   *) ac_try_echo=$ac_try;;
18574 esac
18575 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18576   (eval "$ac_link") 2>conftest.er1
18577   ac_status=$?
18578   grep -v '^ *+' conftest.er1 >conftest.err
18579   rm -f conftest.er1
18580   cat conftest.err >&5
18581   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18582   (exit $ac_status); } &&
18583          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18584   { (case "(($ac_try" in
18585   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18586   *) ac_try_echo=$ac_try;;
18587 esac
18588 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18589   (eval "$ac_try") 2>&5
18590   ac_status=$?
18591   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18592   (exit $ac_status); }; } &&
18593          { ac_try='test -s conftest$ac_exeext'
18594   { (case "(($ac_try" in
18595   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18596   *) ac_try_echo=$ac_try;;
18597 esac
18598 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18599   (eval "$ac_try") 2>&5
18600   ac_status=$?
18601   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18602   (exit $ac_status); }; }; then
18603   eval "$as_ac_var=yes"
18604 else
18605   echo "$as_me: failed program was:" >&5
18606 sed 's/^/| /' conftest.$ac_ext >&5
18607
18608         eval "$as_ac_var=no"
18609 fi
18610
18611 rm -f core conftest.err conftest.$ac_objext \
18612       conftest$ac_exeext conftest.$ac_ext
18613 fi
18614 ac_res=`eval echo '${'$as_ac_var'}'`
18615                { echo "$as_me:$LINENO: result: $ac_res" >&5
18616 echo "${ECHO_T}$ac_res" >&6; }
18617 if test `eval echo '${'$as_ac_var'}'` = yes; then
18618   cat >>confdefs.h <<_ACEOF
18619 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18620 _ACEOF
18621
18622 fi
18623 done
18624
18625
18626
18627
18628
18629 for ac_func in strtoll strtoq sysconf malloc_zone_statistics
18630 do
18631 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18632 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18633 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18634 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18635   echo $ECHO_N "(cached) $ECHO_C" >&6
18636 else
18637   cat >conftest.$ac_ext <<_ACEOF
18638 /* confdefs.h.  */
18639 _ACEOF
18640 cat confdefs.h >>conftest.$ac_ext
18641 cat >>conftest.$ac_ext <<_ACEOF
18642 /* end confdefs.h.  */
18643 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18644    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18645 #define $ac_func innocuous_$ac_func
18646
18647 /* System header to define __stub macros and hopefully few prototypes,
18648     which can conflict with char $ac_func (); below.
18649     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18650     <limits.h> exists even on freestanding compilers.  */
18651
18652 #ifdef __STDC__
18653 # include <limits.h>
18654 #else
18655 # include <assert.h>
18656 #endif
18657
18658 #undef $ac_func
18659
18660 /* Override any GCC internal prototype to avoid an error.
18661    Use char because int might match the return type of a GCC
18662    builtin and then its argument prototype would still apply.  */
18663 #ifdef __cplusplus
18664 extern "C"
18665 #endif
18666 char $ac_func ();
18667 /* The GNU C library defines this for functions which it implements
18668     to always fail with ENOSYS.  Some functions are actually named
18669     something starting with __ and the normal name is an alias.  */
18670 #if defined __stub_$ac_func || defined __stub___$ac_func
18671 choke me
18672 #endif
18673
18674 int
18675 main ()
18676 {
18677 return $ac_func ();
18678   ;
18679   return 0;
18680 }
18681 _ACEOF
18682 rm -f conftest.$ac_objext conftest$ac_exeext
18683 if { (ac_try="$ac_link"
18684 case "(($ac_try" in
18685   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18686   *) ac_try_echo=$ac_try;;
18687 esac
18688 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18689   (eval "$ac_link") 2>conftest.er1
18690   ac_status=$?
18691   grep -v '^ *+' conftest.er1 >conftest.err
18692   rm -f conftest.er1
18693   cat conftest.err >&5
18694   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18695   (exit $ac_status); } &&
18696          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18697   { (case "(($ac_try" in
18698   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18699   *) ac_try_echo=$ac_try;;
18700 esac
18701 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18702   (eval "$ac_try") 2>&5
18703   ac_status=$?
18704   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18705   (exit $ac_status); }; } &&
18706          { ac_try='test -s conftest$ac_exeext'
18707   { (case "(($ac_try" in
18708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18709   *) ac_try_echo=$ac_try;;
18710 esac
18711 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18712   (eval "$ac_try") 2>&5
18713   ac_status=$?
18714   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18715   (exit $ac_status); }; }; then
18716   eval "$as_ac_var=yes"
18717 else
18718   echo "$as_me: failed program was:" >&5
18719 sed 's/^/| /' conftest.$ac_ext >&5
18720
18721         eval "$as_ac_var=no"
18722 fi
18723
18724 rm -f core conftest.err conftest.$ac_objext \
18725       conftest$ac_exeext conftest.$ac_ext
18726 fi
18727 ac_res=`eval echo '${'$as_ac_var'}'`
18728                { echo "$as_me:$LINENO: result: $ac_res" >&5
18729 echo "${ECHO_T}$ac_res" >&6; }
18730 if test `eval echo '${'$as_ac_var'}'` = yes; then
18731   cat >>confdefs.h <<_ACEOF
18732 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18733 _ACEOF
18734
18735 fi
18736 done
18737
18738
18739
18740
18741
18742 for ac_func in setjmp longjmp sigsetjmp siglongjmp
18743 do
18744 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
18745 { echo "$as_me:$LINENO: checking for $ac_func" >&5
18746 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
18747 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
18748   echo $ECHO_N "(cached) $ECHO_C" >&6
18749 else
18750   cat >conftest.$ac_ext <<_ACEOF
18751 /* confdefs.h.  */
18752 _ACEOF
18753 cat confdefs.h >>conftest.$ac_ext
18754 cat >>conftest.$ac_ext <<_ACEOF
18755 /* end confdefs.h.  */
18756 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
18757    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
18758 #define $ac_func innocuous_$ac_func
18759
18760 /* System header to define __stub macros and hopefully few prototypes,
18761     which can conflict with char $ac_func (); below.
18762     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
18763     <limits.h> exists even on freestanding compilers.  */
18764
18765 #ifdef __STDC__
18766 # include <limits.h>
18767 #else
18768 # include <assert.h>
18769 #endif
18770
18771 #undef $ac_func
18772
18773 /* Override any GCC internal prototype to avoid an error.
18774    Use char because int might match the return type of a GCC
18775    builtin and then its argument prototype would still apply.  */
18776 #ifdef __cplusplus
18777 extern "C"
18778 #endif
18779 char $ac_func ();
18780 /* The GNU C library defines this for functions which it implements
18781     to always fail with ENOSYS.  Some functions are actually named
18782     something starting with __ and the normal name is an alias.  */
18783 #if defined __stub_$ac_func || defined __stub___$ac_func
18784 choke me
18785 #endif
18786
18787 int
18788 main ()
18789 {
18790 return $ac_func ();
18791   ;
18792   return 0;
18793 }
18794 _ACEOF
18795 rm -f conftest.$ac_objext conftest$ac_exeext
18796 if { (ac_try="$ac_link"
18797 case "(($ac_try" in
18798   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18799   *) ac_try_echo=$ac_try;;
18800 esac
18801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18802   (eval "$ac_link") 2>conftest.er1
18803   ac_status=$?
18804   grep -v '^ *+' conftest.er1 >conftest.err
18805   rm -f conftest.er1
18806   cat conftest.err >&5
18807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18808   (exit $ac_status); } &&
18809          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
18810   { (case "(($ac_try" in
18811   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18812   *) ac_try_echo=$ac_try;;
18813 esac
18814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18815   (eval "$ac_try") 2>&5
18816   ac_status=$?
18817   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18818   (exit $ac_status); }; } &&
18819          { ac_try='test -s conftest$ac_exeext'
18820   { (case "(($ac_try" in
18821   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18822   *) ac_try_echo=$ac_try;;
18823 esac
18824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18825   (eval "$ac_try") 2>&5
18826   ac_status=$?
18827   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18828   (exit $ac_status); }; }; then
18829   eval "$as_ac_var=yes"
18830 else
18831   echo "$as_me: failed program was:" >&5
18832 sed 's/^/| /' conftest.$ac_ext >&5
18833
18834         eval "$as_ac_var=no"
18835 fi
18836
18837 rm -f core conftest.err conftest.$ac_objext \
18838       conftest$ac_exeext conftest.$ac_ext
18839 fi
18840 ac_res=`eval echo '${'$as_ac_var'}'`
18841                { echo "$as_me:$LINENO: result: $ac_res" >&5
18842 echo "${ECHO_T}$ac_res" >&6; }
18843 if test `eval echo '${'$as_ac_var'}'` = yes; then
18844   cat >>confdefs.h <<_ACEOF
18845 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
18846 _ACEOF
18847
18848 fi
18849 done
18850
18851 { echo "$as_me:$LINENO: checking if printf has the %a format character" >&5
18852 echo $ECHO_N "checking if printf has the %a format character... $ECHO_C" >&6; }
18853 if test "${llvm_cv_c_printf_a+set}" = set; then
18854   echo $ECHO_N "(cached) $ECHO_C" >&6
18855 else
18856   ac_ext=c
18857 ac_cpp='$CPP $CPPFLAGS'
18858 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18859 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18860 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18861
18862  if test "$cross_compiling" = yes; then
18863   llvmac_cv_c_printf_a=no
18864 else
18865   cat >conftest.$ac_ext <<_ACEOF
18866
18867   /* confdefs.h.  */
18868 _ACEOF
18869 cat confdefs.h >>conftest.$ac_ext
18870 cat >>conftest.$ac_ext <<_ACEOF
18871 /* end confdefs.h.  */
18872
18873 #include <stdio.h>
18874 #include <stdlib.h>
18875
18876 int
18877 main ()
18878 {
18879
18880 volatile double A, B;
18881 char Buffer[100];
18882 A = 1;
18883 A /= 10.0;
18884 sprintf(Buffer, "%a", A);
18885 B = atof(Buffer);
18886 if (A != B)
18887   return (1);
18888 if (A != 0x1.999999999999ap-4)
18889   return (1);
18890 return (0);
18891   ;
18892   return 0;
18893 }
18894 _ACEOF
18895 rm -f conftest$ac_exeext
18896 if { (ac_try="$ac_link"
18897 case "(($ac_try" in
18898   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18899   *) ac_try_echo=$ac_try;;
18900 esac
18901 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18902   (eval "$ac_link") 2>&5
18903   ac_status=$?
18904   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18905   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
18906   { (case "(($ac_try" in
18907   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18908   *) ac_try_echo=$ac_try;;
18909 esac
18910 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18911   (eval "$ac_try") 2>&5
18912   ac_status=$?
18913   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18914   (exit $ac_status); }; }; then
18915   llvm_cv_c_printf_a=yes
18916 else
18917   echo "$as_me: program exited with status $ac_status" >&5
18918 echo "$as_me: failed program was:" >&5
18919 sed 's/^/| /' conftest.$ac_ext >&5
18920
18921 ( exit $ac_status )
18922 llvmac_cv_c_printf_a=no
18923 fi
18924 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
18925 fi
18926
18927
18928  ac_ext=c
18929 ac_cpp='$CPP $CPPFLAGS'
18930 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18931 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18932 ac_compiler_gnu=$ac_cv_c_compiler_gnu
18933
18934 fi
18935 { echo "$as_me:$LINENO: result: $llvm_cv_c_printf_a" >&5
18936 echo "${ECHO_T}$llvm_cv_c_printf_a" >&6; }
18937  if test "$llvm_cv_c_printf_a" = "yes"; then
18938
18939 cat >>confdefs.h <<\_ACEOF
18940 #define HAVE_PRINTF_A 1
18941 _ACEOF
18942
18943  fi
18944
18945
18946 { echo "$as_me:$LINENO: checking for srand48/lrand48/drand48 in <stdlib.h>" >&5
18947 echo $ECHO_N "checking for srand48/lrand48/drand48 in <stdlib.h>... $ECHO_C" >&6; }
18948 if test "${ac_cv_func_rand48+set}" = set; then
18949   echo $ECHO_N "(cached) $ECHO_C" >&6
18950 else
18951   ac_ext=cpp
18952 ac_cpp='$CXXCPP $CPPFLAGS'
18953 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
18954 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
18955 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
18956
18957    cat >conftest.$ac_ext <<_ACEOF
18958 /* confdefs.h.  */
18959 _ACEOF
18960 cat confdefs.h >>conftest.$ac_ext
18961 cat >>conftest.$ac_ext <<_ACEOF
18962 /* end confdefs.h.  */
18963 #include <stdlib.h>
18964 int
18965 main ()
18966 {
18967 srand48(0);lrand48();drand48();
18968   ;
18969   return 0;
18970 }
18971 _ACEOF
18972 rm -f conftest.$ac_objext
18973 if { (ac_try="$ac_compile"
18974 case "(($ac_try" in
18975   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18976   *) ac_try_echo=$ac_try;;
18977 esac
18978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18979   (eval "$ac_compile") 2>conftest.er1
18980   ac_status=$?
18981   grep -v '^ *+' conftest.er1 >conftest.err
18982   rm -f conftest.er1
18983   cat conftest.err >&5
18984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18985   (exit $ac_status); } &&
18986          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
18987   { (case "(($ac_try" in
18988   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18989   *) ac_try_echo=$ac_try;;
18990 esac
18991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
18992   (eval "$ac_try") 2>&5
18993   ac_status=$?
18994   echo "$as_me:$LINENO: \$? = $ac_status" >&5
18995   (exit $ac_status); }; } &&
18996          { ac_try='test -s conftest.$ac_objext'
18997   { (case "(($ac_try" in
18998   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
18999   *) ac_try_echo=$ac_try;;
19000 esac
19001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19002   (eval "$ac_try") 2>&5
19003   ac_status=$?
19004   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19005   (exit $ac_status); }; }; then
19006   ac_cv_func_rand48=yes
19007 else
19008   echo "$as_me: failed program was:" >&5
19009 sed 's/^/| /' conftest.$ac_ext >&5
19010
19011         ac_cv_func_rand48=no
19012 fi
19013
19014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19015   ac_ext=c
19016 ac_cpp='$CPP $CPPFLAGS'
19017 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19018 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19019 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19020
19021 fi
19022 { echo "$as_me:$LINENO: result: $ac_cv_func_rand48" >&5
19023 echo "${ECHO_T}$ac_cv_func_rand48" >&6; }
19024
19025 if test "$ac_cv_func_rand48" = "yes" ; then
19026
19027 cat >>confdefs.h <<\_ACEOF
19028 #define HAVE_RAND48 1
19029 _ACEOF
19030
19031 fi
19032
19033
19034
19035 { echo "$as_me:$LINENO: checking for isnan in <math.h>" >&5
19036 echo $ECHO_N "checking for isnan in <math.h>... $ECHO_C" >&6; }
19037 if test "${ac_cv_func_isnan_in_math_h+set}" = set; then
19038   echo $ECHO_N "(cached) $ECHO_C" >&6
19039 else
19040   ac_ext=cpp
19041 ac_cpp='$CXXCPP $CPPFLAGS'
19042 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19043 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19044 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19045
19046    cat >conftest.$ac_ext <<_ACEOF
19047 /* confdefs.h.  */
19048 _ACEOF
19049 cat confdefs.h >>conftest.$ac_ext
19050 cat >>conftest.$ac_ext <<_ACEOF
19051 /* end confdefs.h.  */
19052 #include <math.h>
19053 int
19054 main ()
19055 {
19056 float f; isnan(f);
19057   ;
19058   return 0;
19059 }
19060 _ACEOF
19061 rm -f conftest.$ac_objext
19062 if { (ac_try="$ac_compile"
19063 case "(($ac_try" in
19064   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19065   *) ac_try_echo=$ac_try;;
19066 esac
19067 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19068   (eval "$ac_compile") 2>conftest.er1
19069   ac_status=$?
19070   grep -v '^ *+' conftest.er1 >conftest.err
19071   rm -f conftest.er1
19072   cat conftest.err >&5
19073   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19074   (exit $ac_status); } &&
19075          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19076   { (case "(($ac_try" in
19077   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19078   *) ac_try_echo=$ac_try;;
19079 esac
19080 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19081   (eval "$ac_try") 2>&5
19082   ac_status=$?
19083   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19084   (exit $ac_status); }; } &&
19085          { ac_try='test -s conftest.$ac_objext'
19086   { (case "(($ac_try" in
19087   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19088   *) ac_try_echo=$ac_try;;
19089 esac
19090 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19091   (eval "$ac_try") 2>&5
19092   ac_status=$?
19093   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19094   (exit $ac_status); }; }; then
19095   ac_cv_func_isnan_in_math_h=yes
19096 else
19097   echo "$as_me: failed program was:" >&5
19098 sed 's/^/| /' conftest.$ac_ext >&5
19099
19100         ac_cv_func_isnan_in_math_h=no
19101 fi
19102
19103 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19104   ac_ext=c
19105 ac_cpp='$CPP $CPPFLAGS'
19106 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19107 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19108 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19109
19110 fi
19111 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_math_h" >&5
19112 echo "${ECHO_T}$ac_cv_func_isnan_in_math_h" >&6; }
19113
19114
19115 if test "$ac_cv_func_isnan_in_math_h" = "yes" ; then
19116
19117 cat >>confdefs.h <<\_ACEOF
19118 #define HAVE_ISNAN_IN_MATH_H 1
19119 _ACEOF
19120
19121 fi
19122
19123 { echo "$as_me:$LINENO: checking for isnan in <cmath>" >&5
19124 echo $ECHO_N "checking for isnan in <cmath>... $ECHO_C" >&6; }
19125 if test "${ac_cv_func_isnan_in_cmath+set}" = set; then
19126   echo $ECHO_N "(cached) $ECHO_C" >&6
19127 else
19128   ac_ext=cpp
19129 ac_cpp='$CXXCPP $CPPFLAGS'
19130 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19131 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19132 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19133
19134    cat >conftest.$ac_ext <<_ACEOF
19135 /* confdefs.h.  */
19136 _ACEOF
19137 cat confdefs.h >>conftest.$ac_ext
19138 cat >>conftest.$ac_ext <<_ACEOF
19139 /* end confdefs.h.  */
19140 #include <cmath>
19141 int
19142 main ()
19143 {
19144 float f; isnan(f);
19145   ;
19146   return 0;
19147 }
19148 _ACEOF
19149 rm -f conftest.$ac_objext
19150 if { (ac_try="$ac_compile"
19151 case "(($ac_try" in
19152   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19153   *) ac_try_echo=$ac_try;;
19154 esac
19155 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19156   (eval "$ac_compile") 2>conftest.er1
19157   ac_status=$?
19158   grep -v '^ *+' conftest.er1 >conftest.err
19159   rm -f conftest.er1
19160   cat conftest.err >&5
19161   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19162   (exit $ac_status); } &&
19163          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19164   { (case "(($ac_try" in
19165   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19166   *) ac_try_echo=$ac_try;;
19167 esac
19168 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19169   (eval "$ac_try") 2>&5
19170   ac_status=$?
19171   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19172   (exit $ac_status); }; } &&
19173          { ac_try='test -s conftest.$ac_objext'
19174   { (case "(($ac_try" in
19175   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19176   *) ac_try_echo=$ac_try;;
19177 esac
19178 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19179   (eval "$ac_try") 2>&5
19180   ac_status=$?
19181   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19182   (exit $ac_status); }; }; then
19183   ac_cv_func_isnan_in_cmath=yes
19184 else
19185   echo "$as_me: failed program was:" >&5
19186 sed 's/^/| /' conftest.$ac_ext >&5
19187
19188         ac_cv_func_isnan_in_cmath=no
19189 fi
19190
19191 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19192   ac_ext=c
19193 ac_cpp='$CPP $CPPFLAGS'
19194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19197
19198 fi
19199 { echo "$as_me:$LINENO: result: $ac_cv_func_isnan_in_cmath" >&5
19200 echo "${ECHO_T}$ac_cv_func_isnan_in_cmath" >&6; }
19201
19202 if test "$ac_cv_func_isnan_in_cmath" = "yes" ; then
19203
19204 cat >>confdefs.h <<\_ACEOF
19205 #define HAVE_ISNAN_IN_CMATH 1
19206 _ACEOF
19207
19208 fi
19209
19210 { echo "$as_me:$LINENO: checking for std::isnan in <cmath>" >&5
19211 echo $ECHO_N "checking for std::isnan in <cmath>... $ECHO_C" >&6; }
19212 if test "${ac_cv_func_std_isnan_in_cmath+set}" = set; then
19213   echo $ECHO_N "(cached) $ECHO_C" >&6
19214 else
19215   ac_ext=cpp
19216 ac_cpp='$CXXCPP $CPPFLAGS'
19217 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19218 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19219 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19220
19221    cat >conftest.$ac_ext <<_ACEOF
19222 /* confdefs.h.  */
19223 _ACEOF
19224 cat confdefs.h >>conftest.$ac_ext
19225 cat >>conftest.$ac_ext <<_ACEOF
19226 /* end confdefs.h.  */
19227 #include <cmath>
19228 int
19229 main ()
19230 {
19231 float f; std::isnan(f);
19232   ;
19233   return 0;
19234 }
19235 _ACEOF
19236 rm -f conftest.$ac_objext
19237 if { (ac_try="$ac_compile"
19238 case "(($ac_try" in
19239   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19240   *) ac_try_echo=$ac_try;;
19241 esac
19242 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19243   (eval "$ac_compile") 2>conftest.er1
19244   ac_status=$?
19245   grep -v '^ *+' conftest.er1 >conftest.err
19246   rm -f conftest.er1
19247   cat conftest.err >&5
19248   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19249   (exit $ac_status); } &&
19250          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19251   { (case "(($ac_try" in
19252   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19253   *) ac_try_echo=$ac_try;;
19254 esac
19255 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19256   (eval "$ac_try") 2>&5
19257   ac_status=$?
19258   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19259   (exit $ac_status); }; } &&
19260          { ac_try='test -s conftest.$ac_objext'
19261   { (case "(($ac_try" in
19262   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19263   *) ac_try_echo=$ac_try;;
19264 esac
19265 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19266   (eval "$ac_try") 2>&5
19267   ac_status=$?
19268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19269   (exit $ac_status); }; }; then
19270   ac_cv_func_std_isnan_in_cmath=yes
19271 else
19272   echo "$as_me: failed program was:" >&5
19273 sed 's/^/| /' conftest.$ac_ext >&5
19274
19275         ac_cv_func_std_isnan_in_cmath=no
19276 fi
19277
19278 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19279   ac_ext=c
19280 ac_cpp='$CPP $CPPFLAGS'
19281 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19282 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19283 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19284
19285 fi
19286 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isnan_in_cmath" >&5
19287 echo "${ECHO_T}$ac_cv_func_std_isnan_in_cmath" >&6; }
19288
19289 if test "$ac_cv_func_std_isnan_in_cmath" = "yes" ; then
19290
19291 cat >>confdefs.h <<\_ACEOF
19292 #define HAVE_STD_ISNAN_IN_CMATH 1
19293 _ACEOF
19294
19295 fi
19296
19297
19298 { echo "$as_me:$LINENO: checking for isinf in <math.h>" >&5
19299 echo $ECHO_N "checking for isinf in <math.h>... $ECHO_C" >&6; }
19300 if test "${ac_cv_func_isinf_in_math_h+set}" = set; then
19301   echo $ECHO_N "(cached) $ECHO_C" >&6
19302 else
19303   ac_ext=cpp
19304 ac_cpp='$CXXCPP $CPPFLAGS'
19305 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19306 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19307 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19308
19309    cat >conftest.$ac_ext <<_ACEOF
19310 /* confdefs.h.  */
19311 _ACEOF
19312 cat confdefs.h >>conftest.$ac_ext
19313 cat >>conftest.$ac_ext <<_ACEOF
19314 /* end confdefs.h.  */
19315 #include <math.h>
19316 int
19317 main ()
19318 {
19319 float f; isinf(f);
19320   ;
19321   return 0;
19322 }
19323 _ACEOF
19324 rm -f conftest.$ac_objext
19325 if { (ac_try="$ac_compile"
19326 case "(($ac_try" in
19327   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19328   *) ac_try_echo=$ac_try;;
19329 esac
19330 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19331   (eval "$ac_compile") 2>conftest.er1
19332   ac_status=$?
19333   grep -v '^ *+' conftest.er1 >conftest.err
19334   rm -f conftest.er1
19335   cat conftest.err >&5
19336   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19337   (exit $ac_status); } &&
19338          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19339   { (case "(($ac_try" in
19340   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19341   *) ac_try_echo=$ac_try;;
19342 esac
19343 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19344   (eval "$ac_try") 2>&5
19345   ac_status=$?
19346   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19347   (exit $ac_status); }; } &&
19348          { ac_try='test -s conftest.$ac_objext'
19349   { (case "(($ac_try" in
19350   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19351   *) ac_try_echo=$ac_try;;
19352 esac
19353 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19354   (eval "$ac_try") 2>&5
19355   ac_status=$?
19356   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19357   (exit $ac_status); }; }; then
19358   ac_cv_func_isinf_in_math_h=yes
19359 else
19360   echo "$as_me: failed program was:" >&5
19361 sed 's/^/| /' conftest.$ac_ext >&5
19362
19363         ac_cv_func_isinf_in_math_h=no
19364 fi
19365
19366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19367   ac_ext=c
19368 ac_cpp='$CPP $CPPFLAGS'
19369 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19370 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19371 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19372
19373 fi
19374 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_math_h" >&5
19375 echo "${ECHO_T}$ac_cv_func_isinf_in_math_h" >&6; }
19376
19377 if test "$ac_cv_func_isinf_in_math_h" = "yes" ; then
19378
19379 cat >>confdefs.h <<\_ACEOF
19380 #define HAVE_ISINF_IN_MATH_H 1
19381 _ACEOF
19382
19383 fi
19384
19385 { echo "$as_me:$LINENO: checking for isinf in <cmath>" >&5
19386 echo $ECHO_N "checking for isinf in <cmath>... $ECHO_C" >&6; }
19387 if test "${ac_cv_func_isinf_in_cmath+set}" = set; then
19388   echo $ECHO_N "(cached) $ECHO_C" >&6
19389 else
19390   ac_ext=cpp
19391 ac_cpp='$CXXCPP $CPPFLAGS'
19392 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19393 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19394 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19395
19396    cat >conftest.$ac_ext <<_ACEOF
19397 /* confdefs.h.  */
19398 _ACEOF
19399 cat confdefs.h >>conftest.$ac_ext
19400 cat >>conftest.$ac_ext <<_ACEOF
19401 /* end confdefs.h.  */
19402 #include <cmath>
19403 int
19404 main ()
19405 {
19406 float f; isinf(f);
19407   ;
19408   return 0;
19409 }
19410 _ACEOF
19411 rm -f conftest.$ac_objext
19412 if { (ac_try="$ac_compile"
19413 case "(($ac_try" in
19414   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19415   *) ac_try_echo=$ac_try;;
19416 esac
19417 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19418   (eval "$ac_compile") 2>conftest.er1
19419   ac_status=$?
19420   grep -v '^ *+' conftest.er1 >conftest.err
19421   rm -f conftest.er1
19422   cat conftest.err >&5
19423   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19424   (exit $ac_status); } &&
19425          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19426   { (case "(($ac_try" in
19427   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19428   *) ac_try_echo=$ac_try;;
19429 esac
19430 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19431   (eval "$ac_try") 2>&5
19432   ac_status=$?
19433   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19434   (exit $ac_status); }; } &&
19435          { ac_try='test -s conftest.$ac_objext'
19436   { (case "(($ac_try" in
19437   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19438   *) ac_try_echo=$ac_try;;
19439 esac
19440 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19441   (eval "$ac_try") 2>&5
19442   ac_status=$?
19443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19444   (exit $ac_status); }; }; then
19445   ac_cv_func_isinf_in_cmath=yes
19446 else
19447   echo "$as_me: failed program was:" >&5
19448 sed 's/^/| /' conftest.$ac_ext >&5
19449
19450         ac_cv_func_isinf_in_cmath=no
19451 fi
19452
19453 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19454   ac_ext=c
19455 ac_cpp='$CPP $CPPFLAGS'
19456 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19457 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19458 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19459
19460 fi
19461 { echo "$as_me:$LINENO: result: $ac_cv_func_isinf_in_cmath" >&5
19462 echo "${ECHO_T}$ac_cv_func_isinf_in_cmath" >&6; }
19463
19464 if test "$ac_cv_func_isinf_in_cmath" = "yes" ; then
19465
19466 cat >>confdefs.h <<\_ACEOF
19467 #define HAVE_ISINF_IN_CMATH 1
19468 _ACEOF
19469
19470 fi
19471
19472 { echo "$as_me:$LINENO: checking for std::isinf in <cmath>" >&5
19473 echo $ECHO_N "checking for std::isinf in <cmath>... $ECHO_C" >&6; }
19474 if test "${ac_cv_func_std_isinf_in_cmath+set}" = set; then
19475   echo $ECHO_N "(cached) $ECHO_C" >&6
19476 else
19477   ac_ext=cpp
19478 ac_cpp='$CXXCPP $CPPFLAGS'
19479 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19480 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19481 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19482
19483    cat >conftest.$ac_ext <<_ACEOF
19484 /* confdefs.h.  */
19485 _ACEOF
19486 cat confdefs.h >>conftest.$ac_ext
19487 cat >>conftest.$ac_ext <<_ACEOF
19488 /* end confdefs.h.  */
19489 #include <cmath>
19490 int
19491 main ()
19492 {
19493 float f; std::isinf(f)}
19494   ;
19495   return 0;
19496 }
19497 _ACEOF
19498 rm -f conftest.$ac_objext
19499 if { (ac_try="$ac_compile"
19500 case "(($ac_try" in
19501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19502   *) ac_try_echo=$ac_try;;
19503 esac
19504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19505   (eval "$ac_compile") 2>conftest.er1
19506   ac_status=$?
19507   grep -v '^ *+' conftest.er1 >conftest.err
19508   rm -f conftest.er1
19509   cat conftest.err >&5
19510   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19511   (exit $ac_status); } &&
19512          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19513   { (case "(($ac_try" in
19514   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19515   *) ac_try_echo=$ac_try;;
19516 esac
19517 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19518   (eval "$ac_try") 2>&5
19519   ac_status=$?
19520   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19521   (exit $ac_status); }; } &&
19522          { ac_try='test -s conftest.$ac_objext'
19523   { (case "(($ac_try" in
19524   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19525   *) ac_try_echo=$ac_try;;
19526 esac
19527 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19528   (eval "$ac_try") 2>&5
19529   ac_status=$?
19530   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19531   (exit $ac_status); }; }; then
19532   ac_cv_func_std_isinf_in_cmath=yes
19533 else
19534   echo "$as_me: failed program was:" >&5
19535 sed 's/^/| /' conftest.$ac_ext >&5
19536
19537         ac_cv_func_std_isinf_in_cmath=no
19538 fi
19539
19540 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19541   ac_ext=c
19542 ac_cpp='$CPP $CPPFLAGS'
19543 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19544 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19545 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19546
19547 fi
19548 { echo "$as_me:$LINENO: result: $ac_cv_func_std_isinf_in_cmath" >&5
19549 echo "${ECHO_T}$ac_cv_func_std_isinf_in_cmath" >&6; }
19550
19551 if test "$ac_cv_func_std_isinf_in_cmath" = "yes" ; then
19552
19553 cat >>confdefs.h <<\_ACEOF
19554 #define HAVE_STD_ISINF_IN_CMATH 1
19555 _ACEOF
19556
19557 fi
19558
19559 { echo "$as_me:$LINENO: checking for finite in <ieeefp.h>" >&5
19560 echo $ECHO_N "checking for finite in <ieeefp.h>... $ECHO_C" >&6; }
19561 if test "${ac_cv_func_finite_in_ieeefp_h+set}" = set; then
19562   echo $ECHO_N "(cached) $ECHO_C" >&6
19563 else
19564   ac_ext=cpp
19565 ac_cpp='$CXXCPP $CPPFLAGS'
19566 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19567 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19568 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
19569
19570    cat >conftest.$ac_ext <<_ACEOF
19571 /* confdefs.h.  */
19572 _ACEOF
19573 cat confdefs.h >>conftest.$ac_ext
19574 cat >>conftest.$ac_ext <<_ACEOF
19575 /* end confdefs.h.  */
19576 #include <ieeefp.h>
19577 int
19578 main ()
19579 {
19580 float f; finite(f);
19581   ;
19582   return 0;
19583 }
19584 _ACEOF
19585 rm -f conftest.$ac_objext
19586 if { (ac_try="$ac_compile"
19587 case "(($ac_try" in
19588   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19589   *) ac_try_echo=$ac_try;;
19590 esac
19591 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19592   (eval "$ac_compile") 2>conftest.er1
19593   ac_status=$?
19594   grep -v '^ *+' conftest.er1 >conftest.err
19595   rm -f conftest.er1
19596   cat conftest.err >&5
19597   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19598   (exit $ac_status); } &&
19599          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
19600   { (case "(($ac_try" in
19601   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19602   *) ac_try_echo=$ac_try;;
19603 esac
19604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19605   (eval "$ac_try") 2>&5
19606   ac_status=$?
19607   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19608   (exit $ac_status); }; } &&
19609          { ac_try='test -s conftest.$ac_objext'
19610   { (case "(($ac_try" in
19611   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19612   *) ac_try_echo=$ac_try;;
19613 esac
19614 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19615   (eval "$ac_try") 2>&5
19616   ac_status=$?
19617   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19618   (exit $ac_status); }; }; then
19619   ac_cv_func_finite_in_ieeefp_h=yes
19620 else
19621   echo "$as_me: failed program was:" >&5
19622 sed 's/^/| /' conftest.$ac_ext >&5
19623
19624         ac_cv_func_finite_in_ieeefp_h=no
19625 fi
19626
19627 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19628   ac_ext=c
19629 ac_cpp='$CPP $CPPFLAGS'
19630 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
19631 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
19632 ac_compiler_gnu=$ac_cv_c_compiler_gnu
19633
19634 fi
19635 { echo "$as_me:$LINENO: result: $ac_cv_func_finite_in_ieeefp_h" >&5
19636 echo "${ECHO_T}$ac_cv_func_finite_in_ieeefp_h" >&6; }
19637
19638 if test "$ac_cv_func_finite_in_ieeefp_h" = "yes" ; then
19639
19640 cat >>confdefs.h <<\_ACEOF
19641 #define HAVE_FINITE_IN_IEEEFP_H 1
19642 _ACEOF
19643
19644 fi
19645
19646
19647
19648 if test "$llvm_cv_platform_type" = "Unix" ; then
19649
19650
19651 for ac_header in stdlib.h unistd.h
19652 do
19653 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
19654 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19655   { echo "$as_me:$LINENO: checking for $ac_header" >&5
19656 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19657 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19658   echo $ECHO_N "(cached) $ECHO_C" >&6
19659 fi
19660 ac_res=`eval echo '${'$as_ac_Header'}'`
19661                { echo "$as_me:$LINENO: result: $ac_res" >&5
19662 echo "${ECHO_T}$ac_res" >&6; }
19663 else
19664   # Is the header compilable?
19665 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
19666 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
19667 cat >conftest.$ac_ext <<_ACEOF
19668 /* confdefs.h.  */
19669 _ACEOF
19670 cat confdefs.h >>conftest.$ac_ext
19671 cat >>conftest.$ac_ext <<_ACEOF
19672 /* end confdefs.h.  */
19673 $ac_includes_default
19674 #include <$ac_header>
19675 _ACEOF
19676 rm -f conftest.$ac_objext
19677 if { (ac_try="$ac_compile"
19678 case "(($ac_try" in
19679   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19680   *) ac_try_echo=$ac_try;;
19681 esac
19682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19683   (eval "$ac_compile") 2>conftest.er1
19684   ac_status=$?
19685   grep -v '^ *+' conftest.er1 >conftest.err
19686   rm -f conftest.er1
19687   cat conftest.err >&5
19688   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19689   (exit $ac_status); } &&
19690          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19691   { (case "(($ac_try" in
19692   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19693   *) ac_try_echo=$ac_try;;
19694 esac
19695 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19696   (eval "$ac_try") 2>&5
19697   ac_status=$?
19698   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19699   (exit $ac_status); }; } &&
19700          { ac_try='test -s conftest.$ac_objext'
19701   { (case "(($ac_try" in
19702   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19703   *) ac_try_echo=$ac_try;;
19704 esac
19705 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19706   (eval "$ac_try") 2>&5
19707   ac_status=$?
19708   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19709   (exit $ac_status); }; }; then
19710   ac_header_compiler=yes
19711 else
19712   echo "$as_me: failed program was:" >&5
19713 sed 's/^/| /' conftest.$ac_ext >&5
19714
19715         ac_header_compiler=no
19716 fi
19717
19718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
19719 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
19720 echo "${ECHO_T}$ac_header_compiler" >&6; }
19721
19722 # Is the header present?
19723 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
19724 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
19725 cat >conftest.$ac_ext <<_ACEOF
19726 /* confdefs.h.  */
19727 _ACEOF
19728 cat confdefs.h >>conftest.$ac_ext
19729 cat >>conftest.$ac_ext <<_ACEOF
19730 /* end confdefs.h.  */
19731 #include <$ac_header>
19732 _ACEOF
19733 if { (ac_try="$ac_cpp conftest.$ac_ext"
19734 case "(($ac_try" in
19735   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19736   *) ac_try_echo=$ac_try;;
19737 esac
19738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19739   (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
19740   ac_status=$?
19741   grep -v '^ *+' conftest.er1 >conftest.err
19742   rm -f conftest.er1
19743   cat conftest.err >&5
19744   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19745   (exit $ac_status); } >/dev/null; then
19746   if test -s conftest.err; then
19747     ac_cpp_err=$ac_c_preproc_warn_flag
19748     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
19749   else
19750     ac_cpp_err=
19751   fi
19752 else
19753   ac_cpp_err=yes
19754 fi
19755 if test -z "$ac_cpp_err"; then
19756   ac_header_preproc=yes
19757 else
19758   echo "$as_me: failed program was:" >&5
19759 sed 's/^/| /' conftest.$ac_ext >&5
19760
19761   ac_header_preproc=no
19762 fi
19763
19764 rm -f conftest.err conftest.$ac_ext
19765 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
19766 echo "${ECHO_T}$ac_header_preproc" >&6; }
19767
19768 # So?  What about this header?
19769 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
19770   yes:no: )
19771     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
19772 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
19773     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
19774 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
19775     ac_header_preproc=yes
19776     ;;
19777   no:yes:* )
19778     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
19779 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
19780     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
19781 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
19782     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
19783 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
19784     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
19785 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
19786     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
19787 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
19788     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
19789 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
19790     ( cat <<\_ASBOX
19791 ## ----------------------------------- ##
19792 ## Report this to llvmbugs@cs.uiuc.edu ##
19793 ## ----------------------------------- ##
19794 _ASBOX
19795      ) | sed "s/^/$as_me: WARNING:     /" >&2
19796     ;;
19797 esac
19798 { echo "$as_me:$LINENO: checking for $ac_header" >&5
19799 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
19800 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
19801   echo $ECHO_N "(cached) $ECHO_C" >&6
19802 else
19803   eval "$as_ac_Header=\$ac_header_preproc"
19804 fi
19805 ac_res=`eval echo '${'$as_ac_Header'}'`
19806                { echo "$as_me:$LINENO: result: $ac_res" >&5
19807 echo "${ECHO_T}$ac_res" >&6; }
19808
19809 fi
19810 if test `eval echo '${'$as_ac_Header'}'` = yes; then
19811   cat >>confdefs.h <<_ACEOF
19812 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
19813 _ACEOF
19814
19815 fi
19816
19817 done
19818
19819
19820 for ac_func in getpagesize
19821 do
19822 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
19823 { echo "$as_me:$LINENO: checking for $ac_func" >&5
19824 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
19825 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
19826   echo $ECHO_N "(cached) $ECHO_C" >&6
19827 else
19828   cat >conftest.$ac_ext <<_ACEOF
19829 /* confdefs.h.  */
19830 _ACEOF
19831 cat confdefs.h >>conftest.$ac_ext
19832 cat >>conftest.$ac_ext <<_ACEOF
19833 /* end confdefs.h.  */
19834 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
19835    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
19836 #define $ac_func innocuous_$ac_func
19837
19838 /* System header to define __stub macros and hopefully few prototypes,
19839     which can conflict with char $ac_func (); below.
19840     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
19841     <limits.h> exists even on freestanding compilers.  */
19842
19843 #ifdef __STDC__
19844 # include <limits.h>
19845 #else
19846 # include <assert.h>
19847 #endif
19848
19849 #undef $ac_func
19850
19851 /* Override any GCC internal prototype to avoid an error.
19852    Use char because int might match the return type of a GCC
19853    builtin and then its argument prototype would still apply.  */
19854 #ifdef __cplusplus
19855 extern "C"
19856 #endif
19857 char $ac_func ();
19858 /* The GNU C library defines this for functions which it implements
19859     to always fail with ENOSYS.  Some functions are actually named
19860     something starting with __ and the normal name is an alias.  */
19861 #if defined __stub_$ac_func || defined __stub___$ac_func
19862 choke me
19863 #endif
19864
19865 int
19866 main ()
19867 {
19868 return $ac_func ();
19869   ;
19870   return 0;
19871 }
19872 _ACEOF
19873 rm -f conftest.$ac_objext conftest$ac_exeext
19874 if { (ac_try="$ac_link"
19875 case "(($ac_try" in
19876   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19877   *) ac_try_echo=$ac_try;;
19878 esac
19879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19880   (eval "$ac_link") 2>conftest.er1
19881   ac_status=$?
19882   grep -v '^ *+' conftest.er1 >conftest.err
19883   rm -f conftest.er1
19884   cat conftest.err >&5
19885   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19886   (exit $ac_status); } &&
19887          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
19888   { (case "(($ac_try" in
19889   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19890   *) ac_try_echo=$ac_try;;
19891 esac
19892 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19893   (eval "$ac_try") 2>&5
19894   ac_status=$?
19895   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19896   (exit $ac_status); }; } &&
19897          { ac_try='test -s conftest$ac_exeext'
19898   { (case "(($ac_try" in
19899   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
19900   *) ac_try_echo=$ac_try;;
19901 esac
19902 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
19903   (eval "$ac_try") 2>&5
19904   ac_status=$?
19905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
19906   (exit $ac_status); }; }; then
19907   eval "$as_ac_var=yes"
19908 else
19909   echo "$as_me: failed program was:" >&5
19910 sed 's/^/| /' conftest.$ac_ext >&5
19911
19912         eval "$as_ac_var=no"
19913 fi
19914
19915 rm -f core conftest.err conftest.$ac_objext \
19916       conftest$ac_exeext conftest.$ac_ext
19917 fi
19918 ac_res=`eval echo '${'$as_ac_var'}'`
19919                { echo "$as_me:$LINENO: result: $ac_res" >&5
19920 echo "${ECHO_T}$ac_res" >&6; }
19921 if test `eval echo '${'$as_ac_var'}'` = yes; then
19922   cat >>confdefs.h <<_ACEOF
19923 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
19924 _ACEOF
19925
19926 fi
19927 done
19928
19929 { echo "$as_me:$LINENO: checking for working mmap" >&5
19930 echo $ECHO_N "checking for working mmap... $ECHO_C" >&6; }
19931 if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then
19932   echo $ECHO_N "(cached) $ECHO_C" >&6
19933 else
19934   if test "$cross_compiling" = yes; then
19935   ac_cv_func_mmap_fixed_mapped=no
19936 else
19937   cat >conftest.$ac_ext <<_ACEOF
19938 /* confdefs.h.  */
19939 _ACEOF
19940 cat confdefs.h >>conftest.$ac_ext
19941 cat >>conftest.$ac_ext <<_ACEOF
19942 /* end confdefs.h.  */
19943 $ac_includes_default
19944 /* malloc might have been renamed as rpl_malloc. */
19945 #undef malloc
19946
19947 /* Thanks to Mike Haertel and Jim Avera for this test.
19948    Here is a matrix of mmap possibilities:
19949         mmap private not fixed
19950         mmap private fixed at somewhere currently unmapped
19951         mmap private fixed at somewhere already mapped
19952         mmap shared not fixed
19953         mmap shared fixed at somewhere currently unmapped
19954         mmap shared fixed at somewhere already mapped
19955    For private mappings, we should verify that changes cannot be read()
19956    back from the file, nor mmap's back from the file at a different
19957    address.  (There have been systems where private was not correctly
19958    implemented like the infamous i386 svr4.0, and systems where the
19959    VM page cache was not coherent with the file system buffer cache
19960    like early versions of FreeBSD and possibly contemporary NetBSD.)
19961    For shared mappings, we should conversely verify that changes get
19962    propagated back to all the places they're supposed to be.
19963
19964    Grep wants private fixed already mapped.
19965    The main things grep needs to know about mmap are:
19966    * does it exist and is it safe to write into the mmap'd area
19967    * how to use it (BSD variants)  */
19968
19969 #include <fcntl.h>
19970 #include <sys/mman.h>
19971
19972 #if !STDC_HEADERS && !HAVE_STDLIB_H
19973 char *malloc ();
19974 #endif
19975
19976 /* This mess was copied from the GNU getpagesize.h.  */
19977 #if !HAVE_GETPAGESIZE
19978 /* Assume that all systems that can run configure have sys/param.h.  */
19979 # if !HAVE_SYS_PARAM_H
19980 #  define HAVE_SYS_PARAM_H 1
19981 # endif
19982
19983 # ifdef _SC_PAGESIZE
19984 #  define getpagesize() sysconf(_SC_PAGESIZE)
19985 # else /* no _SC_PAGESIZE */
19986 #  if HAVE_SYS_PARAM_H
19987 #   include <sys/param.h>
19988 #   ifdef EXEC_PAGESIZE
19989 #    define getpagesize() EXEC_PAGESIZE
19990 #   else /* no EXEC_PAGESIZE */
19991 #    ifdef NBPG
19992 #     define getpagesize() NBPG * CLSIZE
19993 #     ifndef CLSIZE
19994 #      define CLSIZE 1
19995 #     endif /* no CLSIZE */
19996 #    else /* no NBPG */
19997 #     ifdef NBPC
19998 #      define getpagesize() NBPC
19999 #     else /* no NBPC */
20000 #      ifdef PAGESIZE
20001 #       define getpagesize() PAGESIZE
20002 #      endif /* PAGESIZE */
20003 #     endif /* no NBPC */
20004 #    endif /* no NBPG */
20005 #   endif /* no EXEC_PAGESIZE */
20006 #  else /* no HAVE_SYS_PARAM_H */
20007 #   define getpagesize() 8192   /* punt totally */
20008 #  endif /* no HAVE_SYS_PARAM_H */
20009 # endif /* no _SC_PAGESIZE */
20010
20011 #endif /* no HAVE_GETPAGESIZE */
20012
20013 int
20014 main ()
20015 {
20016   char *data, *data2, *data3;
20017   int i, pagesize;
20018   int fd;
20019
20020   pagesize = getpagesize ();
20021
20022   /* First, make a file with some known garbage in it. */
20023   data = (char *) malloc (pagesize);
20024   if (!data)
20025     return 1;
20026   for (i = 0; i < pagesize; ++i)
20027     *(data + i) = rand ();
20028   umask (0);
20029   fd = creat ("conftest.mmap", 0600);
20030   if (fd < 0)
20031     return 1;
20032   if (write (fd, data, pagesize) != pagesize)
20033     return 1;
20034   close (fd);
20035
20036   /* Next, try to mmap the file at a fixed address which already has
20037      something else allocated at it.  If we can, also make sure that
20038      we see the same garbage.  */
20039   fd = open ("conftest.mmap", O_RDWR);
20040   if (fd < 0)
20041     return 1;
20042   data2 = (char *) malloc (2 * pagesize);
20043   if (!data2)
20044     return 1;
20045   data2 += (pagesize - ((long int) data2 & (pagesize - 1))) & (pagesize - 1);
20046   if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE,
20047                      MAP_PRIVATE | MAP_FIXED, fd, 0L))
20048     return 1;
20049   for (i = 0; i < pagesize; ++i)
20050     if (*(data + i) != *(data2 + i))
20051       return 1;
20052
20053   /* Finally, make sure that changes to the mapped area do not
20054      percolate back to the file as seen by read().  (This is a bug on
20055      some variants of i386 svr4.0.)  */
20056   for (i = 0; i < pagesize; ++i)
20057     *(data2 + i) = *(data2 + i) + 1;
20058   data3 = (char *) malloc (pagesize);
20059   if (!data3)
20060     return 1;
20061   if (read (fd, data3, pagesize) != pagesize)
20062     return 1;
20063   for (i = 0; i < pagesize; ++i)
20064     if (*(data + i) != *(data3 + i))
20065       return 1;
20066   close (fd);
20067   return 0;
20068 }
20069 _ACEOF
20070 rm -f conftest$ac_exeext
20071 if { (ac_try="$ac_link"
20072 case "(($ac_try" in
20073   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20074   *) ac_try_echo=$ac_try;;
20075 esac
20076 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20077   (eval "$ac_link") 2>&5
20078   ac_status=$?
20079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20080   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20081   { (case "(($ac_try" in
20082   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20083   *) ac_try_echo=$ac_try;;
20084 esac
20085 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20086   (eval "$ac_try") 2>&5
20087   ac_status=$?
20088   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20089   (exit $ac_status); }; }; then
20090   ac_cv_func_mmap_fixed_mapped=yes
20091 else
20092   echo "$as_me: program exited with status $ac_status" >&5
20093 echo "$as_me: failed program was:" >&5
20094 sed 's/^/| /' conftest.$ac_ext >&5
20095
20096 ( exit $ac_status )
20097 ac_cv_func_mmap_fixed_mapped=no
20098 fi
20099 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20100 fi
20101
20102
20103 fi
20104 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5
20105 echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6; }
20106 if test $ac_cv_func_mmap_fixed_mapped = yes; then
20107
20108 cat >>confdefs.h <<\_ACEOF
20109 #define HAVE_MMAP 1
20110 _ACEOF
20111
20112 fi
20113 rm -f conftest.mmap
20114
20115   { echo "$as_me:$LINENO: checking for mmap of files" >&5
20116 echo $ECHO_N "checking for mmap of files... $ECHO_C" >&6; }
20117 if test "${ac_cv_func_mmap_file+set}" = set; then
20118   echo $ECHO_N "(cached) $ECHO_C" >&6
20119 else
20120    ac_ext=c
20121 ac_cpp='$CPP $CPPFLAGS'
20122 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20123 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20124 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20125
20126   if test "$cross_compiling" = yes; then
20127   ac_cv_func_mmap_file=no
20128 else
20129   cat >conftest.$ac_ext <<_ACEOF
20130
20131     /* confdefs.h.  */
20132 _ACEOF
20133 cat confdefs.h >>conftest.$ac_ext
20134 cat >>conftest.$ac_ext <<_ACEOF
20135 /* end confdefs.h.  */
20136
20137 #include <sys/types.h>
20138 #include <sys/mman.h>
20139 #include <fcntl.h>
20140
20141 int
20142 main ()
20143 {
20144
20145   int fd;
20146   fd = creat ("foo",0777);
20147   fd = (int) mmap (0, 1, PROT_READ, MAP_SHARED, fd, 0);
20148   unlink ("foo");
20149   return (fd != (int) MAP_FAILED);
20150   ;
20151   return 0;
20152 }
20153 _ACEOF
20154 rm -f conftest$ac_exeext
20155 if { (ac_try="$ac_link"
20156 case "(($ac_try" in
20157   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20158   *) ac_try_echo=$ac_try;;
20159 esac
20160 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20161   (eval "$ac_link") 2>&5
20162   ac_status=$?
20163   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20164   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
20165   { (case "(($ac_try" in
20166   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20167   *) ac_try_echo=$ac_try;;
20168 esac
20169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20170   (eval "$ac_try") 2>&5
20171   ac_status=$?
20172   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20173   (exit $ac_status); }; }; then
20174   ac_cv_func_mmap_file=yes
20175 else
20176   echo "$as_me: program exited with status $ac_status" >&5
20177 echo "$as_me: failed program was:" >&5
20178 sed 's/^/| /' conftest.$ac_ext >&5
20179
20180 ( exit $ac_status )
20181 ac_cv_func_mmap_file=no
20182 fi
20183 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
20184 fi
20185
20186
20187   ac_ext=c
20188 ac_cpp='$CPP $CPPFLAGS'
20189 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20190 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20191 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20192
20193
20194 fi
20195 { echo "$as_me:$LINENO: result: $ac_cv_func_mmap_file" >&5
20196 echo "${ECHO_T}$ac_cv_func_mmap_file" >&6; }
20197 if test "$ac_cv_func_mmap_file" = yes; then
20198
20199 cat >>confdefs.h <<\_ACEOF
20200 #define HAVE_MMAP_FILE
20201 _ACEOF
20202
20203    MMAP_FILE=yes
20204
20205 fi
20206
20207   { echo "$as_me:$LINENO: checking if /dev/zero is needed for mmap" >&5
20208 echo $ECHO_N "checking if /dev/zero is needed for mmap... $ECHO_C" >&6; }
20209 if test "${ac_cv_need_dev_zero_for_mmap+set}" = set; then
20210   echo $ECHO_N "(cached) $ECHO_C" >&6
20211 else
20212   if test "$llvm_cv_os_type" = "Interix" ; then
20213    ac_cv_need_dev_zero_for_mmap=yes
20214  else
20215    ac_cv_need_dev_zero_for_mmap=no
20216  fi
20217
20218 fi
20219 { echo "$as_me:$LINENO: result: $ac_cv_need_dev_zero_for_mmap" >&5
20220 echo "${ECHO_T}$ac_cv_need_dev_zero_for_mmap" >&6; }
20221 if test "$ac_cv_need_dev_zero_for_mmap" = yes; then
20222
20223 cat >>confdefs.h <<\_ACEOF
20224 #define NEED_DEV_ZERO_FOR_MMAP 1
20225 _ACEOF
20226
20227 fi
20228
20229   if test "$ac_cv_func_mmap_fixed_mapped" = "no"
20230   then
20231     { echo "$as_me:$LINENO: WARNING: mmap() of a fixed address required but not supported" >&5
20232 echo "$as_me: WARNING: mmap() of a fixed address required but not supported" >&2;}
20233   fi
20234   if test "$ac_cv_func_mmap_file" = "no"
20235   then
20236     { echo "$as_me:$LINENO: WARNING: mmap() of files required but not found" >&5
20237 echo "$as_me: WARNING: mmap() of files required but not found" >&2;}
20238   fi
20239 fi
20240
20241 { echo "$as_me:$LINENO: checking for GCC atomic builtins" >&5
20242 echo $ECHO_N "checking for GCC atomic builtins... $ECHO_C" >&6; }
20243 ac_ext=cpp
20244 ac_cpp='$CXXCPP $CPPFLAGS'
20245 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20246 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20247 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20248
20249 cat >conftest.$ac_ext <<_ACEOF
20250 /* confdefs.h.  */
20251 _ACEOF
20252 cat confdefs.h >>conftest.$ac_ext
20253 cat >>conftest.$ac_ext <<_ACEOF
20254 /* end confdefs.h.  */
20255 int main() {
20256         volatile unsigned long val = 1;
20257         __sync_synchronize();
20258         __sync_val_compare_and_swap(&val, 1, 0);
20259         __sync_add_and_fetch(&val, 1);
20260         __sync_sub_and_fetch(&val, 1);
20261         return 0;
20262       }
20263
20264 _ACEOF
20265 rm -f conftest.$ac_objext conftest$ac_exeext
20266 if { (ac_try="$ac_link"
20267 case "(($ac_try" in
20268   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20269   *) ac_try_echo=$ac_try;;
20270 esac
20271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20272   (eval "$ac_link") 2>conftest.er1
20273   ac_status=$?
20274   grep -v '^ *+' conftest.er1 >conftest.err
20275   rm -f conftest.er1
20276   cat conftest.err >&5
20277   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20278   (exit $ac_status); } &&
20279          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20280   { (case "(($ac_try" in
20281   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20282   *) ac_try_echo=$ac_try;;
20283 esac
20284 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20285   (eval "$ac_try") 2>&5
20286   ac_status=$?
20287   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20288   (exit $ac_status); }; } &&
20289          { ac_try='test -s conftest$ac_exeext'
20290   { (case "(($ac_try" in
20291   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20292   *) ac_try_echo=$ac_try;;
20293 esac
20294 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20295   (eval "$ac_try") 2>&5
20296   ac_status=$?
20297   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20298   (exit $ac_status); }; }; then
20299   ac_ext=c
20300 ac_cpp='$CPP $CPPFLAGS'
20301 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20302 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20303 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20304
20305   { echo "$as_me:$LINENO: result: yes" >&5
20306 echo "${ECHO_T}yes" >&6; }
20307
20308 cat >>confdefs.h <<\_ACEOF
20309 #define LLVM_MULTITHREADED 1
20310 _ACEOF
20311
20312 else
20313   echo "$as_me: failed program was:" >&5
20314 sed 's/^/| /' conftest.$ac_ext >&5
20315
20316         { echo "$as_me:$LINENO: result: no" >&5
20317 echo "${ECHO_T}no" >&6; }
20318
20319 cat >>confdefs.h <<\_ACEOF
20320 #define LLVM_MULTITHREADED 0
20321 _ACEOF
20322
20323   { echo "$as_me:$LINENO: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&5
20324 echo "$as_me: WARNING: LLVM will be built thread-unsafe because atomic builtins are missing" >&2;}
20325 fi
20326
20327 rm -f core conftest.err conftest.$ac_objext \
20328       conftest$ac_exeext conftest.$ac_ext
20329
20330
20331 if test "$llvm_cv_os_type" = "Linux" -a "$llvm_cv_target_arch" = "x86_64" ; then
20332   { echo "$as_me:$LINENO: checking for 32-bit userspace on 64-bit system" >&5
20333 echo $ECHO_N "checking for 32-bit userspace on 64-bit system... $ECHO_C" >&6; }
20334 if test "${llvm_cv_linux_mixed+set}" = set; then
20335   echo $ECHO_N "(cached) $ECHO_C" >&6
20336 else
20337    ac_ext=c
20338 ac_cpp='$CPP $CPPFLAGS'
20339 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20340 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20341 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20342
20343   cat >conftest.$ac_ext <<_ACEOF
20344 /* confdefs.h.  */
20345 _ACEOF
20346 cat confdefs.h >>conftest.$ac_ext
20347 cat >>conftest.$ac_ext <<_ACEOF
20348 /* end confdefs.h.  */
20349 #ifndef __x86_64__
20350        error: Not x86-64 even if uname says so!
20351       #endif
20352
20353 int
20354 main ()
20355 {
20356
20357   ;
20358   return 0;
20359 }
20360 _ACEOF
20361 rm -f conftest.$ac_objext
20362 if { (ac_try="$ac_compile"
20363 case "(($ac_try" in
20364   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20365   *) ac_try_echo=$ac_try;;
20366 esac
20367 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20368   (eval "$ac_compile") 2>conftest.er1
20369   ac_status=$?
20370   grep -v '^ *+' conftest.er1 >conftest.err
20371   rm -f conftest.er1
20372   cat conftest.err >&5
20373   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20374   (exit $ac_status); } &&
20375          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20376   { (case "(($ac_try" in
20377   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20378   *) ac_try_echo=$ac_try;;
20379 esac
20380 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20381   (eval "$ac_try") 2>&5
20382   ac_status=$?
20383   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20384   (exit $ac_status); }; } &&
20385          { ac_try='test -s conftest.$ac_objext'
20386   { (case "(($ac_try" in
20387   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20388   *) ac_try_echo=$ac_try;;
20389 esac
20390 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20391   (eval "$ac_try") 2>&5
20392   ac_status=$?
20393   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20394   (exit $ac_status); }; }; then
20395   llvm_cv_linux_mixed=no
20396 else
20397   echo "$as_me: failed program was:" >&5
20398 sed 's/^/| /' conftest.$ac_ext >&5
20399
20400         llvm_cv_linux_mixed=yes
20401 fi
20402
20403 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20404   ac_ext=c
20405 ac_cpp='$CPP $CPPFLAGS'
20406 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20407 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20408 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20409
20410
20411 fi
20412 { echo "$as_me:$LINENO: result: $llvm_cv_linux_mixed" >&5
20413 echo "${ECHO_T}$llvm_cv_linux_mixed" >&6; }
20414
20415   if test "$llvm_cv_linux_mixed" = "yes"; then
20416     llvm_cv_target_arch="x86"
20417     ARCH="x86"
20418   fi
20419 fi
20420
20421
20422 for ac_func in __dso_handle
20423 do
20424 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
20425 { echo "$as_me:$LINENO: checking for $ac_func" >&5
20426 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
20427 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
20428   echo $ECHO_N "(cached) $ECHO_C" >&6
20429 else
20430   cat >conftest.$ac_ext <<_ACEOF
20431 /* confdefs.h.  */
20432 _ACEOF
20433 cat confdefs.h >>conftest.$ac_ext
20434 cat >>conftest.$ac_ext <<_ACEOF
20435 /* end confdefs.h.  */
20436 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
20437    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
20438 #define $ac_func innocuous_$ac_func
20439
20440 /* System header to define __stub macros and hopefully few prototypes,
20441     which can conflict with char $ac_func (); below.
20442     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
20443     <limits.h> exists even on freestanding compilers.  */
20444
20445 #ifdef __STDC__
20446 # include <limits.h>
20447 #else
20448 # include <assert.h>
20449 #endif
20450
20451 #undef $ac_func
20452
20453 /* Override any GCC internal prototype to avoid an error.
20454    Use char because int might match the return type of a GCC
20455    builtin and then its argument prototype would still apply.  */
20456 #ifdef __cplusplus
20457 extern "C"
20458 #endif
20459 char $ac_func ();
20460 /* The GNU C library defines this for functions which it implements
20461     to always fail with ENOSYS.  Some functions are actually named
20462     something starting with __ and the normal name is an alias.  */
20463 #if defined __stub_$ac_func || defined __stub___$ac_func
20464 choke me
20465 #endif
20466
20467 int
20468 main ()
20469 {
20470 return $ac_func ();
20471   ;
20472   return 0;
20473 }
20474 _ACEOF
20475 rm -f conftest.$ac_objext conftest$ac_exeext
20476 if { (ac_try="$ac_link"
20477 case "(($ac_try" in
20478   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20479   *) ac_try_echo=$ac_try;;
20480 esac
20481 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20482   (eval "$ac_link") 2>conftest.er1
20483   ac_status=$?
20484   grep -v '^ *+' conftest.er1 >conftest.err
20485   rm -f conftest.er1
20486   cat conftest.err >&5
20487   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20488   (exit $ac_status); } &&
20489          { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
20490   { (case "(($ac_try" in
20491   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20492   *) ac_try_echo=$ac_try;;
20493 esac
20494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20495   (eval "$ac_try") 2>&5
20496   ac_status=$?
20497   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20498   (exit $ac_status); }; } &&
20499          { ac_try='test -s conftest$ac_exeext'
20500   { (case "(($ac_try" in
20501   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20502   *) ac_try_echo=$ac_try;;
20503 esac
20504 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20505   (eval "$ac_try") 2>&5
20506   ac_status=$?
20507   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20508   (exit $ac_status); }; }; then
20509   eval "$as_ac_var=yes"
20510 else
20511   echo "$as_me: failed program was:" >&5
20512 sed 's/^/| /' conftest.$ac_ext >&5
20513
20514         eval "$as_ac_var=no"
20515 fi
20516
20517 rm -f core conftest.err conftest.$ac_objext \
20518       conftest$ac_exeext conftest.$ac_ext
20519 fi
20520 ac_res=`eval echo '${'$as_ac_var'}'`
20521                { echo "$as_me:$LINENO: result: $ac_res" >&5
20522 echo "${ECHO_T}$ac_res" >&6; }
20523 if test `eval echo '${'$as_ac_var'}'` = yes; then
20524   cat >>confdefs.h <<_ACEOF
20525 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
20526 _ACEOF
20527
20528 fi
20529 done
20530
20531
20532 { echo "$as_me:$LINENO: checking whether llvm-gcc is sane" >&5
20533 echo $ECHO_N "checking whether llvm-gcc is sane... $ECHO_C" >&6; }
20534 if test "${llvm_cv_llvmgcc_sanity+set}" = set; then
20535   echo $ECHO_N "(cached) $ECHO_C" >&6
20536 else
20537   llvm_cv_llvmgcc_sanity="no"
20538 if test -x "$LLVMGCC" ; then
20539   cp /dev/null conftest.c
20540   "$LLVMGCC" -emit-llvm -S -o - conftest.c | \
20541       grep 'target datalayout =' > /dev/null 2>&1
20542   if test $? -eq 0 ; then
20543     llvm_cv_llvmgcc_sanity="yes"
20544   fi
20545   rm conftest.c
20546 fi
20547 fi
20548 { echo "$as_me:$LINENO: result: $llvm_cv_llvmgcc_sanity" >&5
20549 echo "${ECHO_T}$llvm_cv_llvmgcc_sanity" >&6; }
20550
20551 if test "$llvm_cv_llvmgcc_sanity" = "yes" ; then
20552   { echo "$as_me:$LINENO: checking llvm-gcc component support" >&5
20553 echo $ECHO_N "checking llvm-gcc component support... $ECHO_C" >&6; }
20554   llvmcc1path=`"$LLVMGCC" --print-prog-name=cc1`
20555   LLVMCC1=$llvmcc1path
20556
20557   llvmcc1pluspath=`"$LLVMGCC" --print-prog-name=cc1plus`
20558   LLVMCC1PLUS=$llvmcc1pluspath
20559
20560   llvmgccdir=`echo "$llvmcc1path" | sed 's,/libexec/.*,,'`
20561   LLVMGCCDIR=$llvmgccdir
20562
20563   llvmgcclangs=`"$LLVMGCC" -v --help 2>&1 | grep '^Configured with:' | sed 's/^.*--enable-languages=\([^ ]*\).*/\1/'`
20564   LLVMGCC_LANGS=$llvmgcclangs
20565
20566   { echo "$as_me:$LINENO: result: ok" >&5
20567 echo "${ECHO_T}ok" >&6; }
20568 fi
20569
20570 SHLIBEXT=$libltdl_cv_shlibext
20571
20572
20573 SHLIBPATH_VAR=$libltdl_cv_shlibpath_var
20574
20575
20576 # Translate the various configuration directories and other basic
20577 # information into substitutions that will end up in Makefile.config.in
20578 # that these configured values can be used by the makefiles
20579 if test "${prefix}" = "NONE" ; then
20580   prefix="/usr/local"
20581 fi
20582 eval LLVM_PREFIX="${prefix}";
20583 eval LLVM_BINDIR="${prefix}/bin";
20584 eval LLVM_LIBDIR="${prefix}/lib";
20585 eval LLVM_DATADIR="${prefix}/share/llvm";
20586 eval LLVM_DOCSDIR="${prefix}/share/doc/llvm";
20587 eval LLVM_ETCDIR="${prefix}/etc/llvm";
20588 eval LLVM_INCLUDEDIR="${prefix}/include";
20589 eval LLVM_INFODIR="${prefix}/info";
20590 eval LLVM_MANDIR="${prefix}/man";
20591 LLVM_CONFIGTIME=`date`
20592
20593
20594
20595
20596
20597
20598
20599
20600
20601
20602
20603 # Place the various directores into the config.h file as #defines so that we
20604 # can know about the installation paths within LLVM.
20605
20606 cat >>confdefs.h <<_ACEOF
20607 #define LLVM_PREFIX "$LLVM_PREFIX"
20608 _ACEOF
20609
20610
20611 cat >>confdefs.h <<_ACEOF
20612 #define LLVM_BINDIR "$LLVM_BINDIR"
20613 _ACEOF
20614
20615
20616 cat >>confdefs.h <<_ACEOF
20617 #define LLVM_LIBDIR "$LLVM_LIBDIR"
20618 _ACEOF
20619
20620
20621 cat >>confdefs.h <<_ACEOF
20622 #define LLVM_DATADIR "$LLVM_DATADIR"
20623 _ACEOF
20624
20625
20626 cat >>confdefs.h <<_ACEOF
20627 #define LLVM_DOCSDIR "$LLVM_DOCSDIR"
20628 _ACEOF
20629
20630
20631 cat >>confdefs.h <<_ACEOF
20632 #define LLVM_ETCDIR "$LLVM_ETCDIR"
20633 _ACEOF
20634
20635
20636 cat >>confdefs.h <<_ACEOF
20637 #define LLVM_INCLUDEDIR "$LLVM_INCLUDEDIR"
20638 _ACEOF
20639
20640
20641 cat >>confdefs.h <<_ACEOF
20642 #define LLVM_INFODIR "$LLVM_INFODIR"
20643 _ACEOF
20644
20645
20646 cat >>confdefs.h <<_ACEOF
20647 #define LLVM_MANDIR "$LLVM_MANDIR"
20648 _ACEOF
20649
20650
20651 cat >>confdefs.h <<_ACEOF
20652 #define LLVM_CONFIGTIME "$LLVM_CONFIGTIME"
20653 _ACEOF
20654
20655
20656 cat >>confdefs.h <<_ACEOF
20657 #define LLVM_HOSTTRIPLE "$host"
20658 _ACEOF
20659
20660
20661 # Determine which bindings to build.
20662 if test "$BINDINGS_TO_BUILD" = auto ; then
20663   BINDINGS_TO_BUILD=""
20664   if test "x$OCAMLC" != x -a "x$OCAMLDEP" != x ; then
20665     BINDINGS_TO_BUILD="ocaml $BINDINGS_TO_BUILD"
20666   fi
20667 fi
20668 BINDINGS_TO_BUILD=$BINDINGS_TO_BUILD
20669
20670
20671 # This isn't really configurey, but it avoids having to repeat the list in
20672 # other files.
20673 ALL_BINDINGS=ocaml
20674
20675
20676 # Do any work necessary to ensure that bindings have what they need.
20677 binding_prereqs_failed=0
20678 for a_binding in $BINDINGS_TO_BUILD ; do
20679   case "$a_binding" in
20680   ocaml)
20681     if test "x$OCAMLC" = x ; then
20682       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&5
20683 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlc not found. Try configure OCAMLC=/path/to/ocamlc" >&2;}
20684       binding_prereqs_failed=1
20685     fi
20686     if test "x$OCAMLDEP" = x ; then
20687       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&5
20688 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamldep not found. Try configure OCAMLDEP=/path/to/ocamldep" >&2;}
20689       binding_prereqs_failed=1
20690     fi
20691     if test "x$OCAMLOPT" = x ; then
20692       { echo "$as_me:$LINENO: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&5
20693 echo "$as_me: WARNING: --enable-bindings=ocaml specified, but ocamlopt not found. Try configure OCAMLOPT=/path/to/ocamlopt" >&2;}
20694           fi
20695     if test "x$with_ocaml_libdir" != xauto ; then
20696       OCAML_LIBDIR=$with_ocaml_libdir
20697
20698     else
20699       ocaml_stdlib="`"$OCAMLC" -where`"
20700       if test "$LLVM_PREFIX" '<' "$ocaml_stdlib" -a "$ocaml_stdlib" '<' "$LLVM_PREFIX~"
20701       then
20702         # ocaml stdlib is beneath our prefix; use stdlib
20703         OCAML_LIBDIR=$ocaml_stdlib
20704
20705       else
20706         # ocaml stdlib is outside our prefix; use libdir/ocaml
20707         OCAML_LIBDIR=$LLVM_LIBDIR/ocaml
20708
20709       fi
20710     fi
20711     ;;
20712   esac
20713 done
20714 if test "$binding_prereqs_failed" = 1 ; then
20715   { { echo "$as_me:$LINENO: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&5
20716 echo "$as_me: error: Prequisites for bindings not satisfied. Fix them or use configure --disable-bindings." >&2;}
20717    { (exit 1); exit 1; }; }
20718 fi
20719
20720 { echo "$as_me:$LINENO: checking for compiler -fvisibility-inlines-hidden option" >&5
20721 echo $ECHO_N "checking for compiler -fvisibility-inlines-hidden option... $ECHO_C" >&6; }
20722 if test "${llvm_cv_cxx_visibility_inlines_hidden+set}" = set; then
20723   echo $ECHO_N "(cached) $ECHO_C" >&6
20724 else
20725    ac_ext=cpp
20726 ac_cpp='$CXXCPP $CPPFLAGS'
20727 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20728 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20729 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
20730
20731   oldcxxflags="$CXXFLAGS"
20732   CXXFLAGS="$CXXFLAGS -fvisibility-inlines-hidden"
20733   cat >conftest.$ac_ext <<_ACEOF
20734 /* confdefs.h.  */
20735 _ACEOF
20736 cat confdefs.h >>conftest.$ac_ext
20737 cat >>conftest.$ac_ext <<_ACEOF
20738 /* end confdefs.h.  */
20739
20740 int
20741 main ()
20742 {
20743
20744   ;
20745   return 0;
20746 }
20747 _ACEOF
20748 rm -f conftest.$ac_objext
20749 if { (ac_try="$ac_compile"
20750 case "(($ac_try" in
20751   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20752   *) ac_try_echo=$ac_try;;
20753 esac
20754 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20755   (eval "$ac_compile") 2>conftest.er1
20756   ac_status=$?
20757   grep -v '^ *+' conftest.er1 >conftest.err
20758   rm -f conftest.er1
20759   cat conftest.err >&5
20760   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20761   (exit $ac_status); } &&
20762          { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
20763   { (case "(($ac_try" in
20764   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20765   *) ac_try_echo=$ac_try;;
20766 esac
20767 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20768   (eval "$ac_try") 2>&5
20769   ac_status=$?
20770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20771   (exit $ac_status); }; } &&
20772          { ac_try='test -s conftest.$ac_objext'
20773   { (case "(($ac_try" in
20774   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
20775   *) ac_try_echo=$ac_try;;
20776 esac
20777 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
20778   (eval "$ac_try") 2>&5
20779   ac_status=$?
20780   echo "$as_me:$LINENO: \$? = $ac_status" >&5
20781   (exit $ac_status); }; }; then
20782   llvm_cv_cxx_visibility_inlines_hidden=yes
20783 else
20784   echo "$as_me: failed program was:" >&5
20785 sed 's/^/| /' conftest.$ac_ext >&5
20786
20787         llvm_cv_cxx_visibility_inlines_hidden=no
20788 fi
20789
20790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
20791   CXXFLAGS="$oldcxxflags"
20792   ac_ext=c
20793 ac_cpp='$CPP $CPPFLAGS'
20794 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
20795 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
20796 ac_compiler_gnu=$ac_cv_c_compiler_gnu
20797
20798
20799 fi
20800 { echo "$as_me:$LINENO: result: $llvm_cv_cxx_visibility_inlines_hidden" >&5
20801 echo "${ECHO_T}$llvm_cv_cxx_visibility_inlines_hidden" >&6; }
20802 if test "$llvm_cv_cxx_visibility_inlines_hidden" = yes ; then
20803   ENABLE_VISIBILITY_INLINES_HIDDEN=1
20804
20805 else
20806   ENABLE_VISIBILITY_INLINES_HIDDEN=0
20807
20808 fi
20809
20810
20811 if test "$llvm_cv_link_use_r" = "yes" ; then
20812   RPATH="-Wl,-R"
20813 else
20814   RPATH="-Wl,-rpath"
20815 fi
20816
20817
20818 if test "$llvm_cv_link_use_export_dynamic" = "yes" ; then
20819   RDYNAMIC="-Wl,-export-dynamic"
20820 else
20821   RDYNAMIC=""
20822 fi
20823
20824
20825
20826 ac_config_headers="$ac_config_headers include/llvm/Config/config.h include/llvm/Config/llvm-config.h"
20827
20828
20829
20830
20831
20832
20833 ac_config_files="$ac_config_files include/llvm/Config/Targets.def"
20834
20835 ac_config_files="$ac_config_files include/llvm/Config/AsmPrinters.def"
20836
20837 ac_config_files="$ac_config_files include/llvm/Config/AsmParsers.def"
20838
20839 ac_config_files="$ac_config_files include/llvm/Config/Disassemblers.def"
20840
20841 ac_config_headers="$ac_config_headers include/llvm/System/DataTypes.h"
20842
20843
20844 ac_config_files="$ac_config_files Makefile.config"
20845
20846
20847 ac_config_files="$ac_config_files llvm.spec"
20848
20849
20850 ac_config_files="$ac_config_files tools/llvmc/src/Base.td"
20851
20852
20853 ac_config_files="$ac_config_files tools/llvm-config/llvm-config.in"
20854
20855
20856 ac_config_commands="$ac_config_commands setup"
20857
20858 ac_config_commands="$ac_config_commands Makefile"
20859
20860
20861 ac_config_commands="$ac_config_commands Makefile.common"
20862
20863
20864 ac_config_commands="$ac_config_commands examples/Makefile"
20865
20866
20867 ac_config_commands="$ac_config_commands lib/Makefile"
20868
20869
20870 ac_config_commands="$ac_config_commands runtime/Makefile"
20871
20872
20873 ac_config_commands="$ac_config_commands test/Makefile"
20874
20875
20876 ac_config_commands="$ac_config_commands test/Makefile.tests"
20877
20878
20879 ac_config_commands="$ac_config_commands unittests/Makefile"
20880
20881
20882 ac_config_commands="$ac_config_commands tools/Makefile"
20883
20884
20885 ac_config_commands="$ac_config_commands utils/Makefile"
20886
20887
20888 ac_config_commands="$ac_config_commands projects/Makefile"
20889
20890
20891 ac_config_commands="$ac_config_commands bindings/Makefile"
20892
20893
20894 ac_config_commands="$ac_config_commands bindings/ocaml/Makefile.ocaml"
20895
20896
20897
20898 cat >confcache <<\_ACEOF
20899 # This file is a shell script that caches the results of configure
20900 # tests run on this system so they can be shared between configure
20901 # scripts and configure runs, see configure's option --config-cache.
20902 # It is not useful on other systems.  If it contains results you don't
20903 # want to keep, you may remove or edit it.
20904 #
20905 # config.status only pays attention to the cache file if you give it
20906 # the --recheck option to rerun configure.
20907 #
20908 # `ac_cv_env_foo' variables (set or unset) will be overridden when
20909 # loading this file, other *unset* `ac_cv_foo' will be assigned the
20910 # following values.
20911
20912 _ACEOF
20913
20914 # The following way of writing the cache mishandles newlines in values,
20915 # but we know of no workaround that is simple, portable, and efficient.
20916 # So, we kill variables containing newlines.
20917 # Ultrix sh set writes to stderr and can't be redirected directly,
20918 # and sets the high bit in the cache file unless we assign to the vars.
20919 (
20920   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
20921     eval ac_val=\$$ac_var
20922     case $ac_val in #(
20923     *${as_nl}*)
20924       case $ac_var in #(
20925       *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
20926 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
20927       esac
20928       case $ac_var in #(
20929       _ | IFS | as_nl) ;; #(
20930       *) $as_unset $ac_var ;;
20931       esac ;;
20932     esac
20933   done
20934
20935   (set) 2>&1 |
20936     case $as_nl`(ac_space=' '; set) 2>&1` in #(
20937     *${as_nl}ac_space=\ *)
20938       # `set' does not quote correctly, so add quotes (double-quote
20939       # substitution turns \\\\ into \\, and sed turns \\ into \).
20940       sed -n \
20941         "s/'/'\\\\''/g;
20942           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
20943       ;; #(
20944     *)
20945       # `set' quotes correctly as required by POSIX, so do not add quotes.
20946       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
20947       ;;
20948     esac |
20949     sort
20950 ) |
20951   sed '
20952      /^ac_cv_env_/b end
20953      t clear
20954      :clear
20955      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
20956      t end
20957      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
20958      :end' >>confcache
20959 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
20960   if test -w "$cache_file"; then
20961     test "x$cache_file" != "x/dev/null" &&
20962       { echo "$as_me:$LINENO: updating cache $cache_file" >&5
20963 echo "$as_me: updating cache $cache_file" >&6;}
20964     cat confcache >$cache_file
20965   else
20966     { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
20967 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
20968   fi
20969 fi
20970 rm -f confcache
20971
20972 test "x$prefix" = xNONE && prefix=$ac_default_prefix
20973 # Let make expand exec_prefix.
20974 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
20975
20976 DEFS=-DHAVE_CONFIG_H
20977
20978 ac_libobjs=
20979 ac_ltlibobjs=
20980 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
20981   # 1. Remove the extension, and $U if already installed.
20982   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
20983   ac_i=`echo "$ac_i" | sed "$ac_script"`
20984   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
20985   #    will be set to the directory where LIBOBJS objects are built.
20986   ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
20987   ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
20988 done
20989 LIBOBJS=$ac_libobjs
20990
20991 LTLIBOBJS=$ac_ltlibobjs
20992
20993
20994 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
20995   { { echo "$as_me:$LINENO: error: conditional \"INSTALL_LTDL\" was never defined.
20996 Usually this means the macro was only invoked conditionally." >&5
20997 echo "$as_me: error: conditional \"INSTALL_LTDL\" was never defined.
20998 Usually this means the macro was only invoked conditionally." >&2;}
20999    { (exit 1); exit 1; }; }
21000 fi
21001 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
21002   { { echo "$as_me:$LINENO: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21003 Usually this means the macro was only invoked conditionally." >&5
21004 echo "$as_me: error: conditional \"CONVENIENCE_LTDL\" was never defined.
21005 Usually this means the macro was only invoked conditionally." >&2;}
21006    { (exit 1); exit 1; }; }
21007 fi
21008
21009 : ${CONFIG_STATUS=./config.status}
21010 ac_clean_files_save=$ac_clean_files
21011 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
21012 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
21013 echo "$as_me: creating $CONFIG_STATUS" >&6;}
21014 cat >$CONFIG_STATUS <<_ACEOF
21015 #! $SHELL
21016 # Generated by $as_me.
21017 # Run this file to recreate the current configuration.
21018 # Compiler output produced by configure, useful for debugging
21019 # configure, is in config.log if it exists.
21020
21021 debug=false
21022 ac_cs_recheck=false
21023 ac_cs_silent=false
21024 SHELL=\${CONFIG_SHELL-$SHELL}
21025 _ACEOF
21026
21027 cat >>$CONFIG_STATUS <<\_ACEOF
21028 ## --------------------- ##
21029 ## M4sh Initialization.  ##
21030 ## --------------------- ##
21031
21032 # Be Bourne compatible
21033 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
21034   emulate sh
21035   NULLCMD=:
21036   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
21037   # is contrary to our usage.  Disable this feature.
21038   alias -g '${1+"$@"}'='"$@"'
21039   setopt NO_GLOB_SUBST
21040 else
21041   case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
21042 fi
21043 BIN_SH=xpg4; export BIN_SH # for Tru64
21044 DUALCASE=1; export DUALCASE # for MKS sh
21045
21046
21047 # PATH needs CR
21048 # Avoid depending upon Character Ranges.
21049 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
21050 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
21051 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
21052 as_cr_digits='0123456789'
21053 as_cr_alnum=$as_cr_Letters$as_cr_digits
21054
21055 # The user is always right.
21056 if test "${PATH_SEPARATOR+set}" != set; then
21057   echo "#! /bin/sh" >conf$$.sh
21058   echo  "exit 0"   >>conf$$.sh
21059   chmod +x conf$$.sh
21060   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
21061     PATH_SEPARATOR=';'
21062   else
21063     PATH_SEPARATOR=:
21064   fi
21065   rm -f conf$$.sh
21066 fi
21067
21068 # Support unset when possible.
21069 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
21070   as_unset=unset
21071 else
21072   as_unset=false
21073 fi
21074
21075
21076 # IFS
21077 # We need space, tab and new line, in precisely that order.  Quoting is
21078 # there to prevent editors from complaining about space-tab.
21079 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
21080 # splitting by setting IFS to empty value.)
21081 as_nl='
21082 '
21083 IFS=" ""        $as_nl"
21084
21085 # Find who we are.  Look in the path if we contain no directory separator.
21086 case $0 in
21087   *[\\/]* ) as_myself=$0 ;;
21088   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21089 for as_dir in $PATH
21090 do
21091   IFS=$as_save_IFS
21092   test -z "$as_dir" && as_dir=.
21093   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
21094 done
21095 IFS=$as_save_IFS
21096
21097      ;;
21098 esac
21099 # We did not find ourselves, most probably we were run as `sh COMMAND'
21100 # in which case we are not to be found in the path.
21101 if test "x$as_myself" = x; then
21102   as_myself=$0
21103 fi
21104 if test ! -f "$as_myself"; then
21105   echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
21106   { (exit 1); exit 1; }
21107 fi
21108
21109 # Work around bugs in pre-3.0 UWIN ksh.
21110 for as_var in ENV MAIL MAILPATH
21111 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21112 done
21113 PS1='$ '
21114 PS2='> '
21115 PS4='+ '
21116
21117 # NLS nuisances.
21118 for as_var in \
21119   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
21120   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
21121   LC_TELEPHONE LC_TIME
21122 do
21123   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
21124     eval $as_var=C; export $as_var
21125   else
21126     ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
21127   fi
21128 done
21129
21130 # Required to use basename.
21131 if expr a : '\(a\)' >/dev/null 2>&1 &&
21132    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21133   as_expr=expr
21134 else
21135   as_expr=false
21136 fi
21137
21138 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
21139   as_basename=basename
21140 else
21141   as_basename=false
21142 fi
21143
21144
21145 # Name of the executable.
21146 as_me=`$as_basename -- "$0" ||
21147 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
21148          X"$0" : 'X\(//\)$' \| \
21149          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
21150 echo X/"$0" |
21151     sed '/^.*\/\([^/][^/]*\)\/*$/{
21152             s//\1/
21153             q
21154           }
21155           /^X\/\(\/\/\)$/{
21156             s//\1/
21157             q
21158           }
21159           /^X\/\(\/\).*/{
21160             s//\1/
21161             q
21162           }
21163           s/.*/./; q'`
21164
21165 # CDPATH.
21166 $as_unset CDPATH
21167
21168
21169
21170   as_lineno_1=$LINENO
21171   as_lineno_2=$LINENO
21172   test "x$as_lineno_1" != "x$as_lineno_2" &&
21173   test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
21174
21175   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
21176   # uniformly replaced by the line number.  The first 'sed' inserts a
21177   # line-number line after each line using $LINENO; the second 'sed'
21178   # does the real work.  The second script uses 'N' to pair each
21179   # line-number line with the line containing $LINENO, and appends
21180   # trailing '-' during substitution so that $LINENO is not a special
21181   # case at line end.
21182   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
21183   # scripts with optimization help from Paolo Bonzini.  Blame Lee
21184   # E. McMahon (1931-1989) for sed's syntax.  :-)
21185   sed -n '
21186     p
21187     /[$]LINENO/=
21188   ' <$as_myself |
21189     sed '
21190       s/[$]LINENO.*/&-/
21191       t lineno
21192       b
21193       :lineno
21194       N
21195       :loop
21196       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
21197       t loop
21198       s/-\n.*//
21199     ' >$as_me.lineno &&
21200   chmod +x "$as_me.lineno" ||
21201     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
21202    { (exit 1); exit 1; }; }
21203
21204   # Don't try to exec as it changes $[0], causing all sort of problems
21205   # (the dirname of $[0] is not the place where we might find the
21206   # original and so on.  Autoconf is especially sensitive to this).
21207   . "./$as_me.lineno"
21208   # Exit status is that of the last command.
21209   exit
21210 }
21211
21212
21213 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
21214   as_dirname=dirname
21215 else
21216   as_dirname=false
21217 fi
21218
21219 ECHO_C= ECHO_N= ECHO_T=
21220 case `echo -n x` in
21221 -n*)
21222   case `echo 'x\c'` in
21223   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
21224   *)   ECHO_C='\c';;
21225   esac;;
21226 *)
21227   ECHO_N='-n';;
21228 esac
21229
21230 if expr a : '\(a\)' >/dev/null 2>&1 &&
21231    test "X`expr 00001 : '.*\(...\)'`" = X001; then
21232   as_expr=expr
21233 else
21234   as_expr=false
21235 fi
21236
21237 rm -f conf$$ conf$$.exe conf$$.file
21238 if test -d conf$$.dir; then
21239   rm -f conf$$.dir/conf$$.file
21240 else
21241   rm -f conf$$.dir
21242   mkdir conf$$.dir
21243 fi
21244 echo >conf$$.file
21245 if ln -s conf$$.file conf$$ 2>/dev/null; then
21246   as_ln_s='ln -s'
21247   # ... but there are two gotchas:
21248   # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
21249   # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
21250   # In both cases, we have to default to `cp -p'.
21251   ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
21252     as_ln_s='cp -p'
21253 elif ln conf$$.file conf$$ 2>/dev/null; then
21254   as_ln_s=ln
21255 else
21256   as_ln_s='cp -p'
21257 fi
21258 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
21259 rmdir conf$$.dir 2>/dev/null
21260
21261 if mkdir -p . 2>/dev/null; then
21262   as_mkdir_p=:
21263 else
21264   test -d ./-p && rmdir ./-p
21265   as_mkdir_p=false
21266 fi
21267
21268 # Find out whether ``test -x'' works.  Don't use a zero-byte file, as
21269 # systems may use methods other than mode bits to determine executability.
21270 cat >conf$$.file <<_ASEOF
21271 #! /bin/sh
21272 exit 0
21273 _ASEOF
21274 chmod +x conf$$.file
21275 if test -x conf$$.file >/dev/null 2>&1; then
21276   as_executable_p="test -x"
21277 else
21278   as_executable_p=:
21279 fi
21280 rm -f conf$$.file
21281
21282 # Sed expression to map a string onto a valid CPP name.
21283 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
21284
21285 # Sed expression to map a string onto a valid variable name.
21286 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
21287
21288
21289 exec 6>&1
21290
21291 # Save the log message, to keep $[0] and so on meaningful, and to
21292 # report actual input values of CONFIG_FILES etc. instead of their
21293 # values after options handling.
21294 ac_log="
21295 This file was extended by llvm $as_me 2.9svn, which was
21296 generated by GNU Autoconf 2.60.  Invocation command line was
21297
21298   CONFIG_FILES    = $CONFIG_FILES
21299   CONFIG_HEADERS  = $CONFIG_HEADERS
21300   CONFIG_LINKS    = $CONFIG_LINKS
21301   CONFIG_COMMANDS = $CONFIG_COMMANDS
21302   $ $0 $@
21303
21304 on `(hostname || uname -n) 2>/dev/null | sed 1q`
21305 "
21306
21307 _ACEOF
21308
21309 cat >>$CONFIG_STATUS <<_ACEOF
21310 # Files that config.status was made for.
21311 config_files="$ac_config_files"
21312 config_headers="$ac_config_headers"
21313 config_commands="$ac_config_commands"
21314
21315 _ACEOF
21316
21317 cat >>$CONFIG_STATUS <<\_ACEOF
21318 ac_cs_usage="\
21319 \`$as_me' instantiates files from templates according to the
21320 current configuration.
21321
21322 Usage: $0 [OPTIONS] [FILE]...
21323
21324   -h, --help       print this help, then exit
21325   -V, --version    print version number, then exit
21326   -q, --quiet      do not print progress messages
21327   -d, --debug      don't remove temporary files
21328       --recheck    update $as_me by reconfiguring in the same conditions
21329   --file=FILE[:TEMPLATE]
21330                    instantiate the configuration file FILE
21331   --header=FILE[:TEMPLATE]
21332                    instantiate the configuration header FILE
21333
21334 Configuration files:
21335 $config_files
21336
21337 Configuration headers:
21338 $config_headers
21339
21340 Configuration commands:
21341 $config_commands
21342
21343 Report bugs to <bug-autoconf@gnu.org>."
21344
21345 _ACEOF
21346 cat >>$CONFIG_STATUS <<_ACEOF
21347 ac_cs_version="\\
21348 llvm config.status 2.9svn
21349 configured by $0, generated by GNU Autoconf 2.60,
21350   with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
21351
21352 Copyright (C) 2006 Free Software Foundation, Inc.
21353 This config.status script is free software; the Free Software Foundation
21354 gives unlimited permission to copy, distribute and modify it."
21355
21356 ac_pwd='$ac_pwd'
21357 srcdir='$srcdir'
21358 INSTALL='$INSTALL'
21359 _ACEOF
21360
21361 cat >>$CONFIG_STATUS <<\_ACEOF
21362 # If no file are specified by the user, then we need to provide default
21363 # value.  By we need to know if files were specified by the user.
21364 ac_need_defaults=:
21365 while test $# != 0
21366 do
21367   case $1 in
21368   --*=*)
21369     ac_option=`expr "X$1" : 'X\([^=]*\)='`
21370     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
21371     ac_shift=:
21372     ;;
21373   *)
21374     ac_option=$1
21375     ac_optarg=$2
21376     ac_shift=shift
21377     ;;
21378   esac
21379
21380   case $ac_option in
21381   # Handling of the options.
21382   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
21383     ac_cs_recheck=: ;;
21384   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
21385     echo "$ac_cs_version"; exit ;;
21386   --debug | --debu | --deb | --de | --d | -d )
21387     debug=: ;;
21388   --file | --fil | --fi | --f )
21389     $ac_shift
21390     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
21391     ac_need_defaults=false;;
21392   --header | --heade | --head | --hea )
21393     $ac_shift
21394     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
21395     ac_need_defaults=false;;
21396   --he | --h)
21397     # Conflict between --help and --header
21398     { echo "$as_me: error: ambiguous option: $1
21399 Try \`$0 --help' for more information." >&2
21400    { (exit 1); exit 1; }; };;
21401   --help | --hel | -h )
21402     echo "$ac_cs_usage"; exit ;;
21403   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
21404   | -silent | --silent | --silen | --sile | --sil | --si | --s)
21405     ac_cs_silent=: ;;
21406
21407   # This is an error.
21408   -*) { echo "$as_me: error: unrecognized option: $1
21409 Try \`$0 --help' for more information." >&2
21410    { (exit 1); exit 1; }; } ;;
21411
21412   *) ac_config_targets="$ac_config_targets $1"
21413      ac_need_defaults=false ;;
21414
21415   esac
21416   shift
21417 done
21418
21419 ac_configure_extra_args=
21420
21421 if $ac_cs_silent; then
21422   exec 6>/dev/null
21423   ac_configure_extra_args="$ac_configure_extra_args --silent"
21424 fi
21425
21426 _ACEOF
21427 cat >>$CONFIG_STATUS <<_ACEOF
21428 if \$ac_cs_recheck; then
21429   echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
21430   CONFIG_SHELL=$SHELL
21431   export CONFIG_SHELL
21432   exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
21433 fi
21434
21435 _ACEOF
21436 cat >>$CONFIG_STATUS <<\_ACEOF
21437 exec 5>>config.log
21438 {
21439   echo
21440   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
21441 ## Running $as_me. ##
21442 _ASBOX
21443   echo "$ac_log"
21444 } >&5
21445
21446 _ACEOF
21447 cat >>$CONFIG_STATUS <<_ACEOF
21448 #
21449 # INIT-COMMANDS
21450 #
21451 llvm_src="${srcdir}"
21452
21453 _ACEOF
21454
21455 cat >>$CONFIG_STATUS <<\_ACEOF
21456
21457 # Handling of arguments.
21458 for ac_config_target in $ac_config_targets
21459 do
21460   case $ac_config_target in
21461     "include/llvm/Config/config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/config.h" ;;
21462     "include/llvm/Config/llvm-config.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/Config/llvm-config.h" ;;
21463     "include/llvm/Config/Targets.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Targets.def" ;;
21464     "include/llvm/Config/AsmPrinters.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmPrinters.def" ;;
21465     "include/llvm/Config/AsmParsers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/AsmParsers.def" ;;
21466     "include/llvm/Config/Disassemblers.def") CONFIG_FILES="$CONFIG_FILES include/llvm/Config/Disassemblers.def" ;;
21467     "include/llvm/System/DataTypes.h") CONFIG_HEADERS="$CONFIG_HEADERS include/llvm/System/DataTypes.h" ;;
21468     "Makefile.config") CONFIG_FILES="$CONFIG_FILES Makefile.config" ;;
21469     "llvm.spec") CONFIG_FILES="$CONFIG_FILES llvm.spec" ;;
21470     "tools/llvmc/src/Base.td") CONFIG_FILES="$CONFIG_FILES tools/llvmc/src/Base.td" ;;
21471     "tools/llvm-config/llvm-config.in") CONFIG_FILES="$CONFIG_FILES tools/llvm-config/llvm-config.in" ;;
21472     "setup") CONFIG_COMMANDS="$CONFIG_COMMANDS setup" ;;
21473     "Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile" ;;
21474     "Makefile.common") CONFIG_COMMANDS="$CONFIG_COMMANDS Makefile.common" ;;
21475     "examples/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS examples/Makefile" ;;
21476     "lib/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS lib/Makefile" ;;
21477     "runtime/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS runtime/Makefile" ;;
21478     "test/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile" ;;
21479     "test/Makefile.tests") CONFIG_COMMANDS="$CONFIG_COMMANDS test/Makefile.tests" ;;
21480     "unittests/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS unittests/Makefile" ;;
21481     "tools/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS tools/Makefile" ;;
21482     "utils/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS utils/Makefile" ;;
21483     "projects/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS projects/Makefile" ;;
21484     "bindings/Makefile") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/Makefile" ;;
21485     "bindings/ocaml/Makefile.ocaml") CONFIG_COMMANDS="$CONFIG_COMMANDS bindings/ocaml/Makefile.ocaml" ;;
21486
21487   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
21488 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
21489    { (exit 1); exit 1; }; };;
21490   esac
21491 done
21492
21493
21494 # If the user did not use the arguments to specify the items to instantiate,
21495 # then the envvar interface is used.  Set only those that are not.
21496 # We use the long form for the default assignment because of an extremely
21497 # bizarre bug on SunOS 4.1.3.
21498 if $ac_need_defaults; then
21499   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
21500   test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
21501   test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
21502 fi
21503
21504 # Have a temporary directory for convenience.  Make it in the build tree
21505 # simply because there is no reason against having it here, and in addition,
21506 # creating and moving files from /tmp can sometimes cause problems.
21507 # Hook for its removal unless debugging.
21508 # Note that there is a small window in which the directory will not be cleaned:
21509 # after its creation but before its name has been assigned to `$tmp'.
21510 $debug ||
21511 {
21512   tmp=
21513   trap 'exit_status=$?
21514   { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
21515 ' 0
21516   trap '{ (exit 1); exit 1; }' 1 2 13 15
21517 }
21518 # Create a (secure) tmp directory for tmp files.
21519
21520 {
21521   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
21522   test -n "$tmp" && test -d "$tmp"
21523 }  ||
21524 {
21525   tmp=./conf$$-$RANDOM
21526   (umask 077 && mkdir "$tmp")
21527 } ||
21528 {
21529    echo "$me: cannot create a temporary directory in ." >&2
21530    { (exit 1); exit 1; }
21531 }
21532
21533 #
21534 # Set up the sed scripts for CONFIG_FILES section.
21535 #
21536
21537 # No need to generate the scripts if there are no CONFIG_FILES.
21538 # This happens for instance when ./config.status config.h
21539 if test -n "$CONFIG_FILES"; then
21540
21541 _ACEOF
21542
21543
21544
21545 ac_delim='%!_!# '
21546 for ac_last_try in false false false false false :; do
21547   cat >conf$$subs.sed <<_ACEOF
21548 SHELL!$SHELL$ac_delim
21549 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
21550 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
21551 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
21552 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
21553 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
21554 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
21555 exec_prefix!$exec_prefix$ac_delim
21556 prefix!$prefix$ac_delim
21557 program_transform_name!$program_transform_name$ac_delim
21558 bindir!$bindir$ac_delim
21559 sbindir!$sbindir$ac_delim
21560 libexecdir!$libexecdir$ac_delim
21561 datarootdir!$datarootdir$ac_delim
21562 datadir!$datadir$ac_delim
21563 sysconfdir!$sysconfdir$ac_delim
21564 sharedstatedir!$sharedstatedir$ac_delim
21565 localstatedir!$localstatedir$ac_delim
21566 includedir!$includedir$ac_delim
21567 oldincludedir!$oldincludedir$ac_delim
21568 docdir!$docdir$ac_delim
21569 infodir!$infodir$ac_delim
21570 htmldir!$htmldir$ac_delim
21571 dvidir!$dvidir$ac_delim
21572 pdfdir!$pdfdir$ac_delim
21573 psdir!$psdir$ac_delim
21574 libdir!$libdir$ac_delim
21575 localedir!$localedir$ac_delim
21576 mandir!$mandir$ac_delim
21577 DEFS!$DEFS$ac_delim
21578 ECHO_C!$ECHO_C$ac_delim
21579 ECHO_N!$ECHO_N$ac_delim
21580 ECHO_T!$ECHO_T$ac_delim
21581 LIBS!$LIBS$ac_delim
21582 build_alias!$build_alias$ac_delim
21583 host_alias!$host_alias$ac_delim
21584 target_alias!$target_alias$ac_delim
21585 LLVM_COPYRIGHT!$LLVM_COPYRIGHT$ac_delim
21586 subdirs!$subdirs$ac_delim
21587 build!$build$ac_delim
21588 build_cpu!$build_cpu$ac_delim
21589 build_vendor!$build_vendor$ac_delim
21590 build_os!$build_os$ac_delim
21591 host!$host$ac_delim
21592 host_cpu!$host_cpu$ac_delim
21593 host_vendor!$host_vendor$ac_delim
21594 host_os!$host_os$ac_delim
21595 target!$target$ac_delim
21596 target_cpu!$target_cpu$ac_delim
21597 target_vendor!$target_vendor$ac_delim
21598 target_os!$target_os$ac_delim
21599 OS!$OS$ac_delim
21600 HOST_OS!$HOST_OS$ac_delim
21601 TARGET_OS!$TARGET_OS$ac_delim
21602 LINKALL!$LINKALL$ac_delim
21603 NOLINKALL!$NOLINKALL$ac_delim
21604 LLVM_ON_UNIX!$LLVM_ON_UNIX$ac_delim
21605 LLVM_ON_WIN32!$LLVM_ON_WIN32$ac_delim
21606 ARCH!$ARCH$ac_delim
21607 ENDIAN!$ENDIAN$ac_delim
21608 CC!$CC$ac_delim
21609 CFLAGS!$CFLAGS$ac_delim
21610 LDFLAGS!$LDFLAGS$ac_delim
21611 CPPFLAGS!$CPPFLAGS$ac_delim
21612 ac_ct_CC!$ac_ct_CC$ac_delim
21613 EXEEXT!$EXEEXT$ac_delim
21614 OBJEXT!$OBJEXT$ac_delim
21615 CPP!$CPP$ac_delim
21616 GREP!$GREP$ac_delim
21617 EGREP!$EGREP$ac_delim
21618 LLVM_CROSS_COMPILING!$LLVM_CROSS_COMPILING$ac_delim
21619 BUILD_CC!$BUILD_CC$ac_delim
21620 BUILD_EXEEXT!$BUILD_EXEEXT$ac_delim
21621 BUILD_CXX!$BUILD_CXX$ac_delim
21622 CVSBUILD!$CVSBUILD$ac_delim
21623 ENABLE_OPTIMIZED!$ENABLE_OPTIMIZED$ac_delim
21624 ENABLE_PROFILING!$ENABLE_PROFILING$ac_delim
21625 DISABLE_ASSERTIONS!$DISABLE_ASSERTIONS$ac_delim
21626 ENABLE_EXPENSIVE_CHECKS!$ENABLE_EXPENSIVE_CHECKS$ac_delim
21627 EXPENSIVE_CHECKS!$EXPENSIVE_CHECKS$ac_delim
21628 DEBUG_RUNTIME!$DEBUG_RUNTIME$ac_delim
21629 DEBUG_SYMBOLS!$DEBUG_SYMBOLS$ac_delim
21630 JIT!$JIT$ac_delim
21631 TARGET_HAS_JIT!$TARGET_HAS_JIT$ac_delim
21632 ENABLE_DOXYGEN!$ENABLE_DOXYGEN$ac_delim
21633 ENABLE_THREADS!$ENABLE_THREADS$ac_delim
21634 ENABLE_PIC!$ENABLE_PIC$ac_delim
21635 ENABLE_SHARED!$ENABLE_SHARED$ac_delim
21636 ENABLE_TIMESTAMPS!$ENABLE_TIMESTAMPS$ac_delim
21637 TARGETS_TO_BUILD!$TARGETS_TO_BUILD$ac_delim
21638 LLVM_ENUM_TARGETS!$LLVM_ENUM_TARGETS$ac_delim
21639 LLVM_ENUM_ASM_PRINTERS!$LLVM_ENUM_ASM_PRINTERS$ac_delim
21640 LLVM_ENUM_ASM_PARSERS!$LLVM_ENUM_ASM_PARSERS$ac_delim
21641 LLVM_ENUM_DISASSEMBLERS!$LLVM_ENUM_DISASSEMBLERS$ac_delim
21642 ENABLE_CBE_PRINTF_A!$ENABLE_CBE_PRINTF_A$ac_delim
21643 CLANGPATH!$CLANGPATH$ac_delim
21644 CLANGXXPATH!$CLANGXXPATH$ac_delim
21645 _ACEOF
21646
21647   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
21648     break
21649   elif $ac_last_try; then
21650     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21651 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21652    { (exit 1); exit 1; }; }
21653   else
21654     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21655   fi
21656 done
21657
21658 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21659 if test -n "$ac_eof"; then
21660   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21661   ac_eof=`expr $ac_eof + 1`
21662 fi
21663
21664 cat >>$CONFIG_STATUS <<_ACEOF
21665 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
21666 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
21667 _ACEOF
21668 sed '
21669 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21670 s/^/s,@/; s/!/@,|#_!!_#|/
21671 :n
21672 t n
21673 s/'"$ac_delim"'$/,g/; t
21674 s/$/\\/; p
21675 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21676 ' >>$CONFIG_STATUS <conf$$subs.sed
21677 rm -f conf$$subs.sed
21678 cat >>$CONFIG_STATUS <<_ACEOF
21679 CEOF$ac_eof
21680 _ACEOF
21681
21682
21683 ac_delim='%!_!# '
21684 for ac_last_try in false false false false false :; do
21685   cat >conf$$subs.sed <<_ACEOF
21686 ENABLE_BUILT_CLANG!$ENABLE_BUILT_CLANG$ac_delim
21687 OPTIMIZE_OPTION!$OPTIMIZE_OPTION$ac_delim
21688 EXTRA_OPTIONS!$EXTRA_OPTIONS$ac_delim
21689 BINUTILS_INCDIR!$BINUTILS_INCDIR$ac_delim
21690 CXX!$CXX$ac_delim
21691 CXXFLAGS!$CXXFLAGS$ac_delim
21692 ac_ct_CXX!$ac_ct_CXX$ac_delim
21693 NM!$NM$ac_delim
21694 ifGNUmake!$ifGNUmake$ac_delim
21695 LN_S!$LN_S$ac_delim
21696 CMP!$CMP$ac_delim
21697 CP!$CP$ac_delim
21698 DATE!$DATE$ac_delim
21699 FIND!$FIND$ac_delim
21700 MKDIR!$MKDIR$ac_delim
21701 MV!$MV$ac_delim
21702 RANLIB!$RANLIB$ac_delim
21703 AR!$AR$ac_delim
21704 RM!$RM$ac_delim
21705 SED!$SED$ac_delim
21706 TAR!$TAR$ac_delim
21707 BINPWD!$BINPWD$ac_delim
21708 GRAPHVIZ!$GRAPHVIZ$ac_delim
21709 DOT!$DOT$ac_delim
21710 FDP!$FDP$ac_delim
21711 NEATO!$NEATO$ac_delim
21712 TWOPI!$TWOPI$ac_delim
21713 CIRCO!$CIRCO$ac_delim
21714 GV!$GV$ac_delim
21715 DOTTY!$DOTTY$ac_delim
21716 XDOT_PY!$XDOT_PY$ac_delim
21717 PERL!$PERL$ac_delim
21718 HAVE_PERL!$HAVE_PERL$ac_delim
21719 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
21720 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
21721 INSTALL_DATA!$INSTALL_DATA$ac_delim
21722 BZIP2!$BZIP2$ac_delim
21723 CAT!$CAT$ac_delim
21724 DOXYGEN!$DOXYGEN$ac_delim
21725 GROFF!$GROFF$ac_delim
21726 GZIP!$GZIP$ac_delim
21727 POD2HTML!$POD2HTML$ac_delim
21728 POD2MAN!$POD2MAN$ac_delim
21729 PDFROFF!$PDFROFF$ac_delim
21730 RUNTEST!$RUNTEST$ac_delim
21731 TCLSH!$TCLSH$ac_delim
21732 ZIP!$ZIP$ac_delim
21733 OCAMLC!$OCAMLC$ac_delim
21734 OCAMLOPT!$OCAMLOPT$ac_delim
21735 OCAMLDEP!$OCAMLDEP$ac_delim
21736 OCAMLDOC!$OCAMLDOC$ac_delim
21737 GAS!$GAS$ac_delim
21738 HAVE_LINK_VERSION_SCRIPT!$HAVE_LINK_VERSION_SCRIPT$ac_delim
21739 INSTALL_LTDL_TRUE!$INSTALL_LTDL_TRUE$ac_delim
21740 INSTALL_LTDL_FALSE!$INSTALL_LTDL_FALSE$ac_delim
21741 CONVENIENCE_LTDL_TRUE!$CONVENIENCE_LTDL_TRUE$ac_delim
21742 CONVENIENCE_LTDL_FALSE!$CONVENIENCE_LTDL_FALSE$ac_delim
21743 LIBADD_DL!$LIBADD_DL$ac_delim
21744 LLVMGCCCOMMAND!$LLVMGCCCOMMAND$ac_delim
21745 LLVMGXXCOMMAND!$LLVMGXXCOMMAND$ac_delim
21746 LLVMGCC!$LLVMGCC$ac_delim
21747 LLVMGXX!$LLVMGXX$ac_delim
21748 LLVMCC_OPTION!$LLVMCC_OPTION$ac_delim
21749 NO_VARIADIC_MACROS!$NO_VARIADIC_MACROS$ac_delim
21750 NO_MISSING_FIELD_INITIALIZERS!$NO_MISSING_FIELD_INITIALIZERS$ac_delim
21751 USE_UDIS86!$USE_UDIS86$ac_delim
21752 USE_OPROFILE!$USE_OPROFILE$ac_delim
21753 HAVE_PTHREAD!$HAVE_PTHREAD$ac_delim
21754 HUGE_VAL_SANITY!$HUGE_VAL_SANITY$ac_delim
21755 MMAP_FILE!$MMAP_FILE$ac_delim
21756 LLVMCC1!$LLVMCC1$ac_delim
21757 LLVMCC1PLUS!$LLVMCC1PLUS$ac_delim
21758 LLVMGCCDIR!$LLVMGCCDIR$ac_delim
21759 LLVMGCC_LANGS!$LLVMGCC_LANGS$ac_delim
21760 SHLIBEXT!$SHLIBEXT$ac_delim
21761 SHLIBPATH_VAR!$SHLIBPATH_VAR$ac_delim
21762 LLVM_PREFIX!$LLVM_PREFIX$ac_delim
21763 LLVM_BINDIR!$LLVM_BINDIR$ac_delim
21764 LLVM_LIBDIR!$LLVM_LIBDIR$ac_delim
21765 LLVM_DATADIR!$LLVM_DATADIR$ac_delim
21766 LLVM_DOCSDIR!$LLVM_DOCSDIR$ac_delim
21767 LLVM_ETCDIR!$LLVM_ETCDIR$ac_delim
21768 LLVM_INCLUDEDIR!$LLVM_INCLUDEDIR$ac_delim
21769 LLVM_INFODIR!$LLVM_INFODIR$ac_delim
21770 LLVM_MANDIR!$LLVM_MANDIR$ac_delim
21771 LLVM_CONFIGTIME!$LLVM_CONFIGTIME$ac_delim
21772 BINDINGS_TO_BUILD!$BINDINGS_TO_BUILD$ac_delim
21773 ALL_BINDINGS!$ALL_BINDINGS$ac_delim
21774 OCAML_LIBDIR!$OCAML_LIBDIR$ac_delim
21775 ENABLE_VISIBILITY_INLINES_HIDDEN!$ENABLE_VISIBILITY_INLINES_HIDDEN$ac_delim
21776 RPATH!$RPATH$ac_delim
21777 RDYNAMIC!$RDYNAMIC$ac_delim
21778 LIBOBJS!$LIBOBJS$ac_delim
21779 LTLIBOBJS!$LTLIBOBJS$ac_delim
21780 _ACEOF
21781
21782   if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 94; then
21783     break
21784   elif $ac_last_try; then
21785     { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
21786 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
21787    { (exit 1); exit 1; }; }
21788   else
21789     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
21790   fi
21791 done
21792
21793 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
21794 if test -n "$ac_eof"; then
21795   ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
21796   ac_eof=`expr $ac_eof + 1`
21797 fi
21798
21799 cat >>$CONFIG_STATUS <<_ACEOF
21800 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
21801 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
21802 _ACEOF
21803 sed '
21804 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
21805 s/^/s,@/; s/!/@,|#_!!_#|/
21806 :n
21807 t n
21808 s/'"$ac_delim"'$/,g/; t
21809 s/$/\\/; p
21810 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
21811 ' >>$CONFIG_STATUS <conf$$subs.sed
21812 rm -f conf$$subs.sed
21813 cat >>$CONFIG_STATUS <<_ACEOF
21814 :end
21815 s/|#_!!_#|//g
21816 CEOF$ac_eof
21817 _ACEOF
21818
21819
21820 # VPATH may cause trouble with some makes, so we remove $(srcdir),
21821 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
21822 # trailing colons and then remove the whole line if VPATH becomes empty
21823 # (actually we leave an empty line to preserve line numbers).
21824 if test "x$srcdir" = x.; then
21825   ac_vpsub='/^[  ]*VPATH[        ]*=/{
21826 s/:*\$(srcdir):*/:/
21827 s/:*\${srcdir}:*/:/
21828 s/:*@srcdir@:*/:/
21829 s/^\([^=]*=[     ]*\):*/\1/
21830 s/:*$//
21831 s/^[^=]*=[       ]*$//
21832 }'
21833 fi
21834
21835 cat >>$CONFIG_STATUS <<\_ACEOF
21836 fi # test -n "$CONFIG_FILES"
21837
21838
21839 for ac_tag in  :F $CONFIG_FILES  :H $CONFIG_HEADERS    :C $CONFIG_COMMANDS
21840 do
21841   case $ac_tag in
21842   :[FHLC]) ac_mode=$ac_tag; continue;;
21843   esac
21844   case $ac_mode$ac_tag in
21845   :[FHL]*:*);;
21846   :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
21847 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
21848    { (exit 1); exit 1; }; };;
21849   :[FH]-) ac_tag=-:-;;
21850   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
21851   esac
21852   ac_save_IFS=$IFS
21853   IFS=:
21854   set x $ac_tag
21855   IFS=$ac_save_IFS
21856   shift
21857   ac_file=$1
21858   shift
21859
21860   case $ac_mode in
21861   :L) ac_source=$1;;
21862   :[FH])
21863     ac_file_inputs=
21864     for ac_f
21865     do
21866       case $ac_f in
21867       -) ac_f="$tmp/stdin";;
21868       *) # Look for the file first in the build tree, then in the source tree
21869          # (if the path is not absolute).  The absolute path cannot be DOS-style,
21870          # because $ac_f cannot contain `:'.
21871          test -f "$ac_f" ||
21872            case $ac_f in
21873            [\\/$]*) false;;
21874            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
21875            esac ||
21876            { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
21877 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
21878    { (exit 1); exit 1; }; };;
21879       esac
21880       ac_file_inputs="$ac_file_inputs $ac_f"
21881     done
21882
21883     # Let's still pretend it is `configure' which instantiates (i.e., don't
21884     # use $as_me), people would be surprised to read:
21885     #    /* config.h.  Generated by config.status.  */
21886     configure_input="Generated from "`IFS=:
21887           echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
21888     if test x"$ac_file" != x-; then
21889       configure_input="$ac_file.  $configure_input"
21890       { echo "$as_me:$LINENO: creating $ac_file" >&5
21891 echo "$as_me: creating $ac_file" >&6;}
21892     fi
21893
21894     case $ac_tag in
21895     *:-:* | *:-) cat >"$tmp/stdin";;
21896     esac
21897     ;;
21898   esac
21899
21900   ac_dir=`$as_dirname -- "$ac_file" ||
21901 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21902          X"$ac_file" : 'X\(//\)[^/]' \| \
21903          X"$ac_file" : 'X\(//\)$' \| \
21904          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
21905 echo X"$ac_file" |
21906     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21907             s//\1/
21908             q
21909           }
21910           /^X\(\/\/\)[^/].*/{
21911             s//\1/
21912             q
21913           }
21914           /^X\(\/\/\)$/{
21915             s//\1/
21916             q
21917           }
21918           /^X\(\/\).*/{
21919             s//\1/
21920             q
21921           }
21922           s/.*/./; q'`
21923   { as_dir="$ac_dir"
21924   case $as_dir in #(
21925   -*) as_dir=./$as_dir;;
21926   esac
21927   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
21928     as_dirs=
21929     while :; do
21930       case $as_dir in #(
21931       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
21932       *) as_qdir=$as_dir;;
21933       esac
21934       as_dirs="'$as_qdir' $as_dirs"
21935       as_dir=`$as_dirname -- "$as_dir" ||
21936 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
21937          X"$as_dir" : 'X\(//\)[^/]' \| \
21938          X"$as_dir" : 'X\(//\)$' \| \
21939          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
21940 echo X"$as_dir" |
21941     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
21942             s//\1/
21943             q
21944           }
21945           /^X\(\/\/\)[^/].*/{
21946             s//\1/
21947             q
21948           }
21949           /^X\(\/\/\)$/{
21950             s//\1/
21951             q
21952           }
21953           /^X\(\/\).*/{
21954             s//\1/
21955             q
21956           }
21957           s/.*/./; q'`
21958       test -d "$as_dir" && break
21959     done
21960     test -z "$as_dirs" || eval "mkdir $as_dirs"
21961   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
21962 echo "$as_me: error: cannot create directory $as_dir" >&2;}
21963    { (exit 1); exit 1; }; }; }
21964   ac_builddir=.
21965
21966 case "$ac_dir" in
21967 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
21968 *)
21969   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
21970   # A ".." for each directory in $ac_dir_suffix.
21971   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
21972   case $ac_top_builddir_sub in
21973   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
21974   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
21975   esac ;;
21976 esac
21977 ac_abs_top_builddir=$ac_pwd
21978 ac_abs_builddir=$ac_pwd$ac_dir_suffix
21979 # for backward compatibility:
21980 ac_top_builddir=$ac_top_build_prefix
21981
21982 case $srcdir in
21983   .)  # We are building in place.
21984     ac_srcdir=.
21985     ac_top_srcdir=$ac_top_builddir_sub
21986     ac_abs_top_srcdir=$ac_pwd ;;
21987   [\\/]* | ?:[\\/]* )  # Absolute name.
21988     ac_srcdir=$srcdir$ac_dir_suffix;
21989     ac_top_srcdir=$srcdir
21990     ac_abs_top_srcdir=$srcdir ;;
21991   *) # Relative name.
21992     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
21993     ac_top_srcdir=$ac_top_build_prefix$srcdir
21994     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
21995 esac
21996 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
21997
21998
21999   case $ac_mode in
22000   :F)
22001   #
22002   # CONFIG_FILE
22003   #
22004
22005   case $INSTALL in
22006   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
22007   *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
22008   esac
22009 _ACEOF
22010
22011 cat >>$CONFIG_STATUS <<\_ACEOF
22012 # If the template does not know about datarootdir, expand it.
22013 # FIXME: This hack should be removed a few years after 2.60.
22014 ac_datarootdir_hack=; ac_datarootdir_seen=
22015
22016 case `sed -n '/datarootdir/ {
22017   p
22018   q
22019 }
22020 /@datadir@/p
22021 /@docdir@/p
22022 /@infodir@/p
22023 /@localedir@/p
22024 /@mandir@/p
22025 ' $ac_file_inputs` in
22026 *datarootdir*) ac_datarootdir_seen=yes;;
22027 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
22028   { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
22029 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
22030 _ACEOF
22031 cat >>$CONFIG_STATUS <<_ACEOF
22032   ac_datarootdir_hack='
22033   s&@datadir@&$datadir&g
22034   s&@docdir@&$docdir&g
22035   s&@infodir@&$infodir&g
22036   s&@localedir@&$localedir&g
22037   s&@mandir@&$mandir&g
22038     s&\\\${datarootdir}&$datarootdir&g' ;;
22039 esac
22040 _ACEOF
22041
22042 # Neutralize VPATH when `$srcdir' = `.'.
22043 # Shell code in configure.ac might set extrasub.
22044 # FIXME: do we really want to maintain this feature?
22045 cat >>$CONFIG_STATUS <<_ACEOF
22046   sed "$ac_vpsub
22047 $extrasub
22048 _ACEOF
22049 cat >>$CONFIG_STATUS <<\_ACEOF
22050 :t
22051 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
22052 s&@configure_input@&$configure_input&;t t
22053 s&@top_builddir@&$ac_top_builddir_sub&;t t
22054 s&@srcdir@&$ac_srcdir&;t t
22055 s&@abs_srcdir@&$ac_abs_srcdir&;t t
22056 s&@top_srcdir@&$ac_top_srcdir&;t t
22057 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
22058 s&@builddir@&$ac_builddir&;t t
22059 s&@abs_builddir@&$ac_abs_builddir&;t t
22060 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
22061 s&@INSTALL@&$ac_INSTALL&;t t
22062 $ac_datarootdir_hack
22063 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
22064
22065 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
22066   { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
22067   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
22068   { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22069 which seems to be undefined.  Please make sure it is defined." >&5
22070 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
22071 which seems to be undefined.  Please make sure it is defined." >&2;}
22072
22073   rm -f "$tmp/stdin"
22074   case $ac_file in
22075   -) cat "$tmp/out"; rm -f "$tmp/out";;
22076   *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
22077   esac
22078  ;;
22079   :H)
22080   #
22081   # CONFIG_HEADER
22082   #
22083 _ACEOF
22084
22085 # Transform confdefs.h into a sed script `conftest.defines', that
22086 # substitutes the proper values into config.h.in to produce config.h.
22087 rm -f conftest.defines conftest.tail
22088 # First, append a space to every undef/define line, to ease matching.
22089 echo 's/$/ /' >conftest.defines
22090 # Then, protect against being on the right side of a sed subst, or in
22091 # an unquoted here document, in config.status.  If some macros were
22092 # called several times there might be several #defines for the same
22093 # symbol, which is useless.  But do not sort them, since the last
22094 # AC_DEFINE must be honored.
22095 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
22096 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
22097 # NAME is the cpp macro being defined, VALUE is the value it is being given.
22098 # PARAMS is the parameter list in the macro definition--in most cases, it's
22099 # just an empty string.
22100 ac_dA='s,^\\([   #]*\\)[^        ]*\\([  ]*'
22101 ac_dB='\\)[      (].*,\\1define\\2'
22102 ac_dC=' '
22103 ac_dD=' ,'
22104
22105 uniq confdefs.h |
22106   sed -n '
22107         t rset
22108         :rset
22109         s/^[     ]*#[    ]*define[       ][      ]*//
22110         t ok
22111         d
22112         :ok
22113         s/[\\&,]/\\&/g
22114         s/^\('"$ac_word_re"'\)\(([^()]*)\)[      ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
22115         s/^\('"$ac_word_re"'\)[  ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
22116   ' >>conftest.defines
22117
22118 # Remove the space that was appended to ease matching.
22119 # Then replace #undef with comments.  This is necessary, for
22120 # example, in the case of _POSIX_SOURCE, which is predefined and required
22121 # on some systems where configure will not decide to define it.
22122 # (The regexp can be short, since the line contains either #define or #undef.)
22123 echo 's/ $//
22124 s,^[     #]*u.*,/* & */,' >>conftest.defines
22125
22126 # Break up conftest.defines:
22127 ac_max_sed_lines=50
22128
22129 # First sed command is:  sed -f defines.sed $ac_file_inputs >"$tmp/out1"
22130 # Second one is:         sed -f defines.sed "$tmp/out1" >"$tmp/out2"
22131 # Third one will be:     sed -f defines.sed "$tmp/out2" >"$tmp/out1"
22132 # et cetera.
22133 ac_in='$ac_file_inputs'
22134 ac_out='"$tmp/out1"'
22135 ac_nxt='"$tmp/out2"'
22136
22137 while :
22138 do
22139   # Write a here document:
22140     cat >>$CONFIG_STATUS <<_ACEOF
22141     # First, check the format of the line:
22142     cat >"\$tmp/defines.sed" <<\\CEOF
22143 /^[      ]*#[    ]*undef[        ][      ]*$ac_word_re[  ]*\$/b def
22144 /^[      ]*#[    ]*define[       ][      ]*$ac_word_re[(         ]/b def
22145 b
22146 :def
22147 _ACEOF
22148   sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
22149   echo 'CEOF
22150     sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
22151   ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
22152   sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
22153   grep . conftest.tail >/dev/null || break
22154   rm -f conftest.defines
22155   mv conftest.tail conftest.defines
22156 done
22157 rm -f conftest.defines conftest.tail
22158
22159 echo "ac_result=$ac_in" >>$CONFIG_STATUS
22160 cat >>$CONFIG_STATUS <<\_ACEOF
22161   if test x"$ac_file" != x-; then
22162     echo "/* $configure_input  */" >"$tmp/config.h"
22163     cat "$ac_result" >>"$tmp/config.h"
22164     if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
22165       { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
22166 echo "$as_me: $ac_file is unchanged" >&6;}
22167     else
22168       rm -f $ac_file
22169       mv "$tmp/config.h" $ac_file
22170     fi
22171   else
22172     echo "/* $configure_input  */"
22173     cat "$ac_result"
22174   fi
22175   rm -f "$tmp/out12"
22176  ;;
22177
22178   :C)  { echo "$as_me:$LINENO: executing $ac_file commands" >&5
22179 echo "$as_me: executing $ac_file commands" >&6;}
22180  ;;
22181   esac
22182
22183
22184   case $ac_file$ac_mode in
22185     "Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile`
22186    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile Makefile ;;
22187     "Makefile.common":C) ${llvm_src}/autoconf/mkinstalldirs `dirname Makefile.common`
22188    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/Makefile.common Makefile.common ;;
22189     "examples/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname examples/Makefile`
22190    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/examples/Makefile examples/Makefile ;;
22191     "lib/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname lib/Makefile`
22192    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/lib/Makefile lib/Makefile ;;
22193     "runtime/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname runtime/Makefile`
22194    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/runtime/Makefile runtime/Makefile ;;
22195     "test/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile`
22196    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile test/Makefile ;;
22197     "test/Makefile.tests":C) ${llvm_src}/autoconf/mkinstalldirs `dirname test/Makefile.tests`
22198    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/test/Makefile.tests test/Makefile.tests ;;
22199     "unittests/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname unittests/Makefile`
22200    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/unittests/Makefile unittests/Makefile ;;
22201     "tools/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname tools/Makefile`
22202    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/tools/Makefile tools/Makefile ;;
22203     "utils/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname utils/Makefile`
22204    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/utils/Makefile utils/Makefile ;;
22205     "projects/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname projects/Makefile`
22206    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/projects/Makefile projects/Makefile ;;
22207     "bindings/Makefile":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/Makefile`
22208    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/Makefile bindings/Makefile ;;
22209     "bindings/ocaml/Makefile.ocaml":C) ${llvm_src}/autoconf/mkinstalldirs `dirname bindings/ocaml/Makefile.ocaml`
22210    ${SHELL} ${llvm_src}/autoconf/install-sh -m 0644 -c ${srcdir}/bindings/ocaml/Makefile.ocaml bindings/ocaml/Makefile.ocaml ;;
22211
22212   esac
22213 done # for ac_tag
22214
22215
22216 { (exit 0); exit 0; }
22217 _ACEOF
22218 chmod +x $CONFIG_STATUS
22219 ac_clean_files=$ac_clean_files_save
22220
22221
22222 # configure is writing to config.log, and then calls config.status.
22223 # config.status does its own redirection, appending to config.log.
22224 # Unfortunately, on DOS this fails, as config.log is still kept open
22225 # by configure, so config.status won't be able to write to it; its
22226 # output is simply discarded.  So we exec the FD to /dev/null,
22227 # effectively closing config.log, so it can be properly (re)opened and
22228 # appended to by config.status.  When coming back to configure, we
22229 # need to make the FD available again.
22230 if test "$no_create" != yes; then
22231   ac_cs_success=:
22232   ac_config_status_args=
22233   test "$silent" = yes &&
22234     ac_config_status_args="$ac_config_status_args --quiet"
22235   exec 5>/dev/null
22236   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
22237   exec 5>>config.log
22238   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
22239   # would make configure fail if this is the last instruction.
22240   $ac_cs_success || { (exit 1); exit 1; }
22241 fi
22242
22243 #
22244 # CONFIG_SUBDIRS section.
22245 #
22246 if test "$no_recursion" != yes; then
22247
22248   # Remove --cache-file and --srcdir arguments so they do not pile up.
22249   ac_sub_configure_args=
22250   ac_prev=
22251   eval "set x $ac_configure_args"
22252   shift
22253   for ac_arg
22254   do
22255     if test -n "$ac_prev"; then
22256       ac_prev=
22257       continue
22258     fi
22259     case $ac_arg in
22260     -cache-file | --cache-file | --cache-fil | --cache-fi \
22261     | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
22262       ac_prev=cache_file ;;
22263     -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
22264     | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
22265     | --c=*)
22266       ;;
22267     --config-cache | -C)
22268       ;;
22269     -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
22270       ac_prev=srcdir ;;
22271     -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
22272       ;;
22273     -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
22274       ac_prev=prefix ;;
22275     -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
22276       ;;
22277     *)
22278       case $ac_arg in
22279       *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22280       esac
22281       ac_sub_configure_args="$ac_sub_configure_args '$ac_arg'" ;;
22282     esac
22283   done
22284
22285   # Always prepend --prefix to ensure using the same prefix
22286   # in subdir configurations.
22287   ac_arg="--prefix=$prefix"
22288   case $ac_arg in
22289   *\'*) ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
22290   esac
22291   ac_sub_configure_args="$ac_arg $ac_sub_configure_args"
22292
22293   ac_popdir=`pwd`
22294   for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
22295
22296     # Do not complain, so a configure script can configure whichever
22297     # parts of a large source tree are present.
22298     test -d "$srcdir/$ac_dir" || continue
22299
22300     ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
22301     echo "$as_me:$LINENO: $ac_msg" >&5
22302     echo "$ac_msg" >&6
22303     { as_dir="$ac_dir"
22304   case $as_dir in #(
22305   -*) as_dir=./$as_dir;;
22306   esac
22307   test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
22308     as_dirs=
22309     while :; do
22310       case $as_dir in #(
22311       *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
22312       *) as_qdir=$as_dir;;
22313       esac
22314       as_dirs="'$as_qdir' $as_dirs"
22315       as_dir=`$as_dirname -- "$as_dir" ||
22316 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
22317          X"$as_dir" : 'X\(//\)[^/]' \| \
22318          X"$as_dir" : 'X\(//\)$' \| \
22319          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
22320 echo X"$as_dir" |
22321     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
22322             s//\1/
22323             q
22324           }
22325           /^X\(\/\/\)[^/].*/{
22326             s//\1/
22327             q
22328           }
22329           /^X\(\/\/\)$/{
22330             s//\1/
22331             q
22332           }
22333           /^X\(\/\).*/{
22334             s//\1/
22335             q
22336           }
22337           s/.*/./; q'`
22338       test -d "$as_dir" && break
22339     done
22340     test -z "$as_dirs" || eval "mkdir $as_dirs"
22341   } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
22342 echo "$as_me: error: cannot create directory $as_dir" >&2;}
22343    { (exit 1); exit 1; }; }; }
22344     ac_builddir=.
22345
22346 case "$ac_dir" in
22347 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
22348 *)
22349   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
22350   # A ".." for each directory in $ac_dir_suffix.
22351   ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
22352   case $ac_top_builddir_sub in
22353   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
22354   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
22355   esac ;;
22356 esac
22357 ac_abs_top_builddir=$ac_pwd
22358 ac_abs_builddir=$ac_pwd$ac_dir_suffix
22359 # for backward compatibility:
22360 ac_top_builddir=$ac_top_build_prefix
22361
22362 case $srcdir in
22363   .)  # We are building in place.
22364     ac_srcdir=.
22365     ac_top_srcdir=$ac_top_builddir_sub
22366     ac_abs_top_srcdir=$ac_pwd ;;
22367   [\\/]* | ?:[\\/]* )  # Absolute name.
22368     ac_srcdir=$srcdir$ac_dir_suffix;
22369     ac_top_srcdir=$srcdir
22370     ac_abs_top_srcdir=$srcdir ;;
22371   *) # Relative name.
22372     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
22373     ac_top_srcdir=$ac_top_build_prefix$srcdir
22374     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
22375 esac
22376 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
22377
22378
22379     cd "$ac_dir"
22380
22381     # Check for guested configure; otherwise get Cygnus style configure.
22382     if test -f "$ac_srcdir/configure.gnu"; then
22383       ac_sub_configure=$ac_srcdir/configure.gnu
22384     elif test -f "$ac_srcdir/configure"; then
22385       ac_sub_configure=$ac_srcdir/configure
22386     elif test -f "$ac_srcdir/configure.in"; then
22387       # This should be Cygnus configure.
22388       ac_sub_configure=$ac_aux_dir/configure
22389     else
22390       { echo "$as_me:$LINENO: WARNING: no configuration information is in $ac_dir" >&5
22391 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
22392       ac_sub_configure=
22393     fi
22394
22395     # The recursion is here.
22396     if test -n "$ac_sub_configure"; then
22397       # Make the cache file name correct relative to the subdirectory.
22398       case $cache_file in
22399       [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
22400       *) # Relative name.
22401         ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
22402       esac
22403
22404       { echo "$as_me:$LINENO: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
22405 echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
22406       # The eval makes quoting arguments work.
22407       eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
22408            --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
22409         { { echo "$as_me:$LINENO: error: $ac_sub_configure failed for $ac_dir" >&5
22410 echo "$as_me: error: $ac_sub_configure failed for $ac_dir" >&2;}
22411    { (exit 1); exit 1; }; }
22412     fi
22413
22414     cd "$ac_popdir"
22415   done
22416 fi
22417