diff options
| author | Eli Zaretskii | 2010-09-18 16:13:09 +0200 |
|---|---|---|
| committer | Eli Zaretskii | 2010-09-18 16:13:09 +0200 |
| commit | 0d4afaf7ffb6d1881c9acf9ef03f386cc87254e6 (patch) | |
| tree | 7152c41cb4ecd70b35424f4683c839b5f4373301 | |
| parent | bf5ba10b08798317749077578a87b687d8d4b7e7 (diff) | |
| parent | f3ec267ad61a020d81af44ebb3c090ea11c69278 (diff) | |
| download | emacs-0d4afaf7ffb6d1881c9acf9ef03f386cc87254e6.tar.gz emacs-0d4afaf7ffb6d1881c9acf9ef03f386cc87254e6.zip | |
Fix MSDOS build broken by 2010-09-10T16:44:35Z!larsi@gnus.org, support MSDOS build with libxml2.
config.bat: Detect that libxml2 is installed and if so, build with it.
src/deps.mk (xml.o): Add dependencies.
msdos/sed1v2.inp (LIBXML2_LIBS, LIBXML2_CFLAGS): Edit to empty.
| -rw-r--r-- | ChangeLog | 5 | ||||
| -rw-r--r-- | config.bat | 26 | ||||
| -rw-r--r-- | msdos/ChangeLog | 4 | ||||
| -rw-r--r-- | msdos/sed1v2.inp | 2 | ||||
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/deps.mk | 1 |
6 files changed, 42 insertions, 0 deletions
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-09-18 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * config.bat: Detect that libxml2 is installed and if so, build | ||
| 4 | with it. | ||
| 5 | |||
| 1 | 2010-09-13 Lars Magne Ingebrigtsen <larsi@gnus.org> | 6 | 2010-09-13 Lars Magne Ingebrigtsen <larsi@gnus.org> |
| 2 | 7 | ||
| 3 | * configure.in (HAVE_LIBXML2): Check that the libxml2 we found can | 8 | * configure.in (HAVE_LIBXML2): Check that the libxml2 we found can |
diff --git a/config.bat b/config.bat index 802cacc8897..63f9c5d5865 100644 --- a/config.bat +++ b/config.bat | |||
| @@ -38,6 +38,7 @@ 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. |
| @@ -175,6 +176,24 @@ 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 |
| @@ -213,6 +232,12 @@ 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... |
| @@ -289,6 +314,7 @@ 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 |
diff --git a/msdos/ChangeLog b/msdos/ChangeLog index cc9a63ef12a..121dbf35542 100644 --- a/msdos/ChangeLog +++ b/msdos/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2010-09-17 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * sed1v2.inp (LIBXML2_LIBS, LIBXML2_CFLAGS): Edit to empty. | ||
| 4 | |||
| 1 | 2010-08-22 Chong Yidong <cyd@stupidchicken.com> | 5 | 2010-08-22 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 6 | ||
| 3 | * sedleim.inp (RUN-EMACS): Don't use --multibyte. | 7 | * sedleim.inp (RUN-EMACS): Don't use --multibyte. |
diff --git a/msdos/sed1v2.inp b/msdos/sed1v2.inp index e9dfc9dea3d..9ccbb67705d 100644 --- a/msdos/sed1v2.inp +++ b/msdos/sed1v2.inp | |||
| @@ -90,6 +90,8 @@ s/\.h\.in/.h-in/ | |||
| 90 | /^RSVG_CFLAGS *=/s/@RSVG_CFLAGS@// | 90 | /^RSVG_CFLAGS *=/s/@RSVG_CFLAGS@// |
| 91 | /^IMAGEMAGICK_LIBS *=/s/@IMAGEMAGICK_LIBS@// | 91 | /^IMAGEMAGICK_LIBS *=/s/@IMAGEMAGICK_LIBS@// |
| 92 | /^IMAGEMAGICK_CFLAGS *=/s/@IMAGEMAGICK_CFLAGS@// | 92 | /^IMAGEMAGICK_CFLAGS *=/s/@IMAGEMAGICK_CFLAGS@// |
| 93 | /^LIBXML2_LIBS *=/s/@LIBXML2_LIBS@// | ||
| 94 | /^LIBXML2_CFLAGS *=/s/@LIBXML2_CFLAGS@// | ||
| 93 | /^WIDGET_OBJ *=/s/@WIDGET_OBJ@// | 95 | /^WIDGET_OBJ *=/s/@WIDGET_OBJ@// |
| 94 | /^CYGWIN_OBJ *=/s/@CYGWIN_OBJ@// | 96 | /^CYGWIN_OBJ *=/s/@CYGWIN_OBJ@// |
| 95 | /^MSDOS_OBJ *=/s/= */= dosfns.o msdos.o w16select.o/ | 97 | /^MSDOS_OBJ *=/s/= */= dosfns.o msdos.o w16select.o/ |
diff --git a/src/ChangeLog b/src/ChangeLog index 88030b7b4ce..13184191725 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2010-09-18 Eli Zaretskii <eliz@gnu.org> | 1 | 2010-09-18 Eli Zaretskii <eliz@gnu.org> |
| 2 | 2 | ||
| 3 | * deps.mk (xml.o): Add dependencies. | ||
| 4 | |||
| 5 | 2010-09-18 Eli Zaretskii <eliz@gnu.org> | ||
| 6 | |||
| 3 | * xdisp.c (Fcurrent_bidi_paragraph_direction): Call | 7 | * xdisp.c (Fcurrent_bidi_paragraph_direction): Call |
| 4 | bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038) | 8 | bidi_paragraph_init with NO_DEFAULT_P non-zero. (Bug#7038) |
| 5 | 9 | ||
diff --git a/src/deps.mk b/src/deps.mk index d00be96744b..eebf98ec003 100644 --- a/src/deps.mk +++ b/src/deps.mk | |||
| @@ -230,6 +230,7 @@ xmenu.o: xmenu.c xterm.h termhooks.h window.h dispextern.h frame.h buffer.h \ | |||
| 230 | charset.h keyboard.h $(srcdir)/../lwlib/lwlib.h blockinput.h atimer.h \ | 230 | charset.h keyboard.h $(srcdir)/../lwlib/lwlib.h blockinput.h atimer.h \ |
| 231 | systime.h gtkutil.h msdos.h coding.h menu.h lisp.h $(config_h) composite.h \ | 231 | systime.h gtkutil.h msdos.h coding.h menu.h lisp.h $(config_h) composite.h \ |
| 232 | keymap.h sysselect.h | 232 | keymap.h sysselect.h |
| 233 | xml.o: xml.c buffer.h lisp.h $(config_h) | ||
| 233 | xterm.o: xterm.c xterm.h termhooks.h termopts.h termchar.h window.h buffer.h \ | 234 | xterm.o: xterm.c xterm.h termhooks.h termopts.h termchar.h window.h buffer.h \ |
| 234 | dispextern.h frame.h disptab.h blockinput.h atimer.h systime.h syssignal.h \ | 235 | dispextern.h frame.h disptab.h blockinput.h atimer.h systime.h syssignal.h \ |
| 235 | keyboard.h emacs-icon.h character.h charset.h ccl.h fontset.h composite.h \ | 236 | keyboard.h emacs-icon.h character.h charset.h ccl.h fontset.h composite.h \ |