Mercurial > emacs
comparison config.bat @ 111571:91de9477a77a
merge trunk
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Wed, 22 Sep 2010 15:46:51 +0900 |
parents | 6efe51a23a50 |
children |
comparison
equal
deleted
inserted
replaced
111570:ffe2002d45c4 | 111571:91de9477a77a |
---|---|
36 rem ---------------------------------------------------------------------- | 36 rem ---------------------------------------------------------------------- |
37 set X11= | 37 set X11= |
38 set nodebug= | 38 set nodebug= |
39 set djgpp_ver= | 39 set djgpp_ver= |
40 set sys_malloc= | 40 set sys_malloc= |
41 set libxml= | |
41 if "%1" == "" goto usage | 42 if "%1" == "" goto usage |
42 rem ---------------------------------------------------------------------- | 43 rem ---------------------------------------------------------------------- |
43 rem See if their environment is large enough. We need 28 bytes. | 44 rem See if their environment is large enough. We need 28 bytes. |
44 set $foo$=789012345678901234567 | 45 set $foo$=789012345678901234567 |
45 if not "%$foo$%" == "789012345678901234567" goto SmallEnv | 46 if not "%$foo$%" == "789012345678901234567" goto SmallEnv |
173 Echo WARNING: Therefore Emacs cannot support buffers larger than 128MB. | 174 Echo WARNING: Therefore Emacs cannot support buffers larger than 128MB. |
174 rem The following line disables DECL_ALIGN which in turn disables USE_LSB_TAG | 175 rem The following line disables DECL_ALIGN which in turn disables USE_LSB_TAG |
175 rem For details see lisp.h where it defines USE_LSB_TAG | 176 rem For details see lisp.h where it defines USE_LSB_TAG |
176 echo #define NO_DECL_ALIGN >>config.h2 | 177 echo #define NO_DECL_ALIGN >>config.h2 |
177 :alignOk | 178 :alignOk |
179 Rem See if they have libxml2 later than v2.2.0 installed | |
180 Echo Checking whether libxml2 v2.2.1 or later is installed ... | |
181 rm -f junk.c junk.o junk junk.exe | |
182 rem Use djecho here because we need to quote brackets | |
183 djecho "#include <libxml/xmlversion.h>" >junk.c | |
184 djecho "int main()" >>junk.c | |
185 djecho "{return (LIBXML_VERSION > 20200 ? 0 : 1);}" >>junk.c | |
186 redir -o Nul -eo gcc -I/dev/env/DJDIR/include/libxml2 -o junk junk.c | |
187 if not exist junk Goto xmlDone | |
188 if not exist junk.exe coff2exe junk | |
189 junk | |
190 If ErrorLevel 1 Goto xmlDone | |
191 Echo Configuring with libxml2 ... | |
192 sed -e "/#undef HAVE_LIBXML2/s/^.*$/#define HAVE_LIBXML2 1/" <config.h2 >config.h3 | |
193 mv config.h3 config.h2 | |
194 set libxml=1 | |
195 :xmlDone | |
196 rm -f junk.c junk junk.exe | |
178 Rem See if they requested a SYSTEM_MALLOC build | 197 Rem See if they requested a SYSTEM_MALLOC build |
179 if "%sys_malloc%" == "" Goto cfgDone | 198 if "%sys_malloc%" == "" Goto cfgDone |
180 rm -f config.tmp | 199 rm -f config.tmp |
181 ren config.h2 config.tmp | 200 ren config.h2 config.tmp |
182 sed -f ../msdos/sedalloc.inp <config.tmp >config.h2 | 201 sed -f ../msdos/sedalloc.inp <config.tmp >config.h2 |
211 if "%nodebug%" == "" goto src6 | 230 if "%nodebug%" == "" goto src6 |
212 sed -e "/^CFLAGS *=/s/ *-gcoff//" <Makefile >makefile.tmp | 231 sed -e "/^CFLAGS *=/s/ *-gcoff//" <Makefile >makefile.tmp |
213 sed -e "/^LDFLAGS *=/s/=/=-s/" <makefile.tmp >Makefile | 232 sed -e "/^LDFLAGS *=/s/=/=-s/" <makefile.tmp >Makefile |
214 rm -f makefile.tmp | 233 rm -f makefile.tmp |
215 :src6 | 234 :src6 |
235 | |
236 if "%libxml%" == "" goto src7 | |
237 sed -e "/^LIBXML2_LIBS *=/s/=/= -lxml2 -lz -liconv/" <Makefile >makefile.tmp | |
238 sed -e "/^LIBXML2_CFLAGS *=/s|=|= -I/dev/env/DJDIR/include/libxml2|" <makefile.tmp >Makefile | |
239 rm -f makefile.tmp | |
240 :src7 | |
216 cd .. | 241 cd .. |
217 rem ---------------------------------------------------------------------- | 242 rem ---------------------------------------------------------------------- |
218 Echo Configuring the library source directory... | 243 Echo Configuring the library source directory... |
219 cd lib-src | 244 cd lib-src |
220 sed -f ../msdos/sed3v2.inp <Makefile.in >Makefile | 245 sed -f ../msdos/sed3v2.inp <Makefile.in >Makefile |
287 :end | 312 :end |
288 set X11= | 313 set X11= |
289 set nodebug= | 314 set nodebug= |
290 set djgpp_ver= | 315 set djgpp_ver= |
291 set sys_malloc= | 316 set sys_malloc= |
317 set libxml= | |
292 | 318 |
293 goto skipArchTag | 319 goto skipArchTag |
294 arch-tag: 2d2fed23-4dc6-4006-a2e4-49daf0031f33 | 320 arch-tag: 2d2fed23-4dc6-4006-a2e4-49daf0031f33 |
295 :skipArchTag | 321 :skipArchTag |