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

Comparing BasiliskII/src/Unix/configure.ac (file contents):
Revision 1.8 by gbeauche, 2002-09-18T13:06:49Z vs.
Revision 1.15 by gbeauche, 2003-05-13T16:33:06Z

# Line 69 | Line 69 | HAVE_I386=no
69   HAVE_M68K=no
70   HAVE_SPARC=no
71   HAVE_POWERPC=no
72 + HAVE_X86_64=no
73   case "$target_cpu" in
74 <  i386* | i486* | i586* | i686* | i786* ) CPU_TYPE=i386 HAVE_I386=yes;;
75 <  m68k* ) CPU_TYPE=m68k HAVE_M68K=yes;;
76 <  sparc* ) CPU_TYPE=sparc HAVE_SPARC=yes;;
77 <  powerpc* ) CPU_TYPE=powerpc HAVE_POWERPC=yes;;
78 <  *) CPU_TYPE=`echo $target_cpu | sed -e 's/-/_/g'`;;
74 >  i386* | i486* | i586* | i686* | i786* ) HAVE_I386=yes;;
75 >  m68k* ) HAVE_M68K=yes;;
76 >  sparc* ) HAVE_SPARC=yes;;
77 >  powerpc* ) HAVE_POWERPC=yes;;
78 >  x86_64* ) HAVE_X86_64=yes;;
79   esac
79 DEFINES="$DEFINES -DCPU_$CPU_TYPE"
80  
81   dnl Checks for programs.
82   AC_PROG_CC
# Line 360 | Line 360 | irix*)
360    LIBS="$LIBS -laudio"
361    WANT_ESD=no
362  
363 <  dnl Check if our compiler supports -Ofast (MIPSPro)
364 <  HAVE_OFAST=no
363 >  dnl Check if our compiler supports -IPA (MIPSPro)
364 >  HAVE_IPA=no
365    ocflags="$CFLAGS"
366 <  CFLAGS=`echo $CFLAGS | sed -e 's/ -g / -Ofast /;s/^-g /-Ofast /;s/-g$/ -Ofast/;s/^-g$/-Ofast/'`
367 <  AC_MSG_CHECKING(if "-Ofast" works)
366 >  CFLAGS=`echo "$CFLAGS -IPA" | sed -e "s/-g//g"`
367 >  AC_MSG_CHECKING(if "-IPA" works)
368    dnl Do a test compile of an empty function
369 <  AC_TRY_COMPILE(,, [AC_MSG_RESULT(yes); HAVE_OFAST=yes], AC_MSG_RESULT(no))
369 >  AC_TRY_COMPILE(,, [AC_MSG_RESULT(yes); HAVE_IPA=yes], AC_MSG_RESULT(no))
370    CFLAGS="$ocflags"
371  
372    ;;
# Line 553 | Line 553 | AC_CACHE_CHECK([whether we can map Low M
553    AC_TRY_RUN([
554      #include "vm_alloc.cpp"
555      int main(void) { /* returns 0 if we could map the lowmem globals */
556 <      volatile char * lm;
556 >      volatile char * lm = 0;
557        if (vm_init() < 0) exit(1);
558 <      if ((lm = (volatile char *)vm_acquire_fixed(0, 0x2000)) == VM_MAP_FAILED) exit(1);
558 >      if (vm_acquire_fixed(0, 0x2000) < 0) exit(1);
559        lm[0] = 'z';
560        if (vm_release((char *)lm, 0x2000) < 0) exit(1);
561        vm_exit(); exit(0);
# Line 820 | Line 820 | dnl Other platforms should define their
820   CAN_JIT=no
821   JITSRCS="compemu1.cpp compemu2.cpp compemu3.cpp compemu4.cpp compemu5.cpp compemu6.cpp compemu7.cpp compemu8.cpp"
822  
823 < if [[ "x$HAVE_GCC27" = "xyes" -a "x$HAVE_I386" = "xyes" -a "x$OS_TYPE" != "xfreebsd" ]]; then
823 > if [[ "x$HAVE_GCC27" = "xyes" -a "x$HAVE_I386" = "xyes" ]]; then
824    dnl i386 CPU
825    DEFINES="$DEFINES -DUNALIGNED_PROFITABLE -DREGPARAM=\"__attribute__((regparm(3)))\""
826    if [[ "x$HAVE_GAS" = "xyes" ]]; then
827      ASM_OPTIMIZATIONS=i386
828      DEFINES="$DEFINES -DX86_ASSEMBLY -DOPTIMIZED_FLAGS -DSAHF_SETO_PROFITABLE"
829 <    CPUSRCS="cpufast1.s cpufast2.s cpufast3.s cpufast4.s cpufast5.s cpufast6.s cpufast7.s cpufast8.s"
830 <    JITSRCS="cpufast1_nf.s cpufast2_nf.s cpufast3_nf.s cpufast4_nf.s cpufast5_nf.s cpufast6_nf.s cpufast7_nf.s cpufast8_nf.s $JITSRCS"
829 >    JITSRCS="cpuemu1_nf.cpp cpuemu2_nf.cpp cpuemu3_nf.cpp cpuemu4_nf.cpp cpuemu5_nf.cpp cpuemu6_nf.cpp cpuemu7_nf.cpp cpuemu8_nf.cpp $JITSRCS"
830 >    CAN_JIT=yes
831 >  fi
832 > elif [[ "x$HAVE_GCC30" = "xyes" -a "x$HAVE_X86_64" = "xyes" ]]; then
833 >  dnl x86-64 CPU
834 >  DEFINES="$DEFINES -DUNALIGNED_PROFITABLE"
835 >  if [[ "x$HAVE_GAS" = "xyes" ]]; then
836 >    ASM_OPTIMIZATIONS="x86-64"
837 >    DEFINES="$DEFINES -DX86_64_ASSEMBLY -DOPTIMIZED_FLAGS"
838    fi
832  CAN_JIT=yes
839   elif [[ "x$HAVE_GCC27" = "xyes" -a "x$HAVE_SPARC" = "xyes" -a "x$HAVE_GAS" = "xyes" ]]; then
840    dnl SPARC CPU
841    case "$target_os" in
# Line 1086 | Line 1092 | if [[ "x$HAVE_GCC27" = "xyes" ]]; then
1092    CXXFLAGS=`echo $CXXFLAGS | sed -e 's/-g//g'`
1093   fi
1094  
1095 < dnl Or if we have -Ofast
1096 < if [[ "x$HAVE_OFAST" = "xyes" ]]; then
1097 <  CFLAGS="`echo $CFLAGS | sed -e 's/-g//g'` -Ofast"
1098 <  CXXFLAGS="`echo $CXXFLAGS | sed -e 's/-g//g'` -Ofast"
1095 > dnl Or if we have -IPA (MIPSPro compilers)
1096 > if [[ "x$HAVE_IPA" = "xyes" ]]; then
1097 >  CFLAGS="`echo $CFLAGS | sed -e 's/-g//g'` -O3 -OPT:Olimit=0 -IPA"
1098 >  CXXFLAGS="`echo $CXXFLAGS | sed -e 's/-g//g'` -O3 -OPT:Olimit=0 -IPA"
1099    CXXFLAGS="-LANG:std $CXXFLAGS"
1100 <  LDFLAGS="$LDFLAGS -ipa"
1100 >  LDFLAGS="$LDFLAGS -O3 -OPT:Olimit=0 -IPA"
1101   fi
1102  
1103   dnl Generate Makefile.

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines