aboutsummaryrefslogtreecommitdiffstats
path: root/config.bat
diff options
context:
space:
mode:
authorEli Zaretskii2010-05-15 10:51:52 +0300
committerEli Zaretskii2010-05-15 10:51:52 +0300
commit78248b76e396d96a7c7c25ae91296e31fee558da (patch)
tree0fa1e9115334a4f862ce5d400d6106251d76fbaa /config.bat
parentdbd3f7231ad821f0423babf0dcee04f4d16c2e5b (diff)
downloademacs-78248b76e396d96a7c7c25ae91296e31fee558da.tar.gz
emacs-78248b76e396d96a7c7c25ae91296e31fee558da.zip
config.bat: Remove support for DJGPP v1.x.
Diffstat (limited to 'config.bat')
-rw-r--r--config.bat27
1 files changed, 4 insertions, 23 deletions
diff --git a/config.bat b/config.bat
index 0482d4f15f0..953c5d64b12 100644
--- a/config.bat
+++ b/config.bat
@@ -23,7 +23,7 @@ rem ----------------------------------------------------------------------
23rem YOU'LL NEED THE FOLLOWING UTILITIES TO MAKE EMACS: 23rem YOU'LL NEED THE FOLLOWING UTILITIES TO MAKE EMACS:
24rem 24rem
25rem + msdos version 3 or better. 25rem + msdos version 3 or better.
26rem + DJGPP version 1.12maint1 or later (version 2.03 or later recommended). 26rem + DJGPP version 2.0 or later (version 2.03 or later recommended).
27rem + make utility that allows breaking of the 128 chars limit on 27rem + make utility that allows breaking of the 128 chars limit on
28rem command lines. ndmake (as of version 4.5) won't work due to a 28rem command lines. ndmake (as of version 4.5) won't work due to a
29rem line length limit. The make that comes with DJGPP does work (and is 29rem line length limit. The make that comes with DJGPP does work (and is
@@ -125,11 +125,10 @@ rm -f junk.c junk junk.exe
125Echo To compile 'Emacs' under MS-DOS you MUST have DJGPP installed! 125Echo To compile 'Emacs' under MS-DOS you MUST have DJGPP installed!
126Goto End 126Goto End
127:go32Ok 127:go32Ok
128set djgpp_ver=1 128set djgpp_ver=2
129If ErrorLevel 20 set djgpp_ver=2 129If Not ErrorLevel 20 Echo To build 'Emacs' you need DJGPP v2.0 or later!
130If Not ErrorLevel 20 Goto End
130rm -f junk.c junk junk.exe 131rm -f junk.c junk junk.exe
131rem The v1.x build does not need djecho
132if "%DJGPP_VER%" == "1" Goto djechoOk
133rem DJECHO is used by the top-level Makefile in the v2.x build 132rem DJECHO is used by the top-level Makefile in the v2.x build
134Echo Checking whether 'djecho' is available... 133Echo Checking whether 'djecho' is available...
135redir -o Nul -eo djecho -o junk.$$$ foo 134redir -o Nul -eo djecho -o junk.$$$ foo
@@ -159,12 +158,7 @@ sed -e '' config.in > config.tmp
159if "%X11%" == "" goto src4 158if "%X11%" == "" goto src4
160sed -f ../msdos/sed2x.inp <config.in >config.tmp 159sed -f ../msdos/sed2x.inp <config.in >config.tmp
161:src4 160:src4
162if "%DJGPP_VER%" == "2" Goto src41
163sed -f ../msdos/sed2.inp <config.tmp >config.h2
164goto src42
165:src41
166sed -f ../msdos/sed2v2.inp <config.tmp >config.h2 161sed -f ../msdos/sed2v2.inp <config.tmp >config.h2
167:src42
168Rem See if DECL_ALIGN can be supported with this GCC 162Rem See if DECL_ALIGN can be supported with this GCC
169rm -f junk.c junk.o junk junk.exe 163rm -f junk.c junk.o junk junk.exe
170echo struct { int i; char *p; } __attribute__((__aligned__(8))) foo; >junk.c 164echo struct { int i; char *p; } __attribute__((__aligned__(8))) foo; >junk.c
@@ -198,12 +192,7 @@ if exist dir.h ren dir.h vmsdir.h
198rem Create "makefile" from "makefile.in". 192rem Create "makefile" from "makefile.in".
199rm -f Makefile junk.c 193rm -f Makefile junk.c
200sed -e "1,/== start of cpp stuff ==/s@^##*[ ].*$@@" <Makefile.in >junk.c 194sed -e "1,/== start of cpp stuff ==/s@^##*[ ].*$@@" <Makefile.in >junk.c
201If "%DJGPP_VER%" == "1" Goto mfV1
202gcc -E -traditional junk.c | sed -f ../msdos/sed1v2.inp >Makefile 195gcc -E -traditional junk.c | sed -f ../msdos/sed1v2.inp >Makefile
203goto mfDone
204:mfV1
205gcc -E -traditional junk.c | sed -f ../msdos/sed1.inp >Makefile
206:mfDone
207rm -f junk.c 196rm -f junk.c
208 197
209if "%X11%" == "" goto src5 198if "%X11%" == "" goto src5
@@ -221,12 +210,7 @@ cd ..
221rem ---------------------------------------------------------------------- 210rem ----------------------------------------------------------------------
222Echo Configuring the library source directory... 211Echo Configuring the library source directory...
223cd lib-src 212cd lib-src
224If "%DJGPP_VER%" == "2" goto libsrc-v2
225sed -f ../msdos/sed3.inp <Makefile.in >Makefile
226Goto libsrc2
227:libsrc-v2
228sed -f ../msdos/sed3v2.inp <Makefile.in >Makefile 213sed -f ../msdos/sed3v2.inp <Makefile.in >Makefile
229:libsrc2
230if "%X11%" == "" goto libsrc2a 214if "%X11%" == "" goto libsrc2a
231mv Makefile makefile.tmp 215mv Makefile makefile.tmp
232sed -f ../msdos/sed3x.inp <makefile.tmp >Makefile 216sed -f ../msdos/sed3x.inp <makefile.tmp >Makefile
@@ -272,7 +256,6 @@ rem ----------------------------------------------------------------------
272Echo Configuring the main directory... 256Echo Configuring the main directory...
273If Exist .dir-locals.el update .dir-locals.el _dir-locals.el 257If Exist .dir-locals.el update .dir-locals.el _dir-locals.el
274If Exist src\.dbxinit update src/.dbxinit src/_dbxinit 258If Exist src\.dbxinit update src/.dbxinit src/_dbxinit
275If "%DJGPP_VER%" == "1" goto mainv1
276Echo Looking for the GDB init file... 259Echo Looking for the GDB init file...
277If Exist src\.gdbinit update src/.gdbinit src/_gdbinit 260If Exist src\.gdbinit update src/.gdbinit src/_gdbinit
278If Exist src\_gdbinit goto gdbinitOk 261If Exist src\_gdbinit goto gdbinitOk
@@ -287,8 +270,6 @@ goto End
287:gdbinitOk 270:gdbinitOk
288Echo Looking for the GDB init file...found 271Echo Looking for the GDB init file...found
289copy msdos\mainmake.v2 Makefile >nul 272copy msdos\mainmake.v2 Makefile >nul
290:mainv1
291If "%DJGPP_VER%" == "1" copy msdos\mainmake Makefile >nul
292rem ---------------------------------------------------------------------- 273rem ----------------------------------------------------------------------
293goto End 274goto End
294:SmallEnv 275:SmallEnv