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

Comparing BasiliskII/src/Unix/configure.in (file contents):
Revision 1.8 by cebix, 1999-10-21T13:19:21Z vs.
Revision 1.9 by cebix, 1999-10-21T15:14:41Z

# Line 189 | Line 189 | if [[ "x$SEMSRCS" != "x" ]]; then
189    SYSSRCS="$SYSSRCS $SEMSRCS"
190   fi
191  
192 < dnl Defaults for UAE CPU.
193 < CPUINCLUDES="-I../uae_cpu"
194 < CPUSRCS="../uae_cpu/basilisk_glue.cpp ../uae_cpu/memory.cpp ../uae_cpu/newcpu.cpp ../uae_cpu/readcpu.cpp ../uae_cpu/fpp.cpp cpustbl.cpp cpudefs.cpp"
195 <
196 < dnl Check for i386.
192 > dnl Check for i386 CPU.
193   HAVE_I386=no
194   AC_MSG_CHECKING(for x86 target CPU)
195   AC_EGREP_CPP(yes,
# Line 203 | Line 199 | AC_EGREP_CPP(yes,
199   #endif
200   ], [AC_MSG_RESULT(yes); HAVE_I386=yes], AC_MSG_RESULT(no))
201  
202 + dnl Check for SPARC CPU.
203 + HAVE_SPARC=no
204 + AC_MSG_CHECKING(for SPARC target CPU)
205 + AC_EGREP_CPP(yes,
206 + [
207 + #ifdef __sparc__
208 +  yes
209 + #endif
210 + ], [AC_MSG_RESULT(yes); HAVE_SPARC=yes], AC_MSG_RESULT(no))
211 +
212   dnl Check for GAS.
213   HAVE_GAS=no
214   AC_MSG_CHECKING(for GAS .p2align feature)
# Line 222 | Line 228 | AC_EGREP_CPP(yes,
228   #endif
229   ], [AC_MSG_RESULT(yes); HAVE_GCC27=yes], AC_MSG_RESULT(no))
230  
231 < dnl Set "-fomit-frame-pointer" on GCC.
231 > dnl Set "-fomit-frame-pointer" on GCC 2.7 or higher.
232   if [[ "x$HAVE_GCC27" = "xyes" ]]; then
233    CFLAGS="$CFLAGS -fomit-frame-pointer"
234    CXXFLAGS="$CXXFLAGS -fomit-frame-pointer"
235   fi
236  
237   dnl Select appropriate CPU source and REGPARAM define.
238 + CPUSRCS="cpuemu1.cpp cpuemu2.cpp cpuemu3.cpp cpuemu4.cpp cpuemu5.cpp cpuemu6.cpp cpuemu7.cpp cpuemu8.cpp"
239   if [[ "x$HAVE_GCC27" = "xyes" -a "x$HAVE_I386" = "xyes" ]]; then
240 +  dnl i386 CPU
241    DEFINES="$DEFINES -DREGPARAM=\"__attribute__((regparm(3)))\""
242    if [[ "x$HAVE_GAS" = "xyes" ]]; then
243      DEFINES="$DEFINES -DX86_ASSEMBLY"
244 <    CPUSRCS="$CPUSRCS cpufast1.s cpufast2.s cpufast3.s cpufast4.s cpufast5.s cpufast6.s cpufast7.s cpufast8.s"
237 <  else
238 <    CPUSRCS="$CPUSRCS cpuemu1.cpp cpuemu2.cpp cpuemu3.cpp cpuemu4.cpp cpuemu5.cpp cpuemu6.cpp cpuemu7.cpp cpuemu8.cpp"
244 >    CPUSRCS="cpufast1.s cpufast2.s cpufast3.s cpufast4.s cpufast5.s cpufast6.s cpufast7.s cpufast8.s"
245    fi
246 < else
247 <  CPUSRCS="$CPUSRCS cpuemu1.cpp cpuemu2.cpp cpuemu3.cpp cpuemu4.cpp cpuemu5.cpp cpuemu6.cpp cpuemu7.cpp cpuemu8.cpp"
246 > elif [[ "x$HAVE_GCC27" = "xyes" -a "x$HAVE_SPARC" = "xyes" -a "x$HAVE_GAS" = "xyes" ]]; then
247 >  dnl SPARC CPU
248 >  case "$MACHINE" in
249 >  SunOS*)
250 >    AC_MSG_CHECKING(SPARC CPU architecture)
251 >    SPARC_TYPE=`Solaris/which_sparc`
252 >    AC_MSG_RESULT($SPARC_TYPE)
253 >    case "$SPARC_TYPE" in
254 >    SPARC_V8)
255 >      DEFINES="$DEFINES -DSPARC_V8_ASSEMBLY"
256 >      CFLAGS="$CFLAGS -Wa,-Av8"
257 >      CXXFLAGS="$CXXFLAGS -Wa,-Av8"
258 >      ;;
259 >    SPARC_V9)
260 >      DEFINES="$DEFINES -DSPARC_V9_ASSEMBLY"
261 >      CFLAGS="$CFLAGS -Wa,-Av9"
262 >      CXXFLAGS="$CXXFLAGS -Wa,-Av9"
263 >      ;;
264 >    esac
265 >    ;;
266 >  esac
267   fi
268  
269 + dnl UAE CPU sources for all architectures.
270 + CPUINCLUDES="-I../uae_cpu"
271 + CPUSRCS="../uae_cpu/basilisk_glue.cpp ../uae_cpu/memory.cpp ../uae_cpu/newcpu.cpp ../uae_cpu/readcpu.cpp ../uae_cpu/fpp.cpp cpustbl.cpp cpudefs.cpp $CPUSRCS"
272 +
273   dnl Generate Makefile.
274   AC_SUBST(DEFINES)
275   AC_SUBST(STATICLIBS)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines