ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/SheepShaver/src/Unix/configure.in
(Generate patch)

Comparing SheepShaver/src/Unix/configure.in (file contents):
Revision 1.9 by gbeauche, 2003-11-24T23:39:35Z vs.
Revision 1.15 by gbeauche, 2004-01-04T18:38:00Z

# Line 48 | Line 48 | fi
48  
49   dnl We use mon if possible.
50   MONSRCS=
51 + case "x$WANT_MON" in
52 + x/* | x.*)
53 +  mon_srcdir=$WANT_MON
54 +  WANT_MON=yes
55 +  ;;
56 + xyes)
57 +  mon_srcdir=../../../mon/src
58 +  ;;
59 + esac
60   if [[ "x$WANT_MON" = "xyes" ]]; then
61    AC_MSG_CHECKING(for mon)
53  mon_srcdir=../../../mon/src
62    if grep mon_init $mon_srcdir/mon.h >/dev/null 2>/dev/null; then
63      AC_MSG_RESULT(yes)
64      AC_DEFINE(ENABLE_MON)
# Line 97 | Line 105 | if [[ "x$EMULATED_PPC" = "xyes" ]]; then
105    if [[ "x$HAVE_PTHREADS" = "xyes" ]]; then
106      AC_DEFINE(HAVE_PTHREADS, 1, [Define if pthreads are available.])
107    fi
108 + else
109 +  dnl We do have our own pthread_cancel() implementation
110 +  AC_DEFINE(HAVE_PTHREAD_CANCEL, 1, [Define if you have the pthread_cancel function.])
111   fi
112  
113   dnl If POSIX.4 semaphores are not available, we emulate them with pthread mutexes.
# Line 544 | Line 555 | AC_CACHE_CHECK([whether the compiler can
555   ])
556   ELF_OBJECTS=$ac_cv_elf_objects
557  
547 dnl FIXME: forcibly disable JIT for now
548 WANT_JIT=no
549
558   dnl CPU emulator sources
559   if [[ "x$EMULATED_PPC" = "xyes" ]]; then
560    CPUSRCS="\
# Line 577 | Line 585 | if [[ "x$EMULATED_PPC" = "xyes" ]]; then
585      ])
586      if [[ "x$ac_cv_use_dyngen" = "xyes" ]]; then
587        case $host_cpu in
588 <      i?86:yes)
588 >      i?86)
589          DYNGEN_OP_FLAGS="-fomit-frame-pointer -mpreferred-stack-boundary=2"
590          if [[ "x$HAVE_GCC30" = "xyes" ]]; then
591            DYNGEN_OP_FLAGS="$DYNGEN_OP_FLAGS -falign-functions=0"
# Line 586 | Line 594 | if [[ "x$EMULATED_PPC" = "xyes" ]]; then
594          fi
595          ;;
596        esac
597 <      DYNGEN_OP_FLAGS="$DYNGEN_OP_FLAGS -finline-limit=2000"
597 >      DYNGEN_OP_FLAGS="$DYNGEN_OP_FLAGS -finline-limit=10000"
598        if [[ "x$HAVE_GCC30" = "xyes" ]]; then
599          DYNGEN_OP_FLAGS="$DYNGEN_OP_FLAGS -fno-reorder-blocks -fno-optimize-sibling-calls"
600        fi
# Line 605 | Line 613 | if [[ "x$EMULATED_PPC" = "xyes" ]]; then
613      fi
614    fi
615    CPUSRCS="$CPUSRCS ../kpx_cpu/sheepshaver_glue.cpp"
616 + else
617 +  WANT_JIT=no
618 + fi
619 + if [[ "x$ac_cv_use_dyngen" = "xyes" ]]; then
620 +  AC_CACHE_CHECK([whether static data regions are executable],
621 +    ac_cv_have_static_data_exec, [
622 +    AC_TRY_RUN([int main(void) {
623 + #if defined(__powerpc__)
624 +      static unsigned int p[8] = {0x4e800020,};
625 +      asm volatile("dcbst 0,%0" : : "r" (p) : "memory");
626 +      asm volatile("sync" : : : "memory");
627 +      asm volatile("icbi 0,%0" : : "r" (p) : "memory");
628 +      asm volatile("sync" : : : "memory");
629 +      asm volatile("isync" : : : "memory");
630 +      ((void (*)(void))p)();
631 +      return 0;
632 + #endif
633 +      return 1;
634 +    }], ac_cv_have_static_data_exec=yes, ac_cv_have_static_data_exec=no,
635 +    dnl When cross-compiling, do not assume anything.
636 +    ac_cv_have_static_data_exec=no
637 +    )
638 +  ])
639 + fi
640 + AC_TRANSLATE_DEFINE(HAVE_STATIC_DATA_EXEC, "$ac_cv_have_static_data_exec",
641 +  [Define if your system marks static data pages as executable.])
642 +
643 + if [[ "x$WANT_JIT" = "xyes" ]]; then
644 +  CPPFLAGS="$CPPFLAGS -DUSE_JIT"
645   fi
646  
647   dnl Generate Makefile.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines