/[gxemul]/trunk/configure
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/configure

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 22 by dpavlin, Mon Oct 8 16:19:37 2007 UTC revision 32 by dpavlin, Mon Oct 8 16:20:58 2007 UTC
# Line 27  Line 27 
27  #  SUCH DAMAGE.  #  SUCH DAMAGE.
28  #  #
29  #  #
30  #  $Id: configure,v 1.198 2006/02/18 13:15:20 debug Exp $  #  $Id: configure,v 1.235 2006/10/28 13:04:37 debug Exp $
31  #  #
32  #  This is a minimal configure script, hardcoded for GXemul. This script  #  This is a minimal configure script, hardcoded for GXemul. This script
33  #  figures out which compiler flags will work, and creates Makefiles in  #  figures out which compiler flags will work, and creates Makefiles in
# Line 47  Line 47 
47  #    o)  special hacks for some OSes  #    o)  special hacks for some OSes
48  #    o)  which compiler to use  (overridden by setting CC)  #    o)  which compiler to use  (overridden by setting CC)
49  #    o)  which compiler flags to use  (overridden by setting CFLAGS)  #    o)  which compiler flags to use  (overridden by setting CFLAGS)
50  #    o)  X11 flags and libraries  (TODO: should be possible to override)  #    o)  X11 flags and libraries  (TODO: should be possible to override
51  #    o)  binary translation (on supported platforms)  #        via command line options?)
52  #  #
53  #  TODO:  #
54  #    o)  X11 libs and includes via command line options?  #  The general philosophy regarding command line switches is that anything
55    #  which can be incorporated into the program as a runtime command line option
56    #  should be, instead of requiring a recompile.
57  #  #
58  ###############################################################################  ###############################################################################
59    
# Line 59  Line 61 
61  X=`basename \`pwd\`|cut -d \- -f 2-|cut -c1-2`  X=`basename \`pwd\`|cut -d \- -f 2-|cut -c1-2`
62  if [ z"$X" = z0. ]; then  if [ z"$X" = z0. ]; then
63          #  Stable:          #  Stable:
64            ENABLEALPHA=YES
65          ENABLEARM=YES          ENABLEARM=YES
66          ENABLEMIPS=YES          ENABLEMIPS=YES
67          ENABLEPPC=YES          ENABLEPPC=YES
68            ENABLESH=YES
69  else  else
70          #  Development:          #  Development:
71          UNSTABLE=YES          UNSTABLE=YES
         DYNTRANSBACKEND=NO #YES  
72          ENABLEALPHA=YES          ENABLEALPHA=YES
73          ENABLEARM=YES          ENABLEARM=YES
74          ENABLEAVR=YES          ENABLEAVR=YES
75            ENABLEAVR32=YES
76          ENABLEHPPA=YES          ENABLEHPPA=YES
77          ENABLEI960=YES          ENABLEI960=YES
78          ENABLEIA64=YES          ENABLEIA64=YES
79          ENABLEM68K=YES          ENABLEM68K=YES
80          ENABLEMIPS=YES          ENABLEMIPS=YES
         NEWMIPS=NO  
81          ENABLEPPC=YES          ENABLEPPC=YES
82            ENABLERCA180X=YES
83          ENABLESH=YES          ENABLESH=YES
84          ENABLESPARC=YES          ENABLESPARC=YES
85            ENABLETRANSPUTER=YES
86          ENABLEX86=YES          ENABLEX86=YES
87  fi  fi
88    
89  if [ z"$UNSTABLE" = zYES ]; then  if [ z"$UNSTABLE" = zYES ]; then
90          printf "###  DEVELOPMENT (UNSTABLE)\n\n"          printf "###\n###  DEVELOPMENT (UNSTABLE)\n###\n\n"
91  fi  fi
92    
93  if [ z"$*" != z ]; then  if [ z"$*" != z ]; then
# Line 90  if [ z"$*" != z ]; then Line 95  if [ z"$*" != z ]; then
95          for a in $*; do          for a in $*; do
96                  if [ z$a = z--disable-x ]; then                  if [ z$a = z--disable-x ]; then
97                          NOX11=YES                          NOX11=YES
                 else if [ z$a = z--always32 ]; then  
                         ALWAYS32=YES  
                 else if [ z$a = z--tracenull ]; then  
                         TRACENULL=YES  
                 else if [ z$a = z--disable-bintrans ]; then  
                         NOBINTRANS=YES  
                 else if [ z$a = z--enable-bintrans ]; then  
                         NOBINTRANS=NO  
                 else if [ z$a = z--disable-mips16 ]; then  
                         MIPS16=NO  
                 else if [ z$a = z--enable-mips16 ]; then  
                         MIPS16=YES  
                 else if [ z$a = z--disable-dyntransbackend ]; then  
                         DYNTRANSBACKEND=NO  
                 else if [ z$a = z--enable-dyntransbackend ]; then  
                         DYNTRANSBACKEND=YES  
                 else if [ z$a = z--disable-delays ]; then  
                         DELAYS=NO  
                 else if [ z$a = z--enable-delays ]; then  
                         DELAYS=YES  
                 else if [ z$a = z--disable-caches ]; then  
                         CACHES=NO  
                 else if [ z$a = z--enable-caches ]; then  
                         CACHES=YES  
                 else if [ z$a = z--disable-newmips ]; then  
                         NEWMIPS=NO  
                 else if [ z$a = z--enable-newmips ]; then  
                         NEWMIPS=YES  
                 else if [ z$a = z--disable-1k-pages ]; then  
                         ONEKPAGE=NO  
                 else if [ z$a = z--enable-1k-pages ]; then  
                         ONEKPAGE=YES  
98                  else if [ z$a = z--help ]; then                  else if [ z$a = z--help ]; then
99                          echo "usage: $0 [options]"                          printf "usage: $0 [options]\n\n"
100                            echo "  --disable-x         don't include X11 support,"\
101                          printf "\nGeneral options:\n\n"                              "even if the host supports it"
102                            echo
                         echo "  --disable-bintrans  configure without the" \  
                             "old binary translation subsystem,"  
                         echo "                      even if the host" \  
                             "supports it"  
                         echo "  --disable-x         don't include X11 support"  
   
                         printf "\nDevelopment (debug) options:\n\n"  
   
                         echo "  --always32         enable ALWAYS_SIGNEXTEND_32"\  
                             "(for hunting down 32-bit bugs)"  
                         printf "  --enable-caches    enable cache emulation"  
                         printf " (BUGGY)\n"  
                         echo "  --enable-delays    enable instruction" \  
                             "latency/delay emulation"  
   
                         if [ z$DYNTRANSBACKEND = zYES ]; then  
                                 printf "  --disable-dyntransbackend  disable "  
                         else  
                                 printf "  --enable-dyntransbackend  enable"  
                         fi  
                         printf "dyntrans backend\n"  
   
                         echo "  --enable-mips16    enable MIPS16 support"  
                         echo "  --enable-newmips   use new MIPS dyntrans code"  
                         #printf "  --enable-1k-pages  allow 1KB dyntrans pages"  
                         #printf " (default: 4KB)\n"  
   
                         printf "\n(Pretty much all of these options are only"  
                         printf " meaningful during the development of\nthe"  
                         printf " emulator, and should not be used when "  
                         printf "compiling a stable version.)\n"  
103                          exit                          exit
104                  else                  else
105                          echo "Invalid option: $a"                          echo "Invalid option: $a"
106                          echo "Run  $0 --help  to get a list of" \                          echo "Run  $0 --help  to get a list of" \
107                              "available options."                              "available options."
108                          exit                          exit
                 fi; fi; fi; fi; fi; fi; fi; fi; fi; fi; fi; fi; fi; fi; fi; fi  
109                  fi; fi                  fi; fi
110          done          done
111  fi  fi
# Line 195  else Line 136  else
136  fi  fi
137    
138    
139    if [ z"$UNSTABLE" = zYES ]; then
140            printf "#define UNSTABLE_DEVEL\n" >> config.h
141    fi
142    
143    
144  ZZ=`echo compiled on \`uname\`/\`uname -m\`, \`date\``  ZZ=`echo compiled on \`uname\`/\`uname -m\`, \`date\``
145  printf "#define COMPILE_DATE \"$ZZ\"\n" >> config.h  printf "#define COMPILE_DATE \"$ZZ\"\n" >> config.h
146    
147    
148    
149  #  Support for various CPU types:  #  Support for various CPU types:
 if [ z$MIPS16 = zYES ]; then  
         printf 'Enabling MIPS16 support.  '  
         printf 'NOTE: MIPS16 support is not really working yet.\n'  
         printf "#define ENABLE_MIPS16\n" >> config.h  
 fi  
150  if [ z$ENABLEALPHA = zYES ]; then  if [ z$ENABLEALPHA = zYES ]; then
151          printf "#define ENABLE_ALPHA\n" >> config.h          printf "#define ENABLE_ALPHA\n" >> config.h
152          CPU_ARCHS="$CPU_ARCHS cpu_alpha.o cpu_alpha_palcode.o"          CPU_ARCHS="$CPU_ARCHS cpu_alpha.o cpu_alpha_palcode.o memory_alpha.o"
153          CPU_TOOLS="$CPU_TOOLS generate_alpha_misc"          CPU_TOOLS="$CPU_TOOLS generate_alpha_misc"
154  fi  fi
155  if [ z$ENABLEARM = zYES ]; then  if [ z$ENABLEARM = zYES ]; then
# Line 230  if [ z$ENABLEAVR = zYES ]; then Line 171  if [ z$ENABLEAVR = zYES ]; then
171          printf "#define ENABLE_AVR\n" >> config.h          printf "#define ENABLE_AVR\n" >> config.h
172          CPU_ARCHS="$CPU_ARCHS cpu_avr.o"          CPU_ARCHS="$CPU_ARCHS cpu_avr.o"
173  fi  fi
174    if [ z$ENABLEAVR32 = zYES ]; then
175            printf "#define ENABLE_AVR32\n" >> config.h
176            CPU_ARCHS="$CPU_ARCHS cpu_avr32.o"
177    fi
178  if [ z$ENABLEHPPA = zYES ]; then  if [ z$ENABLEHPPA = zYES ]; then
179          printf "#define ENABLE_HPPA\n" >> config.h          printf "#define ENABLE_HPPA\n" >> config.h
180          CPU_ARCHS="$CPU_ARCHS cpu_hppa.o"          CPU_ARCHS="$CPU_ARCHS cpu_hppa.o"
# Line 248  if [ z$ENABLEM68K = zYES ]; then Line 193  if [ z$ENABLEM68K = zYES ]; then
193  fi  fi
194  if [ z$ENABLEMIPS = zYES ]; then  if [ z$ENABLEMIPS = zYES ]; then
195          printf "#define ENABLE_MIPS\n" >> config.h          printf "#define ENABLE_MIPS\n" >> config.h
196          if [ z$NEWMIPS = zYES ]; then          CPU_ARCHS="$CPU_ARCHS cpu_mips.o cpu_mips_coproc.o "
197                  echo 'Enabling the _EXPERIMENTAL_ MIPS dyntrans code.'          CPU_ARCHS="$CPU_ARCHS cpu_mips_instr_unaligned.o"
198                  printf "#define EXPERIMENTAL_NEWMIPS\n" >> config.h          CPU_TOOLS="$CPU_TOOLS generate_mips_loadstore"
         fi  
199  fi  fi
200  if [ z$ENABLEPPC = zYES ]; then  if [ z$ENABLEPPC = zYES ]; then
201          printf "#define ENABLE_PPC\n" >> config.h          printf "#define ENABLE_PPC\n" >> config.h
202          CPU_ARCHS="$CPU_ARCHS cpu_ppc.o"          CPU_ARCHS="$CPU_ARCHS cpu_ppc.o"
203          CPU_TOOLS="$CPU_TOOLS generate_ppc_loadstore"          CPU_TOOLS="$CPU_TOOLS generate_ppc_loadstore"
204  fi  fi
205    if [ z$ENABLERCA180X = zYES ]; then
206            printf "#define ENABLE_RCA180X\n" >> config.h
207            CPU_ARCHS="$CPU_ARCHS cpu_rca180x.o"
208    fi
209  if [ z$ENABLESH = zYES ]; then  if [ z$ENABLESH = zYES ]; then
210          printf "#define ENABLE_SH\n" >> config.h          printf "#define ENABLE_SH\n" >> config.h
211          CPU_ARCHS="$CPU_ARCHS cpu_sh.o"          CPU_ARCHS="$CPU_ARCHS cpu_sh.o memory_sh.o"
212  fi  fi
213  if [ z$ENABLESPARC = zYES ]; then  if [ z$ENABLESPARC = zYES ]; then
214          printf "#define ENABLE_SPARC\n" >> config.h          printf "#define ENABLE_SPARC\n" >> config.h
215          CPU_ARCHS="$CPU_ARCHS cpu_sparc.o"          CPU_ARCHS="$CPU_ARCHS cpu_sparc.o memory_sparc.o"
216            CPU_TOOLS="$CPU_TOOLS generate_sparc_loadstore"
217    fi
218    if [ z$ENABLETRANSPUTER = zYES ]; then
219            printf "#define ENABLE_TRANSPUTER\n" >> config.h
220            CPU_ARCHS="$CPU_ARCHS cpu_transputer.o"
221  fi  fi
222  if [ z$ENABLEX86 = zYES ]; then  if [ z$ENABLEX86 = zYES ]; then
223          printf "#define ENABLE_X86\n" >> config.h          printf "#define ENABLE_X86\n" >> config.h
# Line 272  if [ z$ENABLEX86 = zYES ]; then Line 225  if [ z$ENABLEX86 = zYES ]; then
225  fi  fi
226    
227    
 #  Instruction delay/latency emulation:  
 if [ z$DELAYS = zYES ]; then  
         echo 'Enabling Instruction delay/latency emulation.'  
         printf "#define ENABLE_INSTRUCTION_DELAYS\n" >> config.h  
 fi  
   
   
 #  Development option: ALWAYS_SIGNEXTEND_32  
 if [ z$ALWAYS32 = zYES ]; then  
         echo 'Enabling ALWAYS_SIGNEXTEND_32. (NOTE:' \  
             'This slows down everything.)'  
         printf "#define ALWAYS_SIGNEXTEND_32\n" >> config.h  
 fi  
   
   
 #  1KB page emulation:  
 if [ z$ONEKPAGE = zYES ]; then  
         echo '1 KB pages: not yet.'  
         exit  
         echo 'Enabling 1 KB page dyntrans support. (NOTE:' \  
             'This slows down everything.)'  
         printf "#define ONEKPAGE\n" >> config.h  
 fi  
   
   
 #  Cache emulation:  
 if [ z$CACHES = zYES ]; then  
         echo 'Enabling Cache emulation. (EXPERIMENTAL and BUGGY)'  
         printf "#define ENABLE_CACHE_EMULATION\n" >> config.h  
   
         if [ z$DELAYS != zYES ]; then  
                 printf 'WARNING: Cache emulation without instruction '  
                 printf 'delay/latency emulation\n'  
                 printf '         (--delays) will not produce correct '  
                 printf 'cache miss penalties and such.\n'  
         fi  
   
         printf "\nNOTE: Cache emulation enabled, but right now it triggers "  
         printf "weird bugs in the\n      emulator. You have been warned.\n\n"  
 fi  
   
   
228  ###############################################################################  ###############################################################################
229  #  #
230  #  Special hacks for some host OSes:  #  Special hacks for some host OSes:
# Line 774  fi Line 685  fi
685  rm -f _testprog _testprog.error _testprog.stdout  rm -f _testprog _testprog.error _testprog.stdout
686    
687    
688  #  -g  #  -g, for development builds
689  printf "checking whether -g can be used... "  if [ z"$UNSTABLE" = zYES ]; then
690  if [ z"$COMPAQCC" = zYES ]; then          printf "checking whether -g can be used... "
691          printf "skipping\n"          if [ z"$COMPAQCC" = zYES ]; then
692  else                  printf "skipping\n"
         $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"  
693          else          else
694                    $CC $CFLAGS -g _testprog.c -o _testprog > _testprog.stdout 2>&1
695                    cat _testprog.stdout >> _testprog.error
696                    if [ -x _testprog ]; then
697                            CFLAGS="-g $CFLAGS"
698                            printf "yes\n"
699                    else
700                  printf "no\n"                  printf "no\n"
701                            fi
702          fi          fi
703            rm -f _testprog _testprog.error _testprog.stdout
704  fi  fi
 rm -f _testprog _testprog.error _testprog.stdout  
705    
706    
707  #  -lrt for nanosleep?  #  -lrt for nanosleep?
# Line 925  printf "#include <stdlib.h> Line 838  printf "#include <stdlib.h>
838  #include <stdio.h>  #include <stdio.h>
839  #include <sys/types.h>  #include <sys/types.h>
840  int main(int argc, char *argv[]) { fseeko(NULL, 0, 0); return 0;}\n" > _tests.c  int main(int argc, char *argv[]) { fseeko(NULL, 0, 0); return 0;}\n" > _tests.c
841  $CC $CFLAGS _tests.c -o _tests 2> /dev/null  $CC $CFLAGS $CWARNINGS _tests.c -o _tests 2> /dev/null
842  if [ ! -x _tests ]; then  if [ ! -x _tests ]; then
843          printf "missing\n"          # Try with _LARGEFILE_SOURCE (hack to make fseeko
844          printf "WARNING! fseeko missing from libc. Using a hack, "          # work on 64-bit Linux):
845          printf "which probably doesn't work.\n"          $CC $CFLAGS -D_LARGEFILE_SOURCE $CWARNINGS _tests.c -o _tests 2> /dev/null
846          printf "#define HACK_FSEEKO\n" >> config.h          if [ ! -x _tests ]; then
847                    printf "missing\n"
848                    printf "WARNING! fseeko missing from libc. Using a hack, "
849                    printf "which probably doesn't work.\n"
850                    printf "#define HACK_FSEEKO\n" >> config.h
851            else
852                    printf "using -D_LARGEFILE_SOURCE hack\n"
853                    CFLAGS="$CFLAGS -D_LARGEFILE_SOURCE"
854            fi
855  else  else
856          printf "found\n"          printf "found\n"
857  fi  fi
# Line 987  fi Line 908  fi
908  rm -f _tests.[co] _tests  rm -f _tests.[co] _tests
909    
910    
911    #  Check for PRIx64 in inttypes.h:
912    printf "checking for PRIx64 in inttypes.h... "
913    printf "#include <inttypes.h>\nint main(int argc, char *argv[])\n
914    {\n#ifdef PRIx64\nreturn 0;\n#else\nreturn 1;\n#endif\n}\n" > _testpri.c
915    $CC $CFLAGS _testpri.c -o _testpri 2> /dev/null
916    if [ ! -x _testpri ]; then
917            printf "\nERROR! COULD NOT COMPILE PRIx64 TEST PROGRAM AT ALL!\n"
918            exit
919    else
920            if ./_testpri; then
921                    printf "yes\n"
922            else
923                    printf "no, using an ugly hack instead, "
924                    printf "#define NO_C99_PRINTF_DEFINES\n" >> config.h
925    
926                    # Try llx first:
927                    printf "#include <stdio.h>\n#include <inttypes.h>\nint main(int argc, char *argv[]){
928                        printf(\"%%llx\\\n\", (int64_t)128);return 0;}\n" > _testpri.c
929                    rm -f _testpri
930                    $CC $CFLAGS $CWARNINGS _testpri.c -o _testpri 2> /dev/null
931                    if [ z`./_testpri` = z80 ]; then
932                            printf "PRIx64=llx\n"
933                            printf "#define NO_C99_64BIT_LONGLONG\n" >> config.h
934                    else
935                            # Try lx too:
936                            printf "#include <stdio.h>\n#include <inttypes.h>\nint main(int argc, char *argv[]){
937                                printf(\"%%lx\\\n\", (int64_t)128);return 0;}\n" > _testpri.c
938                            rm -f _testpri
939                            $CC $CFLAGS $CWARNINGS _testpri.c -o _testpri 2> /dev/null
940                            if [ z`./_testpri` = z80 ]; then
941                                    printf "PRIx64=lx\n"
942                            else
943                                    printf "\nFailed, neither lx nor llx worked!\n"
944                                    exit
945                            fi
946                    fi
947            fi
948    fi
949    rm -f _testpri.c _testpri
950    
951    
952  #  Check for 64-bit off_t:  #  Check for 64-bit off_t:
953  printf "checking for 64-bit off_t... "  printf "checking for 64-bit off_t... "
954  printf "#include <stdio.h>\n#include <inttypes.h>\n#include <sys/types.h>\n  printf "#include <stdio.h>\n#include <inttypes.h>\n#include <sys/types.h>\n
# Line 1078  rm -f _testuint.c _testuint Line 1040  rm -f _testuint.c _testuint
1040    
1041    
1042  ###############################################################################  ###############################################################################
 #  
 #  OLD binary translation (BINTRANS):  
 #  
 ###############################################################################  
   
 printf "checking for bintrans backend... "  
   
 BINTRANS=NO  
   
 if [ z$ENABLEMIPS = zNO ]; then  
         printf "NO!\nTEMPORARY HACK/PROBLEM: Disabling bintrans for now,\n"  
         printf "until things have stabilized.\n"  
         NOBINTRANS=YES  
 fi  
   
 if [ z$NOBINTRANS = zYES ]; then  
         printf "disabled\n"  
 else  
         #  Alpha:  
         if [ z"`uname -m`" = zalpha ]; then  
                 printf "#define ALPHA\n" >> config.h  
                 printf "#define BINTRANS\n" >> config.h  
                 printf "Alpha\n"  
                 BINTRANS=YES  
         fi  
   
         #  x86:  
         if `uname -m|grep -v 64|grep -q 86`; then  
                 printf "#define I386\n" >> config.h  
                 printf "#define BINTRANS\n" >> config.h  
                 printf "i386\n"  
                 BINTRANS=YES  
         fi  
   
 # MIPS not yet  
 #       #  MIPS:  
 #       if [ z"`uname -m`" = zmips ]; then  
 #               printf "#define MIPS\n" >> config.h  
 #               printf "#define BINTRANS\n" >> config.h  
 #               printf "MIPS\n"  
 #               BINTRANS=YES  
 #       fi  
   
 #       #  UltraSPARC:  
 #       if [ z"`uname -m`" = zsun4u ]; then  
 #               printf "#define SPARCV9\n" >> config.h  
 #               printf "#define BINTRANS\n" >> config.h  
 #               printf "SPARC V9\n"  
 #               BINTRANS=YES  
 #       else  
 #               if [ z"`uname -m`" = zsparc64 ]; then  
 #                       printf "#define SPARCV9\n" >> config.h  
 #                       printf "#define BINTRANS\n" >> config.h  
 #                       printf "SPARC V9\n"  
 #                       BINTRANS=YES  
 #               fi  
 #       fi  
   
         if [ z$BINTRANS = zNO ]; then  
                 printf "not supported yet on this arch\n"  
         fi  
 fi  
   
   
 ###############################################################################  
 #  
 #  Dyntrans recompilation (native backend) support:  
 #  
 ###############################################################################  
   
 if [ z$DYNTRANSBACKEND = zYES ]; then  
         printf "Dyntrans: Not yet.\n"  
         exit  
   
         printf "checking for dyntrans backend... "  
         DBFOUND=NO  
   
         #  Alpha:  
         if [ z"`uname -m`" = zalpha ]; then  
                 printf "#define DYNTRANS_BACKEND_ALPHA\n" >> config.h  
                 printf "Alpha\n"  
                 CPU_BACKENDS="$CPU_BACKENDS backend_alpha.o"  
                 DBFOUND=YES  
         fi  
   
         #  AMD64:  
         #  TODO  
   
 #       #  UltraSPARC:  
 #       if [ z"`uname -m`" = zsun4u ]; then  
 #               printf "#define DYNTRANS_BACKEND_SPARC64\n" >> config.h  
 #               printf "UltraSPARC\n"  
 #               CPU_BACKENDS="$CPU_BACKENDS backend_sparc.o"  
 #               DBFOUND=YES  
 #       fi  
 #       if [ z"`uname -m`" = zsparc64 ]; then  
 #               printf "#define DYNTRANS_BACKEND_SPARC64\n" >> config.h  
 #               printf "UltraSPARC\n"  
 #               CPU_BACKENDS="$CPU_BACKENDS backend_sparc.o"  
 #               DBFOUND=YES  
 #       fi  
   
         #  x86:  
         if `uname -m|grep -q -v 64|grep -q 86`; then  
                 printf "#define DYNTRANS_BACKEND_I386\n" >> config.h  
                 printf "i386\n"  
                 CPU_BACKENDS="$CPU_BACKENDS backend_i386.o"  
                 DBFOUND=YES  
         fi  
   
         if [ z$DBFOUND = zYES ]; then  
                 printf "#define DYNTRANS_BACKEND\n" >> config.h  
         else  
                 printf "not supported yet on this arch ("  
                 printf `uname -m`  
                 printf ")\n"  
         fi  
 fi  
   
   
 ###############################################################################  
1043    
1044  #  Host byte order?  #  Host byte order?
1045  printf "checking host endianness... "  printf "checking host endianness... "
# Line 1239  echo "DINCLUDE=$DINCLUDE" >> _Makefile.h Line 1080  echo "DINCLUDE=$DINCLUDE" >> _Makefile.h
1080  echo "CC=$CC" >> _Makefile.header  echo "CC=$CC" >> _Makefile.header
1081  echo "OTHERLIBS=$OTHERLIBS" >> _Makefile.header  echo "OTHERLIBS=$OTHERLIBS" >> _Makefile.header
1082  echo "CPU_ARCHS=$CPU_ARCHS" >> _Makefile.header  echo "CPU_ARCHS=$CPU_ARCHS" >> _Makefile.header
 echo "CPU_BACKENDS=$CPU_BACKENDS" >> _Makefile.header  
1083  echo "CPU_TOOLS=$CPU_TOOLS" >> _Makefile.header  echo "CPU_TOOLS=$CPU_TOOLS" >> _Makefile.header
1084  echo "" >> _Makefile.header  echo "" >> _Makefile.header
1085    
1086    
1087  #  Create the Makefiles:  #  Create the Makefiles:
1088  D=". src src/include src/cpus src/devices src/devices/fonts"  D=". src src/include src/cpus src/debugger src/devices src/devices/fonts"
1089  D="$D src/machines src/promemul"  D="$D src/machines src/net src/promemul"
1090  for a in $D; do  for a in $D; do
1091          echo "creating $a/Makefile"          echo "creating $a/Makefile"
1092          touch $a/Makefile          touch $a/Makefile

Legend:
Removed from v.22  
changed lines
  Added in v.32

  ViewVC Help
Powered by ViewVC 1.1.26