Mercurial > emacs
comparison config.bat @ 100559:830b13990b6b
(--with-system-malloc): New option; see msdos/INSTALL for rationale.
author | Eli Zaretskii <eliz@gnu.org> |
---|---|
date | Fri, 19 Dec 2008 11:05:24 +0000 |
parents | 4d2b872f8fef |
children | 54e798f3d697 |
comparison
equal
deleted
inserted
replaced
100558:26823dad2ad9 | 100559:830b13990b6b |
---|---|
24 rem | 24 rem |
25 rem + msdos version 3 or better. | 25 rem + msdos version 3 or better. |
26 rem + DJGPP version 1.12maint1 or later (version 2.03 or later recommended). | 26 rem + DJGPP version 1.12maint1 or later (version 2.03 or later recommended). |
27 rem + make utility that allows breaking of the 128 chars limit on | 27 rem + make utility that allows breaking of the 128 chars limit on |
28 rem command lines. ndmake (as of version 4.5) won't work due to a | 28 rem command lines. ndmake (as of version 4.5) won't work due to a |
29 rem line length limit. The make that comes with DJGPP does work. | 29 rem line length limit. The make that comes with DJGPP does work (and is |
30 rem + rm and mv (from GNU file utilities). | 30 rem recommended). |
31 rem + rm, mv, and cp (from GNU file utilities). | |
31 rem + sed (you can use the port that comes with DJGPP). | 32 rem + sed (you can use the port that comes with DJGPP). |
32 rem | 33 rem |
33 rem You should be able to get all the above utilities from the DJGPP FTP | 34 rem You should be able to get all the above utilities from the DJGPP FTP |
34 rem site, ftp.delorie.com, in the directory "pub/djgpp/current/v2gnu". | 35 rem site, ftp.delorie.com, in the directory "pub/djgpp/current/v2gnu". |
35 rem ---------------------------------------------------------------------- | 36 rem ---------------------------------------------------------------------- |
36 set X11= | 37 set X11= |
37 set nodebug= | 38 set nodebug= |
38 set djgpp_ver= | 39 set djgpp_ver= |
40 set sys_malloc= | |
39 if "%1" == "" goto usage | 41 if "%1" == "" goto usage |
40 rem ---------------------------------------------------------------------- | 42 rem ---------------------------------------------------------------------- |
41 rem See if their environment is large enough. We need 28 bytes. | 43 rem See if their environment is large enough. We need 28 bytes. |
42 set $foo$=789012345678901234567 | 44 set $foo$=789012345678901234567 |
43 if not "%$foo$%" == "789012345678901234567" goto SmallEnv | 45 if not "%$foo$%" == "789012345678901234567" goto SmallEnv |
45 :again | 47 :again |
46 if "%1" == "" goto usage | 48 if "%1" == "" goto usage |
47 if "%1" == "--with-x" goto withx | 49 if "%1" == "--with-x" goto withx |
48 if "%1" == "--no-debug" goto nodebug | 50 if "%1" == "--no-debug" goto nodebug |
49 if "%1" == "msdos" goto msdos | 51 if "%1" == "msdos" goto msdos |
52 if "%1" == "--with-system-malloc" goto sysmalloc | |
50 :usage | 53 :usage |
51 echo Usage: config [--with-x] [--no-debug] msdos | 54 echo Usage: config [--no-debug] [--with-system-malloc] [--with-x] msdos |
52 echo [Read the script before you run it.] | 55 echo [Read the script before you run it.] |
53 goto end | 56 goto end |
54 rem ---------------------------------------------------------------------- | 57 rem ---------------------------------------------------------------------- |
55 :withx | 58 :withx |
56 set X11=Y | 59 set X11=Y |
57 shift | 60 shift |
58 goto again | 61 goto again |
59 rem ---------------------------------------------------------------------- | 62 rem ---------------------------------------------------------------------- |
60 :nodebug | 63 :nodebug |
61 set nodebug=Y | 64 set nodebug=Y |
65 shift | |
66 goto again | |
67 rem ---------------------------------------------------------------------- | |
68 :sysmalloc | |
69 set sys_malloc=Y | |
62 shift | 70 shift |
63 goto again | 71 goto again |
64 rem ---------------------------------------------------------------------- | 72 rem ---------------------------------------------------------------------- |
65 :msdos | 73 :msdos |
66 Echo Checking whether 'sed' is available... | 74 Echo Checking whether 'sed' is available... |
171 Echo WARNING: Therefore Emacs cannot support buffers larger than 128MB. | 179 Echo WARNING: Therefore Emacs cannot support buffers larger than 128MB. |
172 rem The following line disables DECL_ALIGN which in turn disables USE_LSB_TAG | 180 rem The following line disables DECL_ALIGN which in turn disables USE_LSB_TAG |
173 rem For details see lisp.h where it defines USE_LSB_TAG | 181 rem For details see lisp.h where it defines USE_LSB_TAG |
174 echo #define NO_DECL_ALIGN >>config.h2 | 182 echo #define NO_DECL_ALIGN >>config.h2 |
175 :alignOk | 183 :alignOk |
184 Rem See if they requested a SYSTEM_MALLOC build | |
185 if "%sys_malloc%" == "" Goto cfgDone | |
186 rm -f config.tmp | |
187 ren config.h2 config.tmp | |
188 sed -f ../msdos/sedalloc.inp <config.tmp >config.h2 | |
189 | |
190 :cfgDone | |
176 rm -f junk.c junk junk.exe | 191 rm -f junk.c junk junk.exe |
177 update config.h2 config.h >nul | 192 update config.h2 config.h >nul |
178 rm -f config.tmp config.h2 | 193 rm -f config.tmp config.h2 |
179 | 194 |
180 rem On my system dir.h gets in the way. It's a VMS file so who cares. | 195 rem On my system dir.h gets in the way. It's a VMS file so who cares. |
279 set $foo$= | 294 set $foo$= |
280 :end | 295 :end |
281 set X11= | 296 set X11= |
282 set nodebug= | 297 set nodebug= |
283 set djgpp_ver= | 298 set djgpp_ver= |
299 set sys_malloc= | |
284 | 300 |
285 goto skipArchTag | 301 goto skipArchTag |
286 arch-tag: 2d2fed23-4dc6-4006-a2e4-49daf0031f33 | 302 arch-tag: 2d2fed23-4dc6-4006-a2e4-49daf0031f33 |
287 :skipArchTag | 303 :skipArchTag |