diff options
| author | Kenichi Handa | 2010-05-14 12:52:21 +0900 |
|---|---|---|
| committer | Kenichi Handa | 2010-05-14 12:52:21 +0900 |
| commit | 508197067c434b0111bcb6ded742d424bb738ece (patch) | |
| tree | 8771c78dae5018afa802675f0f798251d492ba31 /src | |
| parent | 0e5d78007c37e98a5682a5d4c18966cdf6063c0b (diff) | |
| parent | fbc00890119ec27ceaf50a0969ee121bef22905a (diff) | |
| download | emacs-508197067c434b0111bcb6ded742d424bb738ece.tar.gz emacs-508197067c434b0111bcb6ded742d424bb738ece.zip | |
merge trunk
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 48 | ||||
| -rw-r--r-- | src/Makefile.in | 235 | ||||
| -rw-r--r-- | src/config.in | 30 | ||||
| -rw-r--r-- | src/s/netbsd.h | 2 |
4 files changed, 161 insertions, 154 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index f759d0cebcd..7ffb5800753 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -3,6 +3,54 @@ | |||
| 3 | * font.c (font_range): Return the range for the font found at | 3 | * font.c (font_range): Return the range for the font found at |
| 4 | first. | 4 | first. |
| 5 | 5 | ||
| 6 | 2010-05-14 Glenn Morris <rgm@gnu.org> | ||
| 7 | |||
| 8 | * Makefile.in (mktime, X11, register): Move undefs to configure. | ||
| 9 | |||
| 10 | * Makefile.in (MSDOS_OBJ): Default to empty, let msdos scripts set it. | ||
| 11 | (MSDOS_X_OBJ): New variable. | ||
| 12 | (MSDOS_SUPPORT_REAL): New constant. | ||
| 13 | (MSDOS_SUPPORT): Set as a variable, not with cpp. | ||
| 14 | (obj): Use MSDOS_X_OBJ. | ||
| 15 | (lisp): Use MSDOS_SUPPORT as a variable. | ||
| 16 | |||
| 17 | * Makefile.in (REAL_MOUSE_SUPPORT): New constant. | ||
| 18 | (GPM_MOUSE_SUPPORT): Now it's a constant. | ||
| 19 | (MOUSE_SUPPORT, TOOLTIP_SUPPORT, WINDOW_SUPPORT): Set with configure, | ||
| 20 | not cpp. | ||
| 21 | |||
| 22 | * Makefile.in (@NS_IMPL_GNUSTEP_INC@): Use in place of #ifdef. | ||
| 23 | (ns_appresdir): Remove, unused. | ||
| 24 | |||
| 25 | * Makefile.in (SHELL): Move outside cpp section. | ||
| 26 | |||
| 27 | * s/netbsd.h (AMPERSAND_FULL_NAME): Remove (defined in AH_BOTTOM). | ||
| 28 | |||
| 29 | 2010-05-13 Glenn Morris <rgm@gnu.org> | ||
| 30 | |||
| 31 | * Makefile.in (FONT_DRIVERS): Place with other HAVE_X_WINDOWS stuff. | ||
| 32 | (TOOLTIP_SUPPORT): Place with other HAVE_WINDOW_SYSTEM stuff. | ||
| 33 | |||
| 34 | * Makefile.in (FONT_DRIVERS): If HAVE_X_WINDOWS is defined, | ||
| 35 | HAVE_WINDOW_SYSTEM must be too. | ||
| 36 | |||
| 37 | * Makefile.in (WINNT_SUPPORT): Remove, nt build does not use this file. | ||
| 38 | (lisp): Remove WINNT_SUPPORT. | ||
| 39 | |||
| 40 | * Makefile.in (OLDXMENU, LIBXMENU) [!HAVE_MENUS]: | ||
| 41 | Let configure set these variables (to empty) in this case as well. | ||
| 42 | |||
| 43 | * Makefile.in (LD_SWITCH_X_SITE): Define as a variable, not via cpp. | ||
| 44 | (LIBX_BASE): Use $LD_SWITCH_X_SITE. | ||
| 45 | |||
| 46 | * Makefile.in (C_SWITCH_X_SYSTEM, C_SWITCH_X_SITE, LIB_STANDARD) | ||
| 47 | (LIB_MATH, FONTCONFIG_CFLAGS, FONTCONFIG_LIBS, FREETYPE_CFLAGS) | ||
| 48 | (FREETYPE_LIBS, LIBOTF_CFLAGS, LIBOTF_LIBS, M17N_FLT_CFLAGS) | ||
| 49 | (M17N_FLT_LIBS, GNU_OBJC_CFLAGS, GNUSTEP_SYSTEM_LIBRARIES, LIBGPM) | ||
| 50 | (LIBRESOLV, UNEXEC_OBJ): For clarity, define variables to hold | ||
| 51 | the values output by configure. | ||
| 52 | (ALL_CFLAGS, obj, LIBES, temacs${EXEEXT}): Use the above variables. | ||
| 53 | |||
| 6 | 2010-05-12 Glenn Morris <rgm@gnu.org> | 54 | 2010-05-12 Glenn Morris <rgm@gnu.org> |
| 7 | 55 | ||
| 8 | * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic. | 56 | * Makefile.in (YMF_PASS_LDFLAGS, LD, LINKER): Simplify the logic. |
diff --git a/src/Makefile.in b/src/Makefile.in index 46d4e0c2878..3a0339a3f70 100644 --- a/src/Makefile.in +++ b/src/Makefile.in | |||
| @@ -30,6 +30,7 @@ | |||
| 30 | # Some of the conditionals might be dead now. Finding them and | 30 | # Some of the conditionals might be dead now. Finding them and |
| 31 | # deleting them would be fine. | 31 | # deleting them would be fine. |
| 32 | 32 | ||
| 33 | SHELL = /bin/sh | ||
| 33 | 34 | ||
| 34 | # Here are the things that we expect ../configure to edit. | 35 | # Here are the things that we expect ../configure to edit. |
| 35 | # We use $(srcdir) explicitly in dependencies so as not to depend on VPATH. | 36 | # We use $(srcdir) explicitly in dependencies so as not to depend on VPATH. |
| @@ -72,19 +73,44 @@ CRT_DIR=@CRT_DIR@ | |||
| 72 | C_SWITCH_MACHINE=@C_SWITCH_MACHINE@ | 73 | C_SWITCH_MACHINE=@C_SWITCH_MACHINE@ |
| 73 | ## System-specific CFLAGS. | 74 | ## System-specific CFLAGS. |
| 74 | C_SWITCH_SYSTEM=@C_SWITCH_SYSTEM@ | 75 | C_SWITCH_SYSTEM=@C_SWITCH_SYSTEM@ |
| 76 | |||
| 77 | ## Currently only set if NS_IMPL_GNUSTEP. | ||
| 78 | ## C_SWITCH_X_SITE may override this. | ||
| 79 | C_SWITCH_X_SYSTEM=@C_SWITCH_X_SYSTEM@ | ||
| 80 | |||
| 81 | ## Define C_SWITCH_X_SITE to contain any special flags your compiler | ||
| 82 | ## may need to deal with X Windows. For instance, if you've defined | ||
| 83 | ## HAVE_X_WINDOWS and your X include files aren't in a place that your | ||
| 84 | ## compiler can find on its own, you might want to add "-I/..." or | ||
| 85 | ## something similar. This is normally set by configure. | ||
| 86 | ## This is used before C_SWITCH_X_SYSTEM and may override it. | ||
| 87 | C_SWITCH_X_SITE=@C_SWITCH_X_SITE@ | ||
| 88 | |||
| 89 | ## Define LD_SWITCH_X_SITE to contain any special flags your loader | ||
| 90 | ## may need to deal with X Windows. For instance, if your X libraries | ||
| 91 | ## aren't in a place that your loader can find on its own, you might | ||
| 92 | ## want to add "-L/..." or something similar. Only used if | ||
| 93 | ## HAVE_X_WINDOWS. | ||
| 94 | ## FIXME? configure sets a value for this, but it has never been | ||
| 95 | ## substituted in this or any other Makefile. Cf C_SWITCH_X_SITE. | ||
| 96 | LD_SWITCH_X_SITE= | ||
| 97 | |||
| 75 | ## This holds any special options for linking temacs only (ie, not | 98 | ## This holds any special options for linking temacs only (ie, not |
| 76 | ## used by configure). Not used elsewhere because it sometimes | 99 | ## used by configure). Not used elsewhere because it sometimes |
| 77 | ## contains options that have to do with using Emacs's crt0, | 100 | ## contains options that have to do with using Emacs's crt0, |
| 78 | ## which are only good with temacs. | 101 | ## which are only good with temacs. |
| 79 | LD_SWITCH_SYSTEM_TEMACS=@LD_SWITCH_SYSTEM_TEMACS@ | 102 | LD_SWITCH_SYSTEM_TEMACS=@LD_SWITCH_SYSTEM_TEMACS@ |
| 103 | |||
| 80 | ## Next two must come before LD_SWITCH_SYSTEM. | 104 | ## Next two must come before LD_SWITCH_SYSTEM. |
| 81 | ## If needed, a -R option that says where to find X windows at run time. | 105 | ## If needed, a -R option that says where to find X windows at run time. |
| 82 | LD_SWITCH_X_SITE_AUX=@LD_SWITCH_X_SITE_AUX@ | 106 | LD_SWITCH_X_SITE_AUX=@LD_SWITCH_X_SITE_AUX@ |
| 83 | ## As above, but using -rpath instead. | 107 | ## As above, but using -rpath instead. |
| 84 | LD_SWITCH_X_SITE_AUX_RPATH=@LD_SWITCH_X_SITE_AUX_RPATH@ | 108 | LD_SWITCH_X_SITE_AUX_RPATH=@LD_SWITCH_X_SITE_AUX_RPATH@ |
| 109 | |||
| 85 | ## System-specific LDFLAGS. | 110 | ## System-specific LDFLAGS. |
| 86 | LD_SWITCH_SYSTEM=@LD_SWITCH_SYSTEM@ | 111 | LD_SWITCH_SYSTEM=@LD_SWITCH_SYSTEM@ |
| 87 | LD_SWITCH_SYSTEM_EXTRA=@LD_SWITCH_SYSTEM_EXTRA@ | 112 | LD_SWITCH_SYSTEM_EXTRA=@LD_SWITCH_SYSTEM_EXTRA@ |
| 113 | |||
| 88 | ## Flags to pass to ld only for temacs. | 114 | ## Flags to pass to ld only for temacs. |
| 89 | TEMACS_LDFLAGS = $(LD_SWITCH_SYSTEM) $(LD_SWITCH_SYSTEM_EXTRA) $(LD_SWITCH_SYSTEM_TEMACS) | 115 | TEMACS_LDFLAGS = $(LD_SWITCH_SYSTEM) $(LD_SWITCH_SYSTEM_EXTRA) $(LD_SWITCH_SYSTEM_TEMACS) |
| 90 | 116 | ||
| @@ -94,6 +120,12 @@ LIBS_SYSTEM=@LIBS_SYSTEM@ | |||
| 94 | ## Where to find libgcc.a, if using gcc and necessary. | 120 | ## Where to find libgcc.a, if using gcc and necessary. |
| 95 | LIB_GCC=@LIB_GCC@ | 121 | LIB_GCC=@LIB_GCC@ |
| 96 | 122 | ||
| 123 | ## May use $CRT_DIR. | ||
| 124 | LIB_STANDARD=@LIB_STANDARD@ | ||
| 125 | |||
| 126 | ## -lm, or empty. | ||
| 127 | LIB_MATH=@LIB_MATH@ | ||
| 128 | |||
| 97 | LIBTIFF=@LIBTIFF@ | 129 | LIBTIFF=@LIBTIFF@ |
| 98 | LIBJPEG=@LIBJPEG@ | 130 | LIBJPEG=@LIBJPEG@ |
| 99 | LIBPNG=@LIBPNG@ | 131 | LIBPNG=@LIBPNG@ |
| @@ -102,6 +134,15 @@ LIBXPM=@LIBXPM@ | |||
| 102 | XFT_LIBS=@XFT_LIBS@ | 134 | XFT_LIBS=@XFT_LIBS@ |
| 103 | LIBX_EXTRA=$(LIBTIFF) $(LIBJPEG) $(LIBPNG) $(LIBGIF) $(LIBXPM) -lX11 $(XFT_LIBS) | 135 | LIBX_EXTRA=$(LIBTIFF) $(LIBJPEG) $(LIBPNG) $(LIBGIF) $(LIBXPM) -lX11 $(XFT_LIBS) |
| 104 | 136 | ||
| 137 | FONTCONFIG_CFLAGS = @FONTCONFIG_CFLAGS@ | ||
| 138 | FONTCONFIG_LIBS = @FONTCONFIG_LIBS@ | ||
| 139 | FREETYPE_CFLAGS = @FREETYPE_CFLAGS@ | ||
| 140 | FREETYPE_LIBS = @FREETYPE_LIBS@ | ||
| 141 | LIBOTF_CFLAGS = @LIBOTF_CFLAGS@ | ||
| 142 | LIBOTF_LIBS = @LIBOTF_LIBS@ | ||
| 143 | M17N_FLT_CFLAGS = @M17N_FLT_CFLAGS@ | ||
| 144 | M17N_FLT_LIBS = @M17N_FLT_LIBS@ | ||
| 145 | |||
| 105 | DBUS_CFLAGS = @DBUS_CFLAGS@ | 146 | DBUS_CFLAGS = @DBUS_CFLAGS@ |
| 106 | DBUS_LIBS = @DBUS_LIBS@ | 147 | DBUS_LIBS = @DBUS_LIBS@ |
| 107 | DBUS_OBJ = @DBUS_OBJ@ | 148 | DBUS_OBJ = @DBUS_OBJ@ |
| @@ -143,15 +184,36 @@ WIDGET_OBJ=@WIDGET_OBJ@ | |||
| 143 | ## sheap.o if CYGWIN, otherwise empty. | 184 | ## sheap.o if CYGWIN, otherwise empty. |
| 144 | CYGWIN_OBJ=@CYGWIN_OBJ@ | 185 | CYGWIN_OBJ=@CYGWIN_OBJ@ |
| 145 | 186 | ||
| 187 | ## dosfns.o msdos.o if MSDOS. | ||
| 188 | MSDOS_OBJ = | ||
| 189 | ## w16select.o termcap.o if MSDOS && HAVE_X_WINDOWS. | ||
| 190 | MSDOS_X_OBJ = | ||
| 191 | MSDOS_SUPPORT_REAL = ${lispsource}ls-lisp.elc ${lispsource}disp-table.elc \ | ||
| 192 | ${lispsource}dos-fns.elc ${lispsource}dos-w32.elc ${lispsource}dos-vars.elc \ | ||
| 193 | ${lispsource}term/internal.elc ${lispsource}term/pc-win.elc | ||
| 194 | ## $MSDOS_SUPPORT_REAL if MSDOS. | ||
| 195 | MSDOS_SUPPORT = | ||
| 196 | |||
| 146 | NS_OBJ=@NS_OBJ@ | 197 | NS_OBJ=@NS_OBJ@ |
| 147 | NS_SUPPORT=@NS_SUPPORT@ | 198 | NS_SUPPORT=@NS_SUPPORT@ |
| 199 | ## Next two only set if NS_IMPL_GNUSTEP. | ||
| 200 | GNU_OBJC_CFLAGS=@GNU_OBJC_CFLAGS@ | ||
| 201 | GNUSTEP_SYSTEM_LIBRARIES=@GNUSTEP_SYSTEM_LIBRARIES@ | ||
| 148 | 202 | ||
| 149 | ## Only used if HAVE_X_WINDOWS and HAVE_WINDOW_SYSTEM. | 203 | ## Only used if HAVE_X_WINDOWS. |
| 150 | FONT_OBJ=@FONT_OBJ@ | 204 | FONT_OBJ=@FONT_OBJ@ |
| 151 | 205 | ||
| 152 | ## ${lispsource}mouse.elc if HAVE_GPM, otherwise empty. | 206 | ## Used if HAVE_MOUSE. |
| 153 | ## Not used if HAVE_MOUSE. | 207 | REAL_MOUSE_SUPPORT=${lispsource}mouse.elc ${lispsource}select.elc \ |
| 154 | GPM_MOUSE_SUPPORT=@GPM_MOUSE_SUPPORT@ | 208 | ${lispsource}scroll-bar.elc |
| 209 | ## Used if HAVE_GPM && !HAVE_MOUSE | ||
| 210 | GPM_MOUSE_SUPPORT=${lispsource}mouse.elc | ||
| 211 | LIBGPM = @LIBGPM@ | ||
| 212 | ## Either of the two preceding options, or empty. | ||
| 213 | MOUSE_SUPPORT=@MOUSE_SUPPORT@ | ||
| 214 | |||
| 215 | ## ${lispsource}tooltip.elc if HAVE_WINDOW_SYSTEM, else empty. | ||
| 216 | TOOLTIP_SUPPORT=@TOOLTIP_SUPPORT@ | ||
| 155 | 217 | ||
| 156 | BASE_WINDOW_SUPPORT=${lispsource}fringe.elc ${lispsource}image.elc \ | 218 | BASE_WINDOW_SUPPORT=${lispsource}fringe.elc ${lispsource}image.elc \ |
| 157 | ${lispsource}international/fontset.elc ${lispsource}dnd.elc \ | 219 | ${lispsource}international/fontset.elc ${lispsource}dnd.elc \ |
| @@ -160,6 +222,13 @@ BASE_WINDOW_SUPPORT=${lispsource}fringe.elc ${lispsource}image.elc \ | |||
| 160 | X_WINDOW_SUPPORT=${lispsource}x-dnd.elc ${lispsource}term/common-win.elc \ | 222 | X_WINDOW_SUPPORT=${lispsource}x-dnd.elc ${lispsource}term/common-win.elc \ |
| 161 | ${lispsource}term/x-win.elc ${lispsource}dynamic-setting.elc | 223 | ${lispsource}term/x-win.elc ${lispsource}dynamic-setting.elc |
| 162 | 224 | ||
| 225 | ## If HAVE_X_WINDOWS, both the above | ||
| 226 | ## else if HAVE_WINDOW_SYSTEM (ie, HAVE_NS) just the former; else empty. | ||
| 227 | WINDOW_SUPPORT=@WINDOW_SUPPORT@ | ||
| 228 | |||
| 229 | ## -lresolv, or empty. | ||
| 230 | LIBRESOLV = @LIBRESOLV@ | ||
| 231 | |||
| 163 | LIBSELINUX_LIBS = @LIBSELINUX_LIBS@ | 232 | LIBSELINUX_LIBS = @LIBSELINUX_LIBS@ |
| 164 | 233 | ||
| 165 | INTERVALS_H = dispextern.h intervals.h composite.h | 234 | INTERVALS_H = dispextern.h intervals.h composite.h |
| @@ -170,12 +239,11 @@ RUN_TEMACS = `/bin/pwd`/temacs | |||
| 170 | 239 | ||
| 171 | START_FILES = @START_FILES@ | 240 | START_FILES = @START_FILES@ |
| 172 | 241 | ||
| 242 | UNEXEC_OBJ = @unexec@ | ||
| 243 | |||
| 173 | # ========================== start of cpp stuff ======================= | 244 | # ========================== start of cpp stuff ======================= |
| 174 | /* From here on, comments must be done in C syntax. */ | 245 | /* From here on, comments must be done in C syntax. */ |
| 175 | 246 | ||
| 176 | /* just to be sure the sh is used */ | ||
| 177 | SHELL=/bin/sh | ||
| 178 | |||
| 179 | #define NOT_C_CODE | 247 | #define NOT_C_CODE |
| 180 | #include "config.h" | 248 | #include "config.h" |
| 181 | 249 | ||
| @@ -183,42 +251,13 @@ SHELL=/bin/sh | |||
| 183 | DEPFLAGS = -MMD -MF deps/$*.d | 251 | DEPFLAGS = -MMD -MF deps/$*.d |
| 184 | #endif | 252 | #endif |
| 185 | 253 | ||
| 186 | /* Do not let the file name mktime.c get messed up. */ | 254 | /* If NS_IMPL_GNUSTEP, some definitions and includes are expanded here. */ |
| 187 | #ifdef mktime | 255 | @NS_IMPL_GNUSTEP_INC@ |
| 188 | #undef mktime | ||
| 189 | #endif | ||
| 190 | |||
| 191 | /* Use HAVE_X11 as an alias for X11 in this file | ||
| 192 | to avoid problems with X11 as a subdirectory name | ||
| 193 | in -I and other such options which pass through this file. */ | ||
| 194 | |||
| 195 | #ifdef X11 | ||
| 196 | #define HAVE_X11 | ||
| 197 | #undef X11 | ||
| 198 | #endif | ||
| 199 | |||
| 200 | /* On some machines #define register is done in config; | ||
| 201 | do not let it interfere with this file. */ | ||
| 202 | #undef register | ||
| 203 | |||
| 204 | /* This macro is for switches specifically related to X Windows. */ | ||
| 205 | #ifndef LD_SWITCH_X_SITE | ||
| 206 | #define LD_SWITCH_X_SITE | ||
| 207 | #endif | ||
| 208 | |||
| 209 | #ifdef NS_IMPL_GNUSTEP | ||
| 210 | /* Pull in stuff from GNUstep-make. */ | ||
| 211 | FOUNDATION_LIB=gnu | ||
| 212 | GUI_LIB=gnu | ||
| 213 | include @GNUSTEP_MAKEFILES@/Additional/base.make | ||
| 214 | include @GNUSTEP_MAKEFILES@/Additional/gui.make | ||
| 215 | shared=no | ||
| 216 | #endif | ||
| 217 | 256 | ||
| 218 | /* DO NOT use -R. There is a special hack described in lastfile.c | 257 | /* DO NOT use -R. There is a special hack described in lastfile.c |
| 219 | which is used instead. Some initialized data areas are modified | 258 | which is used instead. Some initialized data areas are modified |
| 220 | at initial startup, then labeled as part of the text area when | 259 | at initial startup, then labeled as part of the text area when |
| 221 | Emacs is dumped for the first time, and never changed again. */ | 260 | Emacs is dumped for the first time, and never changed again. */ |
| 222 | 261 | ||
| 223 | /* -Demacs is needed to make some files produce the correct version | 262 | /* -Demacs is needed to make some files produce the correct version |
| 224 | for use in Emacs. | 263 | for use in Emacs. |
| @@ -227,10 +266,10 @@ shared=no | |||
| 227 | the information in ``config.h''. */ | 266 | the information in ``config.h''. */ |
| 228 | 267 | ||
| 229 | /* C_SWITCH_X_SITE must come before C_SWITCH_X_SYSTEM | 268 | /* C_SWITCH_X_SITE must come before C_SWITCH_X_SYSTEM |
| 230 | since it may have -I options that should override those two. */ | 269 | since it may have -I options that should override those. */ |
| 231 | /* MYCPPFLAGS only referenced in etc/DEBUG. */ | 270 | /* MYCPPFLAGS only referenced in etc/DEBUG. */ |
| 232 | ALL_CFLAGS=-Demacs -DHAVE_CONFIG_H $(MYCPPFLAGS) -I. -I${srcdir} ${C_SWITCH_MACHINE} ${C_SWITCH_SYSTEM} @C_SWITCH_X_SITE@ @C_SWITCH_X_SYSTEM@ ${CFLAGS_SOUND} ${RSVG_CFLAGS} ${DBUS_CFLAGS} ${GCONF_CFLAGS} ${CFLAGS} @FREETYPE_CFLAGS@ @FONTCONFIG_CFLAGS@ @LIBOTF_CFLAGS@ @M17N_FLT_CFLAGS@ ${DEPFLAGS} | 271 | ALL_CFLAGS=-Demacs -DHAVE_CONFIG_H $(MYCPPFLAGS) -I. -I${srcdir} ${C_SWITCH_MACHINE} ${C_SWITCH_SYSTEM} ${C_SWITCH_X_SITE} ${C_SWITCH_X_SYSTEM} ${CFLAGS_SOUND} ${RSVG_CFLAGS} ${DBUS_CFLAGS} ${GCONF_CFLAGS} ${CFLAGS} ${FREETYPE_CFLAGS} ${FONTCONFIG_CFLAGS} ${LIBOTF_CFLAGS} ${M17N_FLT_CFLAGS} ${DEPFLAGS} |
| 233 | ALL_OBJC_CFLAGS=$(ALL_CFLAGS) @GNU_OBJC_CFLAGS@ | 272 | ALL_OBJC_CFLAGS=$(ALL_CFLAGS) $(GNU_OBJC_CFLAGS) |
| 234 | 273 | ||
| 235 | .SUFFIXES: .m | 274 | .SUFFIXES: .m |
| 236 | .c.o: | 275 | .c.o: |
| @@ -245,20 +284,13 @@ ALL_OBJC_CFLAGS=$(ALL_CFLAGS) @GNU_OBJC_CFLAGS@ | |||
| 245 | $(CC) -c $(CPPFLAGS) $(ALL_OBJC_CFLAGS) $< | 284 | $(CC) -c $(CPPFLAGS) $(ALL_OBJC_CFLAGS) $< |
| 246 | 285 | ||
| 247 | #ifdef HAVE_X_WINDOWS | 286 | #ifdef HAVE_X_WINDOWS |
| 248 | /* This test needs to say in cpp for the time being, since s/msdos.h | ||
| 249 | defines HAVE_MENUS, and does not use the configure script. */ | ||
| 250 | #ifdef HAVE_MENUS | ||
| 251 | OLDXMENU=@OLDXMENU@ | 287 | OLDXMENU=@OLDXMENU@ |
| 252 | LIBXMENU=@LIBXMENU@ | 288 | LIBXMENU=@LIBXMENU@ |
| 253 | #else /* not HAVE_MENUS */ | ||
| 254 | OLDXMENU= | ||
| 255 | LIBXMENU= | ||
| 256 | #endif /* not HAVE_MENUS */ | ||
| 257 | |||
| 258 | LIBXT=$(TOOLKIT_LIBW) $(LIBXT_OTHER) | 289 | LIBXT=$(TOOLKIT_LIBW) $(LIBXT_OTHER) |
| 259 | LIBX_BASE=$(LIBXMENU) LD_SWITCH_X_SITE | 290 | LIBX_BASE=$(LIBXMENU) $(LD_SWITCH_X_SITE) |
| 260 | LIBX_OTHER=@LIBX_OTHER@ | 291 | LIBX_OTHER=@LIBX_OTHER@ |
| 261 | #endif /* not HAVE_X_WINDOWS */ | 292 | FONT_DRIVERS=$(FONT_OBJ) |
| 293 | #endif /* HAVE_X_WINDOWS */ | ||
| 262 | 294 | ||
| 263 | 295 | ||
| 264 | /* A macro which other sections of Makefile can redefine to munge the | 296 | /* A macro which other sections of Makefile can redefine to munge the |
| @@ -301,30 +333,14 @@ LD=ld | |||
| 301 | 333 | ||
| 302 | #endif /* not ORDINARY_LINK */ | 334 | #endif /* not ORDINARY_LINK */ |
| 303 | 335 | ||
| 304 | |||
| 305 | #ifdef MSDOS | ||
| 306 | #ifdef HAVE_X_WINDOWS | ||
| 307 | MSDOS_OBJ = dosfns.o msdos.o | ||
| 308 | #else | ||
| 309 | MSDOS_OBJ = dosfns.o msdos.o w16select.o termcap.o | ||
| 310 | #endif | ||
| 311 | #endif | ||
| 312 | |||
| 313 | #ifdef HAVE_NS | 336 | #ifdef HAVE_NS |
| 314 | ns_appdir=@ns_appdir@/ | 337 | ns_appdir=@ns_appdir@/ |
| 315 | ns_appbindir=@ns_appbindir@/ | 338 | ns_appbindir=@ns_appbindir@/ |
| 316 | ns_appresdir=@ns_appresdir@/ | ||
| 317 | ns_appsrc=@ns_appsrc@ | 339 | ns_appsrc=@ns_appsrc@ |
| 318 | #endif /* HAVE_NS */ | 340 | #endif /* HAVE_NS */ |
| 319 | 341 | ||
| 320 | #ifdef HAVE_WINDOW_SYSTEM | 342 | /* lastfile must follow all files whose initialized data areas should |
| 321 | #ifdef HAVE_X_WINDOWS | 343 | be dumped as pure by dump-emacs. */ |
| 322 | FONT_DRIVERS=$(FONT_OBJ) | ||
| 323 | #endif /* HAVE_X_WINDOWS */ | ||
| 324 | #endif /* HAVE_WINDOW_SYSTEM */ | ||
| 325 | |||
| 326 | /* lastfile must follow all files | ||
| 327 | whose initialized data areas should be dumped as pure by dump-emacs. */ | ||
| 328 | obj= dispnew.o frame.o scroll.o xdisp.o menu.o $(XMENU_OBJ) window.o \ | 344 | obj= dispnew.o frame.o scroll.o xdisp.o menu.o $(XMENU_OBJ) window.o \ |
| 329 | charset.o coding.o category.o ccl.o character.o chartab.o bidi.o \ | 345 | charset.o coding.o category.o ccl.o character.o chartab.o bidi.o \ |
| 330 | cm.o term.o terminal.o xfaces.o $(XOBJ) $(GTK_OBJ) $(DBUS_OBJ) \ | 346 | cm.o term.o terminal.o xfaces.o $(XOBJ) $(GTK_OBJ) $(DBUS_OBJ) \ |
| @@ -334,15 +350,14 @@ obj= dispnew.o frame.o scroll.o xdisp.o menu.o $(XMENU_OBJ) window.o \ | |||
| 334 | cmds.o casetab.o casefiddle.o indent.o search.o regex.o undo.o \ | 350 | cmds.o casetab.o casefiddle.o indent.o search.o regex.o undo.o \ |
| 335 | alloc.o data.o doc.o editfns.o callint.o \ | 351 | alloc.o data.o doc.o editfns.o callint.o \ |
| 336 | eval.o floatfns.o fns.o font.o print.o lread.o \ | 352 | eval.o floatfns.o fns.o font.o print.o lread.o \ |
| 337 | syntax.o @unexec@ bytecode.o \ | 353 | syntax.o $(UNEXEC_OBJ) bytecode.o \ |
| 338 | process.o callproc.o \ | 354 | process.o callproc.o \ |
| 339 | region-cache.o sound.o atimer.o \ | 355 | region-cache.o sound.o atimer.o \ |
| 340 | doprnt.o strftime.o intervals.o textprop.o composite.o md5.o \ | 356 | doprnt.o strftime.o intervals.o textprop.o composite.o md5.o \ |
| 341 | $(MSDOS_OBJ) $(NS_OBJ) $(CYGWIN_OBJ) $(FONT_DRIVERS) | 357 | $(MSDOS_OBJ) $(MSDOS_X_OBJ) $(NS_OBJ) $(CYGWIN_OBJ) $(FONT_DRIVERS) |
| 342 | 358 | ||
| 343 | /* Object files used on some machine or other. | 359 | /* Object files used on some machine or other. |
| 344 | These go in the DOC file on all machines | 360 | These go in the DOC file on all machines in case they are needed. */ |
| 345 | in case they are needed there. */ | ||
| 346 | SOME_MACHINE_OBJECTS = dosfns.o msdos.o \ | 361 | SOME_MACHINE_OBJECTS = dosfns.o msdos.o \ |
| 347 | xterm.o xfns.o xmenu.o xselect.o xrdb.o xsmfns.o fringe.o image.o \ | 362 | xterm.o xfns.o xmenu.o xselect.o xrdb.o xsmfns.o fringe.o image.o \ |
| 348 | fontset.o dbusbind.o \ | 363 | fontset.o dbusbind.o \ |
| @@ -374,47 +389,6 @@ POST_ALLOC_OBJ=@POST_ALLOC_OBJ@ | |||
| 374 | otherobj= $(TERMCAP_OBJ) $(PRE_ALLOC_OBJ) $(gmallocobj) $(rallocobj) \ | 389 | otherobj= $(TERMCAP_OBJ) $(PRE_ALLOC_OBJ) $(gmallocobj) $(rallocobj) \ |
| 375 | $(POST_ALLOC_OBJ) $(WIDGET_OBJ) $(LIBOBJS) | 390 | $(POST_ALLOC_OBJ) $(WIDGET_OBJ) $(LIBOBJS) |
| 376 | 391 | ||
| 377 | #ifdef HAVE_MOUSE | ||
| 378 | #define MOUSE_SUPPORT ${lispsource}mouse.elc \ | ||
| 379 | ${lispsource}select.elc ${lispsource}scroll-bar.elc | ||
| 380 | #else | ||
| 381 | #define MOUSE_SUPPORT $(GPM_MOUSE_SUPPORT) | ||
| 382 | #endif | ||
| 383 | |||
| 384 | #ifdef MSDOS | ||
| 385 | #define MSDOS_SUPPORT ${lispsource}ls-lisp.elc ${lispsource}disp-table.elc \ | ||
| 386 | ${lispsource}dos-fns.elc ${lispsource}dos-w32.elc ${lispsource}dos-vars.elc \ | ||
| 387 | ${lispsource}term/internal.elc ${lispsource}term/pc-win.elc | ||
| 388 | |||
| 389 | #else | ||
| 390 | #define MSDOS_SUPPORT | ||
| 391 | #endif | ||
| 392 | |||
| 393 | #ifdef HAVE_WINDOW_SYSTEM | ||
| 394 | #ifdef HAVE_X_WINDOWS | ||
| 395 | #define WINDOW_SUPPORT $(BASE_WINDOW_SUPPORT) $(X_WINDOW_SUPPORT) | ||
| 396 | #else | ||
| 397 | #define WINDOW_SUPPORT $(BASE_WINDOW_SUPPORT) | ||
| 398 | #endif | ||
| 399 | #else | ||
| 400 | #define WINDOW_SUPPORT | ||
| 401 | #endif | ||
| 402 | |||
| 403 | #ifdef WINDOWSNT | ||
| 404 | #define WINNT_SUPPORT ${lispsource}ls-lisp.elc ${lispsource}disp-table.elc \ | ||
| 405 | ${lispsource}dos-w32.elc ${lispsource}w32-vars.elc \ | ||
| 406 | ${lispsource}w32-fns.elc ${lispsource}term/common-win.elc \ | ||
| 407 | ${lispsource}term/w32-win.elc | ||
| 408 | #else | ||
| 409 | #define WINNT_SUPPORT | ||
| 410 | #endif | ||
| 411 | |||
| 412 | #ifdef HAVE_WINDOW_SYSTEM | ||
| 413 | #define TOOLTIP_SUPPORT ${lispsource}tooltip.elc | ||
| 414 | #else | ||
| 415 | #define TOOLTIP_SUPPORT | ||
| 416 | #endif | ||
| 417 | |||
| 418 | /* This is the platform-specific list of Lisp files loaded into the | 392 | /* This is the platform-specific list of Lisp files loaded into the |
| 419 | dumped Emacs. It is arranged like this because it is easier to generate | 393 | dumped Emacs. It is arranged like this because it is easier to generate |
| 420 | it semi-mechanically from loadup.el this way. | 394 | it semi-mechanically from loadup.el this way. |
| @@ -448,7 +422,7 @@ lisp= \ | |||
| 448 | ${lispsource}files.elc \ | 422 | ${lispsource}files.elc \ |
| 449 | ${lispsource}format.elc \ | 423 | ${lispsource}format.elc \ |
| 450 | ${lispsource}facemenu.elc \ | 424 | ${lispsource}facemenu.elc \ |
| 451 | MOUSE_SUPPORT \ | 425 | ${MOUSE_SUPPORT} \ |
| 452 | ${lispsource}emacs-lisp/float-sup.elc \ | 426 | ${lispsource}emacs-lisp/float-sup.elc \ |
| 453 | ${lispsource}frame.elc \ | 427 | ${lispsource}frame.elc \ |
| 454 | ${lispsource}help.elc \ | 428 | ${lispsource}help.elc \ |
| @@ -511,10 +485,9 @@ lisp= \ | |||
| 511 | ${lispsource}vc-hooks.elc \ | 485 | ${lispsource}vc-hooks.elc \ |
| 512 | ${lispsource}ediff-hook.elc \ | 486 | ${lispsource}ediff-hook.elc \ |
| 513 | ${lispsource}epa-hook.elc \ | 487 | ${lispsource}epa-hook.elc \ |
| 514 | TOOLTIP_SUPPORT \ | 488 | ${TOOLTIP_SUPPORT} \ |
| 515 | MSDOS_SUPPORT \ | 489 | ${MSDOS_SUPPORT} \ |
| 516 | WINNT_SUPPORT \ | 490 | ${WINDOW_SUPPORT} \ |
| 517 | WINDOW_SUPPORT \ | ||
| 518 | ${NS_SUPPORT} \ | 491 | ${NS_SUPPORT} \ |
| 519 | ${lispsource}widget.elc \ | 492 | ${lispsource}widget.elc \ |
| 520 | ${lispsource}window.elc \ | 493 | ${lispsource}window.elc \ |
| @@ -634,10 +607,10 @@ SOME_MACHINE_LISP = ../lisp/mouse.elc \ | |||
| 634 | with GCC, we might need gnulib again after them. */ | 607 | with GCC, we might need gnulib again after them. */ |
| 635 | 608 | ||
| 636 | LIBES = $(LOADLIBES) $(LIBS) $(LIBX_BASE) $(LIBX_OTHER) $(LIBSOUND) \ | 609 | LIBES = $(LOADLIBES) $(LIBS) $(LIBX_BASE) $(LIBX_OTHER) $(LIBSOUND) \ |
| 637 | $(RSVG_LIBS) $(DBUS_LIBS) @LIBGPM@ @LIBRESOLV@ $(LIBS_SYSTEM) \ | 610 | $(RSVG_LIBS) $(DBUS_LIBS) $(LIBGPM) $(LIBRESOLV) $(LIBS_SYSTEM) \ |
| 638 | $(LIBS_TERMCAP) $(GETLOADAVG_LIBS) ${GCONF_LIBS} ${LIBSELINUX_LIBS} \ | 611 | $(LIBS_TERMCAP) $(GETLOADAVG_LIBS) ${GCONF_LIBS} ${LIBSELINUX_LIBS} \ |
| 639 | @FREETYPE_LIBS@ @FONTCONFIG_LIBS@ @LIBOTF_LIBS@ @M17N_FLT_LIBS@ \ | 612 | $(FREETYPE_LIBS) $(FONTCONFIG_LIBS) $(LIBOTF_LIBS) $(M17N_FLT_LIBS) \ |
| 640 | $(GNULIB_VAR) @LIB_MATH@ @LIB_STANDARD@ $(GNULIB_VAR) | 613 | $(GNULIB_VAR) $(LIB_MATH) $(LIB_STANDARD) $(GNULIB_VAR) |
| 641 | 614 | ||
| 642 | all: emacs${EXEEXT} $(OTHER_FILES) | 615 | all: emacs${EXEEXT} $(OTHER_FILES) |
| 643 | 616 | ||
| @@ -682,7 +655,7 @@ buildobj.h: Makefile | |||
| 682 | temacs${EXEEXT}: $(LOCALCPP) $(START_FILES) stamp-oldxmenu ${obj} ${otherobj} prefix-args${EXEEXT} | 655 | temacs${EXEEXT}: $(LOCALCPP) $(START_FILES) stamp-oldxmenu ${obj} ${otherobj} prefix-args${EXEEXT} |
| 683 | #ifdef NS_IMPL_GNUSTEP | 656 | #ifdef NS_IMPL_GNUSTEP |
| 684 | $(CC) -rdynamic YMF_PASS_LDFLAGS ( ${TEMACS_LDFLAGS} \ | 657 | $(CC) -rdynamic YMF_PASS_LDFLAGS ( ${TEMACS_LDFLAGS} \ |
| 685 | -L@GNUSTEP_SYSTEM_LIBRARIES@ -lgnustep-gui -lgnustep-base \ | 658 | -L$(GNUSTEP_SYSTEM_LIBRARIES) -lgnustep-gui -lgnustep-base \ |
| 686 | -lobjc $(CONFIG_SYSTEM_LIBS) -lpthread ) -o temacs \ | 659 | -lobjc $(CONFIG_SYSTEM_LIBS) -lpthread ) -o temacs \ |
| 687 | ${obj} ${otherobj} ${LIBES} | 660 | ${obj} ${otherobj} ${LIBES} |
| 688 | #else | 661 | #else |
| @@ -696,9 +669,8 @@ prefix-args${EXEEXT}: prefix-args.o $(config_h) | |||
| 696 | 669 | ||
| 697 | #if defined (HAVE_X_WINDOWS) && defined (HAVE_X11) && defined (HAVE_MENUS) && ! defined (USE_GTK) | 670 | #if defined (HAVE_X_WINDOWS) && defined (HAVE_X11) && defined (HAVE_MENUS) && ! defined (USE_GTK) |
| 698 | 671 | ||
| 699 | /* We use stamp-xmenu with these two deps | 672 | /* We use stamp-xmenu with these two deps to both ensure that lwlib |
| 700 | to both ensure that lwlib gets remade based on its dependencies | 673 | gets remade based on its dependencies in its own makefile, |
| 701 | in its own makefile, | ||
| 702 | and remake temacs if lwlib gets changed by this. */ | 674 | and remake temacs if lwlib gets changed by this. */ |
| 703 | stamp-oldxmenu: ${OLDXMENU} ../src/$(OLDXMENU) | 675 | stamp-oldxmenu: ${OLDXMENU} ../src/$(OLDXMENU) |
| 704 | touch stamp-oldxmenu | 676 | touch stamp-oldxmenu |
| @@ -752,6 +724,8 @@ doc.o: buildobj.h | |||
| 752 | Eg callproc.c only depends on w32.h for WINDOWSNT builds. | 724 | Eg callproc.c only depends on w32.h for WINDOWSNT builds. |
| 753 | One way to fix this would be to replace w32.h (etc) by $(W32_H), | 725 | One way to fix this would be to replace w32.h (etc) by $(W32_H), |
| 754 | a variable set by configure. Does not seem worth the trouble. | 726 | a variable set by configure. Does not seem worth the trouble. |
| 727 | Since the w32 build does not even use this file, you might ask | ||
| 728 | why these dependencies are here at all... | ||
| 755 | 729 | ||
| 756 | nsgui.h: In fact, every .o file depends directly or indirectly on | 730 | nsgui.h: In fact, every .o file depends directly or indirectly on |
| 757 | dispextern.h and hence nsgui.h under NS. But the ones that actually | 731 | dispextern.h and hence nsgui.h under NS. But the ones that actually |
| @@ -961,8 +935,8 @@ xsmfns.o: xsmfns.c lisp.h $(config_h) systime.h sysselect.h termhooks.h xterm.h | |||
| 961 | xsettings.o: xterm.h xsettings.h lisp.h frame.h termhooks.h $(config_h) \ | 935 | xsettings.o: xterm.h xsettings.h lisp.h frame.h termhooks.h $(config_h) \ |
| 962 | dispextern.h keyboard.h systime.h coding.h composite.h blockinput.h atimer.h \ | 936 | dispextern.h keyboard.h systime.h coding.h composite.h blockinput.h atimer.h \ |
| 963 | termopts.h | 937 | termopts.h |
| 964 | /* The files of Lisp proper */ | ||
| 965 | 938 | ||
| 939 | /* The files of Lisp proper. */ | ||
| 966 | alloc.o: alloc.c process.h frame.h window.h buffer.h puresize.h syssignal.h \ | 940 | alloc.o: alloc.c process.h frame.h window.h buffer.h puresize.h syssignal.h \ |
| 967 | keyboard.h blockinput.h atimer.h systime.h character.h lisp.h $(config_h) \ | 941 | keyboard.h blockinput.h atimer.h systime.h character.h lisp.h $(config_h) \ |
| 968 | $(INTERVALS_H) termhooks.h | 942 | $(INTERVALS_H) termhooks.h |
| @@ -984,7 +958,7 @@ lread.o: lread.c commands.h keyboard.h buffer.h epaths.h character.h \ | |||
| 984 | charset.h lisp.h $(config_h) $(INTERVALS_H) termhooks.h coding.h msdos.h \ | 958 | charset.h lisp.h $(config_h) $(INTERVALS_H) termhooks.h coding.h msdos.h \ |
| 985 | systime.h frame.h blockinput.h atimer.h | 959 | systime.h frame.h blockinput.h atimer.h |
| 986 | 960 | ||
| 987 | /* Text properties support */ | 961 | /* Text properties support. */ |
| 988 | composite.o: composite.c buffer.h character.h coding.h font.h ccl.h \ | 962 | composite.o: composite.c buffer.h character.h coding.h font.h ccl.h \ |
| 989 | frame.h termhooks.h $(INTERVALS_H) window.h lisp.h $(config_h) | 963 | frame.h termhooks.h $(INTERVALS_H) window.h lisp.h $(config_h) |
| 990 | intervals.o: intervals.c buffer.h $(INTERVALS_H) keyboard.h puresize.h \ | 964 | intervals.o: intervals.c buffer.h $(INTERVALS_H) keyboard.h puresize.h \ |
| @@ -995,8 +969,7 @@ textprop.o: textprop.c buffer.h window.h $(INTERVALS_H) \ | |||
| 995 | #endif /* ! AUTO_DEPEND */ | 969 | #endif /* ! AUTO_DEPEND */ |
| 996 | 970 | ||
| 997 | /* System-specific programs to be made. | 971 | /* System-specific programs to be made. |
| 998 | OTHER_FILES | 972 | OTHER_FILES select which of these should be compiled. */ |
| 999 | select which of these should be compiled. */ | ||
| 1000 | 973 | ||
| 1001 | #ifdef HAVE_NS | 974 | #ifdef HAVE_NS |
| 1002 | ${ns_appdir}: ${ns_appsrc} | 975 | ${ns_appdir}: ${ns_appsrc} |
diff --git a/src/config.in b/src/config.in index 5fb0cd7d569..35530943682 100644 --- a/src/config.in +++ b/src/config.in | |||
| @@ -44,12 +44,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 44 | /* Define to 1 if using `getloadavg.c'. */ | 44 | /* Define to 1 if using `getloadavg.c'. */ |
| 45 | #undef C_GETLOADAVG | 45 | #undef C_GETLOADAVG |
| 46 | 46 | ||
| 47 | /* Define C_SWITCH_X_SITE to contain any special flags your compiler may need | ||
| 48 | to deal with X Windows. For instance, if you've defined HAVE_X_WINDOWS | ||
| 49 | above and your X include files aren't in a place that your compiler can | ||
| 50 | find on its own, you might want to add "-I/..." or something similar. */ | ||
| 51 | #undef C_SWITCH_X_SITE | ||
| 52 | |||
| 53 | /* Define to 1 for DGUX with <sys/dg_sys_info.h>. */ | 47 | /* Define to 1 for DGUX with <sys/dg_sys_info.h>. */ |
| 54 | #undef DGUX | 48 | #undef DGUX |
| 55 | 49 | ||
| @@ -488,6 +482,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 488 | /* Define to 1 if you have a working `mmap' system call. */ | 482 | /* Define to 1 if you have a working `mmap' system call. */ |
| 489 | #undef HAVE_MMAP | 483 | #undef HAVE_MMAP |
| 490 | 484 | ||
| 485 | /* Define if you have mouse support. */ | ||
| 486 | #undef HAVE_MOUSE | ||
| 487 | |||
| 491 | /* Define to 1 if you have the `mremap' function. */ | 488 | /* Define to 1 if you have the `mremap' function. */ |
| 492 | #undef HAVE_MREMAP | 489 | #undef HAVE_MREMAP |
| 493 | 490 | ||
| @@ -743,6 +740,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 743 | /* Define to 1 if you have the <vfork.h> header file. */ | 740 | /* Define to 1 if you have the <vfork.h> header file. */ |
| 744 | #undef HAVE_VFORK_H | 741 | #undef HAVE_VFORK_H |
| 745 | 742 | ||
| 743 | /* Define if you have a window system. */ | ||
| 744 | #undef HAVE_WINDOW_SYSTEM | ||
| 745 | |||
| 746 | /* Define to 1 if `fork' works. */ | 746 | /* Define to 1 if `fork' works. */ |
| 747 | #undef HAVE_WORKING_FORK | 747 | #undef HAVE_WORKING_FORK |
| 748 | 748 | ||
| @@ -804,12 +804,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 804 | /* Define to use Kerberos 5 instead of Kerberos 4. */ | 804 | /* Define to use Kerberos 5 instead of Kerberos 4. */ |
| 805 | #undef KERBEROS5 | 805 | #undef KERBEROS5 |
| 806 | 806 | ||
| 807 | /* Define LD_SWITCH_X_SITE to contain any special flags your loader may need | ||
| 808 | to deal with X Windows. For instance, if you've defined HAVE_X_WINDOWS | ||
| 809 | above and your X libraries aren't in a place that your loader can find on | ||
| 810 | its own, you might want to add "-L/..." or something similar. */ | ||
| 811 | #undef LD_SWITCH_X_SITE | ||
| 812 | |||
| 813 | /* Define to 1 if localtime caches TZ. */ | 807 | /* Define to 1 if localtime caches TZ. */ |
| 814 | #undef LOCALTIME_CACHE | 808 | #undef LOCALTIME_CACHE |
| 815 | 809 | ||
| @@ -1016,12 +1010,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 1016 | #undef volatile | 1010 | #undef volatile |
| 1017 | 1011 | ||
| 1018 | 1012 | ||
| 1019 | /* If we're using X11/Carbon/GNUstep, define some consequences. */ | ||
| 1020 | #if defined(HAVE_X_WINDOWS) || defined(HAVE_NS) | ||
| 1021 | #define HAVE_WINDOW_SYSTEM | ||
| 1022 | #define HAVE_MOUSE | ||
| 1023 | #endif | ||
| 1024 | |||
| 1025 | /* Define AMPERSAND_FULL_NAME if you use the convention | 1013 | /* Define AMPERSAND_FULL_NAME if you use the convention |
| 1026 | that & in the full name stands for the login id. */ | 1014 | that & in the full name stands for the login id. */ |
| 1027 | /* Turned on June 1996 supposing nobody will mind it. */ | 1015 | /* Turned on June 1996 supposing nobody will mind it. */ |
| @@ -1046,7 +1034,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 1046 | #endif | 1034 | #endif |
| 1047 | #endif /* __FreeBSD__ || __NetBSD__ || __linux__ */ | 1035 | #endif /* __FreeBSD__ || __NetBSD__ || __linux__ */ |
| 1048 | 1036 | ||
| 1049 | /* If using GNU, then support inline function declarations. */ | 1037 | /* If using GNU, then support inline function declarations. */ |
| 1050 | /* Don't try to switch on inline handling as detected by AC_C_INLINE | 1038 | /* Don't try to switch on inline handling as detected by AC_C_INLINE |
| 1051 | generally, because even if non-gcc compilers accept `inline', they | 1039 | generally, because even if non-gcc compilers accept `inline', they |
| 1052 | may reject `extern inline'. */ | 1040 | may reject `extern inline'. */ |
| @@ -1071,7 +1059,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 1071 | /* Set up some defines, C and LD flags for NeXTstep interface on GNUstep. | 1059 | /* Set up some defines, C and LD flags for NeXTstep interface on GNUstep. |
| 1072 | (There is probably a better place to do this, but right now the Cocoa | 1060 | (There is probably a better place to do this, but right now the Cocoa |
| 1073 | side does this in s/darwin.h and we cannot | 1061 | side does this in s/darwin.h and we cannot |
| 1074 | parallel this exactly since GNUstep is multi-OS. */ | 1062 | parallel this exactly since GNUstep is multi-OS. */ |
| 1075 | #ifdef HAVE_NS | 1063 | #ifdef HAVE_NS |
| 1076 | # ifdef NS_IMPL_GNUSTEP | 1064 | # ifdef NS_IMPL_GNUSTEP |
| 1077 | /* GNUstep needs a bit more pure memory. Of the existing knobs, | 1065 | /* GNUstep needs a bit more pure memory. Of the existing knobs, |
| @@ -1168,7 +1156,7 @@ extern char *getenv (); | |||
| 1168 | #include "string.h" | 1156 | #include "string.h" |
| 1169 | #endif | 1157 | #endif |
| 1170 | #ifdef HAVE_STRINGS_H | 1158 | #ifdef HAVE_STRINGS_H |
| 1171 | #include "strings.h" /* May be needed for bcopy & al. */ | 1159 | #include "strings.h" /* May be needed for bcopy & al. */ |
| 1172 | #endif | 1160 | #endif |
| 1173 | #ifdef HAVE_STDLIB_H | 1161 | #ifdef HAVE_STDLIB_H |
| 1174 | #include <stdlib.h> | 1162 | #include <stdlib.h> |
diff --git a/src/s/netbsd.h b/src/s/netbsd.h index b8df9014ecc..4874ec9af56 100644 --- a/src/s/netbsd.h +++ b/src/s/netbsd.h | |||
| @@ -26,8 +26,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 26 | 26 | ||
| 27 | #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base) | 27 | #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base) |
| 28 | 28 | ||
| 29 | #define AMPERSAND_FULL_NAME | ||
| 30 | |||
| 31 | /* On post 1.3 releases of NetBSD, gcc -nostdlib also clears | 29 | /* On post 1.3 releases of NetBSD, gcc -nostdlib also clears |
| 32 | the library search parth, i.e. it won't search /usr/lib | 30 | the library search parth, i.e. it won't search /usr/lib |
| 33 | for libc and friends. Using -nostartfiles instead avoids | 31 | for libc and friends. Using -nostartfiles instead avoids |