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.12 by gbeauche, 2002-11-05T10:32:42Z vs.
Revision 1.17 by cebix, 2003-07-25T13:45:25Z

# Line 1 | Line 1
1   dnl Process this file with autoconf to produce a configure script.
2   dnl Written in 2002 by Christian Bauer et al.
3  
4 < AC_INIT(main_unix.cpp)
4 > AC_INIT([Basilisk II], 1.0, [Christian.Bauer@uni-mainz.de], BasiliskII)
5 > AC_CONFIG_SRCDIR(main_unix.cpp)
6   AC_PREREQ(2.52)
7   AC_CONFIG_HEADER(config.h)
8  
# Line 69 | Line 70 | HAVE_I386=no
70   HAVE_M68K=no
71   HAVE_SPARC=no
72   HAVE_POWERPC=no
73 + HAVE_X86_64=no
74   case "$target_cpu" in
75    i386* | i486* | i586* | i686* | i786* ) HAVE_I386=yes;;
76    m68k* ) HAVE_M68K=yes;;
77    sparc* ) HAVE_SPARC=yes;;
78    powerpc* ) HAVE_POWERPC=yes;;
79 +  x86_64* ) HAVE_X86_64=yes;;
80   esac
81  
82   dnl Checks for programs.
# Line 358 | Line 361 | irix*)
361    LIBS="$LIBS -laudio"
362    WANT_ESD=no
363  
364 <  dnl Check if our compiler supports -Ofast (MIPSPro)
365 <  HAVE_OFAST=no
364 >  dnl Check if our compiler supports -IPA (MIPSPro)
365 >  HAVE_IPA=no
366    ocflags="$CFLAGS"
367 <  CFLAGS=`echo $CFLAGS | sed -e 's/ -g / -Ofast /;s/^-g /-Ofast /;s/-g$/ -Ofast/;s/^-g$/-Ofast/'`
368 <  AC_MSG_CHECKING(if "-Ofast" works)
367 >  CFLAGS=`echo "$CFLAGS -IPA" | sed -e "s/-g//g"`
368 >  AC_MSG_CHECKING(if "-IPA" works)
369    dnl Do a test compile of an empty function
370 <  AC_TRY_COMPILE(,, [AC_MSG_RESULT(yes); HAVE_OFAST=yes], AC_MSG_RESULT(no))
370 >  AC_TRY_COMPILE(,, [AC_MSG_RESULT(yes); HAVE_IPA=yes], AC_MSG_RESULT(no))
371    CFLAGS="$ocflags"
372  
373    ;;
# Line 551 | Line 554 | AC_CACHE_CHECK([whether we can map Low M
554    AC_TRY_RUN([
555      #include "vm_alloc.cpp"
556      int main(void) { /* returns 0 if we could map the lowmem globals */
557 <      volatile char * lm;
557 >      volatile char * lm = 0;
558        if (vm_init() < 0) exit(1);
559 <      if ((lm = (volatile char *)vm_acquire_fixed(0, 0x2000)) == VM_MAP_FAILED) exit(1);
559 >      if (vm_acquire_fixed(0, 0x2000) < 0) exit(1);
560        lm[0] = 'z';
561        if (vm_release((char *)lm, 0x2000) < 0) exit(1);
562        vm_exit(); exit(0);
# Line 767 | Line 770 | AC_MSG_RESULT($HAVE_GAS)
770   dnl Check for GCC 2.7 or higher.
771   HAVE_GCC27=no
772   AC_MSG_CHECKING(for GCC 2.7 or higher)
773 < AC_EGREP_CPP(yes,
773 > AC_EGREP_CPP(xyes,
774   [#if __GNUC__ - 1 > 1 || __GNUC_MINOR__ - 1 > 5
775 <  yes
775 >  xyes
776   #endif
777   ], [AC_MSG_RESULT(yes); HAVE_GCC27=yes], AC_MSG_RESULT(no))
778  
779   dnl Check for GCC 3.0 or higher.
780   HAVE_GCC30=no
781   AC_MSG_CHECKING(for GCC 3.0 or higher)
782 < AC_EGREP_CPP(yes,
782 > AC_EGREP_CPP(xyes,
783   [#if __GNUC__ >= 3
784 <  yes
784 >  xyes
785   #endif
786   ], [AC_MSG_RESULT(yes); HAVE_GCC30=yes], AC_MSG_RESULT(no))
787  
# Line 827 | Line 830 | if [[ "x$HAVE_GCC27" = "xyes" -a "x$HAVE
830      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"
831      CAN_JIT=yes
832    fi
833 + elif [[ "x$HAVE_GCC30" = "xyes" -a "x$HAVE_X86_64" = "xyes" ]]; then
834 +  dnl x86-64 CPU
835 +  DEFINES="$DEFINES -DUNALIGNED_PROFITABLE"
836 +  if [[ "x$HAVE_GAS" = "xyes" ]]; then
837 +    ASM_OPTIMIZATIONS="x86-64"
838 +    DEFINES="$DEFINES -DX86_64_ASSEMBLY -DOPTIMIZED_FLAGS"
839 +  fi
840   elif [[ "x$HAVE_GCC27" = "xyes" -a "x$HAVE_SPARC" = "xyes" -a "x$HAVE_GAS" = "xyes" ]]; then
841    dnl SPARC CPU
842    case "$target_os" in
# Line 1083 | Line 1093 | if [[ "x$HAVE_GCC27" = "xyes" ]]; then
1093    CXXFLAGS=`echo $CXXFLAGS | sed -e 's/-g//g'`
1094   fi
1095  
1096 < dnl Or if we have -Ofast
1097 < if [[ "x$HAVE_OFAST" = "xyes" ]]; then
1098 <  CFLAGS="`echo $CFLAGS | sed -e 's/-g//g'` -Ofast"
1099 <  CXXFLAGS="`echo $CXXFLAGS | sed -e 's/-g//g'` -Ofast"
1096 > dnl Or if we have -IPA (MIPSPro compilers)
1097 > if [[ "x$HAVE_IPA" = "xyes" ]]; then
1098 >  CFLAGS="`echo $CFLAGS | sed -e 's/-g//g'` -O3 -OPT:Olimit=0 -IPA"
1099 >  CXXFLAGS="`echo $CXXFLAGS | sed -e 's/-g//g'` -O3 -OPT:Olimit=0 -IPA"
1100    CXXFLAGS="-LANG:std $CXXFLAGS"
1101 <  LDFLAGS="$LDFLAGS -ipa"
1101 >  LDFLAGS="$LDFLAGS -O3 -OPT:Olimit=0 -IPA"
1102   fi
1103  
1104   dnl Generate Makefile.
# Line 1096 | Line 1106 | AC_SUBST(DEFINES)
1106   AC_SUBST(SYSSRCS)
1107   AC_SUBST(CPUINCLUDES)
1108   AC_SUBST(CPUSRCS)
1109 < AC_OUTPUT(Makefile)
1109 > AC_CONFIG_FILES([Makefile])
1110 > AC_OUTPUT
1111  
1112   dnl Print summary.
1113   echo

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines