aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2010-05-07 17:07:51 +0300
committerEli Zaretskii2010-05-07 17:07:51 +0300
commit59d93e877072c242f5947ed6f2a536a14629393b (patch)
tree831a9bbd9940d15142cb466c92576afa57a4cf6d /src
parentf3ee9200b8199ed00514ffa27079ba780bc2746f (diff)
parentc0162ade6f6f1300bdf087627f7d19afa480f1fc (diff)
downloademacs-59d93e877072c242f5947ed6f2a536a14629393b.tar.gz
emacs-59d93e877072c242f5947ed6f2a536a14629393b.zip
Fix MSDOS build broken by autoconfiscation and changes in symbol handling.
src/msdos.c (dos_set_window_size): src/w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)' instead of `XSYMBOL (foo)->value'. config.bat: Allow for 2 leading `#'s in comments in src/Makefile.in. src/Makefile.in: Don't use Make-style comments past the "start of cpp stuff" line. (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ). src/s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is edited directly by msdos/sed1v2.inp). msdos/sed3v2.inp (C_SWITCH_MACHINE): Edit to empty. msdos/sed1v2.inp (@LIB_MATH@): Edit to -lm. (C_SWITCH_MACHINE, C_SWITCH_SYSTEM, LD_SWITCH_SYSTEM_TEMACS) (LD_SWITCH_X_SITE_AUX, LD_SWITCH_X_SITE_AUX_RPATH) (LD_SWITCH_SYSTEM, LD_SWITCH_SYSTEM_EXTRA, LIBTIFF, LIBJPEG) (LIBPNG, LIBGIF, LIBXPM, XFT_LIBS, DBUS_CFLAGS, DBUS_LIBS) (DBUS_OBJ, GCONF_CFLAGS, GCONF_LIBS, GTK_OBJ, LIBXMU, LIBXSM) (LIBXTR6, XOBJ, TOOLKIT_LIBW, WIDGET_OBJ, CYGWIN_OBJ, NS_OBJ) (NS_SUPPORT, LIBSELINUX_LIBS, START_FILES): Edit to empty. (XMENU_OBJ): Edit to xmenu.o. (FONT_OBJ): Edit to value used for X on Unix. (PRE_ALLOC_OBJ): Edit to lastfile.o. (POST_ALLOC_OBJ): Edit to $(vmlimitobj). (@unexec@): Edit to unexec.o. lisp/cus-start.el (all): Add native condition for tool-bar-* symbols.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog17
-rw-r--r--src/Makefile.in13
-rw-r--r--src/msdos.c3
-rw-r--r--src/s/msdos.h4
-rw-r--r--src/w16select.c4
5 files changed, 28 insertions, 13 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 04d9d6b8266..9570c0ce3c7 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,20 @@
12010-05-07 Eli Zaretskii <eliz@gnu.org>
2
3 * msdos.c (dos_set_window_size):
4 * w16select.c (Fx_selection_exists_p): Use `Fsymbol_value (foo)'
5 instead of `XSYMBOL (foo)->value'.
6
72010-05-07 Eli Zaretskii <eliz@gnu.org>
8
9 Fix the MS-DOS build, broken by autoconfiscation.
10
11 * Makefile.in: Don't use Make-style comments past the "start of
12 cpp stuff" line.
13 (MSDOS_OBJ): Remove xmenu.o (it is now defined by XMENU_OBJ).
14
15 * s/msdos.h (UNEXEC): Don't define (@unexec@ in Makefile.in is
16 edited directly by msdos/sed1v2.inp).
17
12010-05-07 Glenn Morris <rgm@gnu.org> 182010-05-07 Glenn Morris <rgm@gnu.org>
2 19
3 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp. 20 * Makefile.in (LD_SWITCH_SYSTEM): Set with configure, not cpp.
diff --git a/src/Makefile.in b/src/Makefile.in
index 5ea321df78c..43a1cae02dc 100644
--- a/src/Makefile.in
+++ b/src/Makefile.in
@@ -240,8 +240,8 @@ ALL_OBJC_CFLAGS=$(ALL_CFLAGS) @GNU_OBJC_CFLAGS@
240 $(CC) -c $(CPPFLAGS) $(ALL_OBJC_CFLAGS) $< 240 $(CC) -c $(CPPFLAGS) $(ALL_OBJC_CFLAGS) $<
241 241
242#ifdef HAVE_X_WINDOWS 242#ifdef HAVE_X_WINDOWS
243/* This test needs to say in cpp for the time being, since s/ms-w32.h and 243/* This test needs to say in cpp for the time being, since s/msdos.h
244 s/msdos.h define HAVE_MENUS, possibly overriding configure. */ 244 defines HAVE_MENUS, and does not use the configure script. */
245#ifdef HAVE_MENUS 245#ifdef HAVE_MENUS
246OLDXMENU=@OLDXMENU@ 246OLDXMENU=@OLDXMENU@
247LIBXMENU=@LIBXMENU@ 247LIBXMENU=@LIBXMENU@
@@ -321,9 +321,10 @@ LD=ld
321 321
322#ifdef MSDOS 322#ifdef MSDOS
323#ifdef HAVE_X_WINDOWS 323#ifdef HAVE_X_WINDOWS
324MSDOS_OBJ = dosfns.o msdos.o xmenu.o 324MSDOS_OBJ = dosfns.o msdos.o
325#define LIBS_SYSTEM -lxext -lsys
325#else 326#else
326MSDOS_OBJ = dosfns.o msdos.o w16select.o xmenu.o termcap.o 327MSDOS_OBJ = dosfns.o msdos.o w16select.o termcap.o
327#endif 328#endif
328#endif 329#endif
329 330
@@ -397,9 +398,9 @@ rallocobj = ralloc.o
397vmlimitobj = vm-limit.o 398vmlimitobj = vm-limit.o
398#endif /* !SYSTEM_MALLOC */ 399#endif /* !SYSTEM_MALLOC */
399 400
400## Empty on Cygwin, lastfile.o elsewhere. 401/* Empty on Cygwin, lastfile.o elsewhere. */
401PRE_ALLOC_OBJ=@PRE_ALLOC_OBJ@ 402PRE_ALLOC_OBJ=@PRE_ALLOC_OBJ@
402## lastfile.o vm-limit.o on Cygwin, $vmlimitobj elsewhere. 403/* lastfile.o vm-limit.o on Cygwin, $vmlimitobj elsewhere. */
403POST_ALLOC_OBJ=@POST_ALLOC_OBJ@ 404POST_ALLOC_OBJ=@POST_ALLOC_OBJ@
404 405
405/* List of object files that make-docfile should not be told about. */ 406/* List of object files that make-docfile should not be told about. */
diff --git a/src/msdos.c b/src/msdos.c
index 28d621f8cc1..ea604d29992 100644
--- a/src/msdos.c
+++ b/src/msdos.c
@@ -528,8 +528,7 @@ dos_set_window_size (rows, cols)
528 /* If the user specified a special video mode for these dimensions, 528 /* If the user specified a special video mode for these dimensions,
529 use that mode. */ 529 use that mode. */
530 sprintf (video_name, "screen-dimensions-%dx%d", *rows, *cols); 530 sprintf (video_name, "screen-dimensions-%dx%d", *rows, *cols);
531 video_mode = XSYMBOL (Fintern_soft (build_string (video_name), 531 video_mode = Fsymbol_value (Fintern_soft (build_string (video_name), Qnil));
532 Qnil))-> value;
533 532
534 if (INTEGERP (video_mode) 533 if (INTEGERP (video_mode)
535 && (video_mode_value = XINT (video_mode)) > 0) 534 && (video_mode_value = XINT (video_mode)) > 0)
diff --git a/src/s/msdos.h b/src/s/msdos.h
index 8cd9bfc8491..5199799a226 100644
--- a/src/s/msdos.h
+++ b/src/s/msdos.h
@@ -131,7 +131,7 @@ You lose; /* Emacs for DOS must be compiled with DJGPP */
131/* We have (the code to control) a mouse. */ 131/* We have (the code to control) a mouse. */
132#define HAVE_MOUSE 132#define HAVE_MOUSE
133 133
134/* We canuse mouse menus. */ 134/* We can use mouse menus. */
135#define HAVE_MENUS 135#define HAVE_MENUS
136 136
137/* Define one of these for easier conditionals. */ 137/* Define one of these for easier conditionals. */
@@ -163,7 +163,5 @@ You lose; /* Emacs for DOS must be compiled with DJGPP */
163 163
164#define NO_REMAP 164#define NO_REMAP
165 165
166#define UNEXEC unexec.o
167
168/* arch-tag: d184f860-815d-4ff4-8187-d05c0f3c37d0 166/* arch-tag: d184f860-815d-4ff4-8187-d05c0f3c37d0
169 (do not change this comment) */ 167 (do not change this comment) */
diff --git a/src/w16select.c b/src/w16select.c
index c6a84e46a60..9ebf6de6250 100644
--- a/src/w16select.c
+++ b/src/w16select.c
@@ -685,8 +685,8 @@ and t is the same as `SECONDARY'. */)
685 into the clipboard if we run under Windows, so we cannot check 685 into the clipboard if we run under Windows, so we cannot check
686 the clipboard alone.) */ 686 the clipboard alone.) */
687 if ((EQ (selection, Qnil) || EQ (selection, QPRIMARY)) 687 if ((EQ (selection, Qnil) || EQ (selection, QPRIMARY))
688 && ! NILP (SYMBOL_VALUE (Fintern_soft (build_string ("kill-ring"), 688 && ! NILP (Fsymbol_value (Fintern_soft (build_string ("kill-ring"),
689 Qnil)))) 689 Qnil))))
690 return Qt; 690 return Qt;
691 691
692 if (EQ (selection, QCLIPBOARD)) 692 if (EQ (selection, QCLIPBOARD))