--- trunk/configure 2007/10/08 16:20:26 28 +++ trunk/configure 2007/10/08 16:20:58 32 @@ -27,7 +27,7 @@ # SUCH DAMAGE. # # -# $Id: configure,v 1.226 2006/07/20 21:52:59 debug Exp $ +# $Id: configure,v 1.235 2006/10/28 13:04:37 debug Exp $ # # This is a minimal configure script, hardcoded for GXemul. This script # figures out which compiler flags will work, and creates Makefiles in @@ -65,18 +65,21 @@ ENABLEARM=YES ENABLEMIPS=YES ENABLEPPC=YES + ENABLESH=YES else # Development: UNSTABLE=YES ENABLEALPHA=YES ENABLEARM=YES ENABLEAVR=YES + ENABLEAVR32=YES ENABLEHPPA=YES ENABLEI960=YES ENABLEIA64=YES ENABLEM68K=YES ENABLEMIPS=YES ENABLEPPC=YES + ENABLERCA180X=YES ENABLESH=YES ENABLESPARC=YES ENABLETRANSPUTER=YES @@ -168,6 +171,10 @@ printf "#define ENABLE_AVR\n" >> config.h CPU_ARCHS="$CPU_ARCHS cpu_avr.o" fi +if [ z$ENABLEAVR32 = zYES ]; then + printf "#define ENABLE_AVR32\n" >> config.h + CPU_ARCHS="$CPU_ARCHS cpu_avr32.o" +fi if [ z$ENABLEHPPA = zYES ]; then printf "#define ENABLE_HPPA\n" >> config.h CPU_ARCHS="$CPU_ARCHS cpu_hppa.o" @@ -195,13 +202,17 @@ CPU_ARCHS="$CPU_ARCHS cpu_ppc.o" CPU_TOOLS="$CPU_TOOLS generate_ppc_loadstore" fi +if [ z$ENABLERCA180X = zYES ]; then + printf "#define ENABLE_RCA180X\n" >> config.h + CPU_ARCHS="$CPU_ARCHS cpu_rca180x.o" +fi if [ z$ENABLESH = zYES ]; then printf "#define ENABLE_SH\n" >> config.h - CPU_ARCHS="$CPU_ARCHS cpu_sh.o" + CPU_ARCHS="$CPU_ARCHS cpu_sh.o memory_sh.o" fi if [ z$ENABLESPARC = zYES ]; then printf "#define ENABLE_SPARC\n" >> config.h - CPU_ARCHS="$CPU_ARCHS cpu_sparc.o" + CPU_ARCHS="$CPU_ARCHS cpu_sparc.o memory_sparc.o" CPU_TOOLS="$CPU_TOOLS generate_sparc_loadstore" fi if [ z$ENABLETRANSPUTER = zYES ]; then @@ -214,16 +225,6 @@ fi -# Cache emulation: -if [ z$CACHES = zYES ]; then - echo 'Enabling Cache emulation. (EXPERIMENTAL and BUGGY)' - printf "#define ENABLE_CACHE_EMULATION\n" >> config.h - - printf "\nNOTE: Cache emulation enabled, but right now it triggers " - printf "weird bugs in the\n emulator. You have been warned.\n\n" -fi - - ############################################################################### # # Special hacks for some host OSes: @@ -684,21 +685,23 @@ rm -f _testprog _testprog.error _testprog.stdout -# -g -printf "checking whether -g can be used... " -if [ z"$COMPAQCC" = zYES ]; then - printf "skipping\n" -else - $CC $CFLAGS -g _testprog.c -o _testprog > _testprog.stdout 2>&1 - cat _testprog.stdout >> _testprog.error - if [ -x _testprog ]; then - CFLAGS="-g $CFLAGS" - printf "yes\n" +# -g, for development builds +if [ z"$UNSTABLE" = zYES ]; then + printf "checking whether -g can be used... " + if [ z"$COMPAQCC" = zYES ]; then + printf "skipping\n" else + $CC $CFLAGS -g _testprog.c -o _testprog > _testprog.stdout 2>&1 + cat _testprog.stdout >> _testprog.error + if [ -x _testprog ]; then + CFLAGS="-g $CFLAGS" + printf "yes\n" + else printf "no\n" + fi fi + rm -f _testprog _testprog.error _testprog.stdout fi -rm -f _testprog _testprog.error _testprog.stdout # -lrt for nanosleep? @@ -1083,7 +1086,7 @@ # Create the Makefiles: D=". src src/include src/cpus src/debugger src/devices src/devices/fonts" -D="$D src/machines src/promemul doc" +D="$D src/machines src/net src/promemul" for a in $D; do echo "creating $a/Makefile" touch $a/Makefile