Mercurial > emacs
comparison mac/inc/config.h @ 32752:923b8d6d8277
Initial check-in: changes for building Emacs under Mac OS.
2000-10-23 Andrew Choi <akochoi@i-cable.com>
* dispextern.h [macintosh]: Include macgui.h instead of macterm.h.
* dispnew.c [macintosh]: Include macterm.h.
(init_display) [macintosh]: initialization for window system.
* emacs.c (main) [macintosh]: Call syms_of_textprop,
syms_of_macfns, syms_of_ccl, syms_of_fontset, syms_of_xterm,
syms_of_search, x_term_init, and init_keyboard before calling
init_window_once. Also, call syms_of_xmenu.
* fontset.c (syms_of_fontset) [macintosh]: Set ASCII font of
default fontset to Monaco.
* frame.c [macintosh]: Include macterm.h. Remove declarations of
NewMacWindow and DisposeMacWindow.
(make_terminal_frame) [macintosh]: Call make_mac_terminal_frame
instead of calling NewMacWindow and setting fields of
f->output_data.mac directly. Call init_frame_faces.
(Fdelete_frame) [macintosh]: Remove unused code.
(Fmodify_frame_parameters) [macintosh]: Call
x_set_frame_parameters instead of mac_set_frame_parameters.
* frame.h [macintosh]: Define menu_bar_lines field in struct
frame. Define FRAME_EXTERNAL_MENU_BAR macro.
* keyboard.c [macintosh]: Include macterm.h.
(kbd_buffer_get_event) [macintosh]: Generate delete_window_event
and menu_bar_activate_event type events as for X and NT.
(make_lispy_event) [macintosh]: Construct lisp events of type
MENU_BAR_EVENT as for X and NT.
* sysdep.c [macintosh]: Remove declaration for sys_signal.
Include stdlib.h. Remove definition of Vx_bitmap_file_path.
(sys_subshell) [macintosh]: Remove definition entirely.
(init_sys_modes) [macintosh]: Do not initialize Vwindow_system and
Vwindow_system_version here. Remove initialization of
Vx_bitmap_file_path.
(read_input_waiting): Correct the number of parameters passed to
read_socket_hook.
Move all Macintosh functions to mac/mac.c.
* term.c [macintosh]: Include macterm.h.
* window.c [macintosh]: Include macterm.h.
* xdisp.c [macintosh]: Include macterm.h. Declare
set_frame_menubar and pending_menu_activation.
(echo_area_display) [macintosh]: Do not return if terminal frame
is the selected frame.
(update_menu_bar) [macintosh]: Check FRAME_EXTERNAL_MENU_BAR (f).
Allow only the selected frame to set menu bar.
(redisplay_window) [macintosh]: Obtain menu bar to redisplay by
calling FRAME_EXTERNAL_MENU_BAR (f).
(display_menu_bar) [macintosh]: Check FRAME_MAC_P (f).
* xfaces.c [macintosh]: Include macterm.h. Define x_display_info
and check_x. Declare XCreateGC. Define x_create_gc and
x_free_gc. Initialize font_sort_order.
(x_face_list_fonts) [macintosh]: Use the same code as WINDOWSNT,
but call x_list_fonts instead of w32_list_fonts.
(Finternal_face_x_get_resource) [macintosh]: Do not call
display_x_get_resource.
(prepare_face_for_display) [macintosh]: Set xgcv.font.
(realize_x_face) [macintosh]: Load the font if it is specified in
ATTRS.
(syms_of_xfaces) [macintosh]: Initialize Vscalable_fonts_allowed
to Qt.
* cus-edit.el (custom-button-face): Use 3D look for mac.
(custom-button-pressed-face): Likewise.
* faces.el (set-face-attributes-from-resources): Handle mac frames
in the same way as x and w32 frames.
(face-valid-attribute-values): Likewise.
(read-face-attribute): Likewise.
(defined-colors): Likewise.
(color-defined-p): Likewise.
(color-values): Likewise.
(display-grayscale-p): Likewise.
(face-set-after-frame-default): Likewise.
(mode-line): Same default face as for x and w32.
(tool-bar): Likewise.
* frame.el: Remove call to frame-notice-user-settings at end of
the file.
* info.el (Info-fontify-node): make underlines invisible for mac
as for x, pc, and w32 frame types.
* term/mac-win.el: New file.
author | Andrew Choi <akochoi@shaw.ca> |
---|---|
date | Sun, 22 Oct 2000 16:50:16 +0000 |
parents | |
children | 01b93e5e53a7 |
comparison
equal
deleted
inserted
replaced
32751:2a657a9fae69 | 32752:923b8d6d8277 |
---|---|
1 /* Handcrafted Emacs site configuration file for Mac OS. -*- C -*- */ | |
2 | |
3 /* GNU Emacs site configuration template file. -*- C -*- | |
4 Copyright (C) 1988, 1993, 1994, 1999, 2000 Free Software Foundation, Inc. | |
5 | |
6 This file is part of GNU Emacs. | |
7 | |
8 GNU Emacs is free software; you can redistribute it and/or modify | |
9 it under the terms of the GNU General Public License as published by | |
10 the Free Software Foundation; either version 2, or (at your option) | |
11 any later version. | |
12 | |
13 GNU Emacs is distributed in the hope that it will be useful, | |
14 but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 GNU General Public License for more details. | |
17 | |
18 You should have received a copy of the GNU General Public License | |
19 along with GNU Emacs; see the file COPYING. If not, write to the | |
20 Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
21 Boston, MA 02111-1307, USA. */ | |
22 | |
23 | |
24 /* No code in Emacs #includes config.h twice, but some of the code | |
25 intended to work with other packages as well (like gmalloc.c) | |
26 think they can include it as many times as they like. */ | |
27 #ifndef EMACS_CONFIG_H | |
28 #define EMACS_CONFIG_H | |
29 | |
30 /* These are all defined in the top-level Makefile by configure. | |
31 They're here only for reference. */ | |
32 | |
33 /* Define GNU_MALLOC if you want to use the GNU memory allocator. */ | |
34 /* #undef GNU_MALLOC */ | |
35 | |
36 /* Define if you are using the GNU C Library. */ | |
37 /* #undef DOUG_LEA_MALLOC */ | |
38 | |
39 /* Define REL_ALLOC if you want to use the relocating allocator for | |
40 buffer space. */ | |
41 /* #undef REL_ALLOC */ | |
42 | |
43 /* Define HAVE_X_WINDOWS if you want to use the X window system. */ | |
44 /* #undef HAVE_X_WINDOWS */ | |
45 | |
46 /* Define HAVE_X11 if you want to use version 11 of X windows. | |
47 Otherwise, Emacs expects to use version 10. */ | |
48 /* #undef HAVE_X11 */ | |
49 | |
50 /* Define if using an X toolkit. */ | |
51 /* #undef USE_X_TOOLKIT */ | |
52 | |
53 /* Define this if you're using XFree386. */ | |
54 /* #undef HAVE_XFREE386 */ | |
55 | |
56 /* Define this if you have Motif 2.1 or newer. */ | |
57 /* #undef HAVE_MOTIF_2_1 */ | |
58 | |
59 /* Define HAVE_MENUS if you have mouse menus. | |
60 (This is automatic if you use X, but the option to specify it remains.) | |
61 It is also defined with other window systems that support xmenu.c. */ | |
62 #define HAVE_MENUS 1 | |
63 | |
64 /* Define if we have the X11R6 or newer version of Xt. */ | |
65 /* #undef HAVE_X11XTR6 */ | |
66 | |
67 /* Define if we have the X11R6 or newer version of Xlib. */ | |
68 /* #undef HAVE_X11R6 */ | |
69 | |
70 /* Define if we have the X11R5 or newer version of Xlib. */ | |
71 /* #undef HAVE_X11R5 */ | |
72 | |
73 /* Define if we have the XPM libary. */ | |
74 /* #undef HAVE_XPM */ | |
75 | |
76 /* Define if we have the PNG library. */ | |
77 /* #undef HAVE_PNG */ | |
78 | |
79 /* Define if we have the JPEG library. */ | |
80 /* #undef HAVE_JPEG */ | |
81 | |
82 /* Define if we have the TIFF library. */ | |
83 /* #undef HAVE_TIFF */ | |
84 | |
85 /* Define if we have the GIF library. */ | |
86 /* #undef HAVE_GIF */ | |
87 | |
88 /* Define if libXaw3d is available. */ | |
89 /* #undef HAVE_XAW3D */ | |
90 | |
91 /* Define if we should use toolkit scroll bars. */ | |
92 /* #undef USE_TOOLKIT_SCROLL_BARS */ | |
93 | |
94 /* Define if we should use XIM, if it is available. */ | |
95 /* #undef USE_XIM */ | |
96 | |
97 /* Define if netdb.h declares h_errno. */ | |
98 /* #undef HAVE_H_ERRNO */ | |
99 | |
100 /* If we're using any sort of window system, define some consequences. */ | |
101 #ifdef HAVE_X_WINDOWS | |
102 #define HAVE_WINDOW_SYSTEM | |
103 #define MULTI_KBOARD | |
104 #define HAVE_MOUSE | |
105 #endif | |
106 | |
107 /* Define for MacOS */ | |
108 #define HAVE_WINDOW_SYSTEM 1 | |
109 #define HAVE_MOUSE 1 | |
110 | |
111 /* Define USER_FULL_NAME to return a string | |
112 that is the user's full name. | |
113 It can assume that the variable `pw' | |
114 points to the password file entry for this user. | |
115 | |
116 At some sites, the pw_gecos field contains | |
117 the user's full name. If neither this nor any other | |
118 field contains the right thing, use pw_name, | |
119 giving the user's login name, since that is better than nothing. */ | |
120 #define USER_FULL_NAME pw->pw_name | |
121 | |
122 /* Define AMPERSAND_FULL_NAME if you use the convention | |
123 that & in the full name stands for the login id. */ | |
124 /* Turned on June 1996 supposing nobody will mind it. */ | |
125 /* #undef AMPERSAND_FULL_NAME */ | |
126 | |
127 /* Things set by --with options in the configure script. */ | |
128 | |
129 /* Define to support POP mail retrieval. */ | |
130 /* #undef MAIL_USE_POP 1 */ | |
131 | |
132 /* Define to support Kerberos-authenticated POP mail retrieval. */ | |
133 /* #undef KERBEROS */ | |
134 /* Define to use Kerberos 5 instead of Kerberos 4 */ | |
135 /* #undef KERBEROS5 */ | |
136 /* Define to support GSS-API in addition to (or instead of) Kerberos */ | |
137 /* #undef GSSAPI */ | |
138 | |
139 /* Define to support using a Hesiod database to find the POP server. */ | |
140 /* #undef HESIOD */ | |
141 | |
142 /* Header for Voxware or PCM sound card driver. */ | |
143 /* #undef HAVE_MACHINE_SOUNDCARD_H */ | |
144 /* #undef HAVE_SYS_SOUNDCARD_H */ | |
145 /* #undef HAVE_SOUNDCARD_H */ | |
146 | |
147 /* Define HAVE_SOUND if we have sound support. We know it works | |
148 and compiles only on the specified platforms. For others, | |
149 it probably doesn't make sense to try. */ | |
150 | |
151 #if defined __FreeBSD__ || defined __NetBSD__ || defined __linux__ | |
152 #ifdef HAVE_MACHINE_SOUNDCARD_H | |
153 #define HAVE_SOUND 1 | |
154 #endif | |
155 #ifdef HAVE_SYS_SOUNDCARD_H | |
156 #define HAVE_SOUND 1 | |
157 #endif | |
158 #ifdef HAVE_SOUNDCARD_H | |
159 #define HAVE_SOUND 1 | |
160 #endif | |
161 #endif /* __FreeBSD__ || __NetBSD__ || __linux__ */ | |
162 | |
163 /* Some things figured out by the configure script, grouped as they are in | |
164 configure.in. */ | |
165 #ifndef _ALL_SOURCE /* suppress warning if this is pre-defined */ | |
166 /* #undef _ALL_SOURCE */ | |
167 #endif | |
168 | |
169 /* #undef HAVE_SYS_SELECT_H */ | |
170 /* #undef HAVE_SYS_TIMEB_H */ | |
171 #define HAVE_SYS_TIME_H 1 | |
172 | |
173 #ifdef __MRC__ | |
174 #undef HAVE_UNISTD_H | |
175 #else /* CodeWarrior */ | |
176 #define HAVE_UNISTD_H 1 | |
177 #endif | |
178 | |
179 #define HAVE_UTIME_H 1 | |
180 /* #undef HAVE_LINUX_VERSION_H */ | |
181 /* #undef HAVE_SYS_SYSTEMINFO_H */ | |
182 /* #undef HAVE_TERMIOS_H */ | |
183 #define HAVE_LIMITS_H 1 | |
184 #define HAVE_STRING_H 1 | |
185 /* #undef HAVE_STDLIB_H */ | |
186 /* #undef HAVE_TERMCAP_H */ | |
187 /* #undef HAVE_TERM_H */ | |
188 /* #undef HAVE_STDIO_EXT_H */ | |
189 /* #undef STDC_HEADERS */ | |
190 /* #undef TIME_WITH_SYS_TIME */ | |
191 /* #undef HAVE_VFORK_H */ | |
192 #define HAVE_FCNTL_H 1 | |
193 /* #undef HAVE_SETITIMER */ | |
194 /* #undef HAVE_UALARM */ | |
195 /* #undef HAVE_SYS_WAIT_H */ | |
196 | |
197 /* #undef HAVE_LIBDNET */ | |
198 /* #undef HAVE_LIBPTHREADS */ | |
199 /* #undef HAVE_LIBRESOLV */ | |
200 /* #undef HAVE_LIBXMU */ | |
201 /* #undef HAVE_LIBNCURSES */ | |
202 /* #undef HAVE_LIBINTL */ | |
203 /* #undef HAVE_LIBXP */ | |
204 | |
205 /* movemail Kerberos support */ | |
206 /* libraries */ | |
207 /* #undef HAVE_LIBKRB */ | |
208 /* #undef HAVE_LIBKRB4 */ | |
209 /* #undef HAVE_LIBDES */ | |
210 /* #undef HAVE_LIBDES425 */ | |
211 /* #undef HAVE_LIBKRB5 */ | |
212 /* #undef HAVE_LIBCRYPTO */ | |
213 /* #undef HAVE_LIBCOM_ERR */ | |
214 /* header files */ | |
215 /* #undef HAVE_KRB5_H */ | |
216 /* #undef HAVE_DES_H */ | |
217 /* #undef HAVE_KRB_H */ | |
218 /* #undef HAVE_KERBEROSIV_DES_H */ | |
219 /* #undef HAVE_KERBEROSIV_KRB_H */ | |
220 /* #undef HAVE_KERBEROS_DES_H */ | |
221 /* #undef HAVE_KERBEROS_KRB_H */ | |
222 /* #undef HAVE_COM_ERR_H */ | |
223 | |
224 /* GSS-API libraries and headers */ | |
225 /* #undef HAVE_LIBGSSAPI_KRB5 */ | |
226 /* #undef HAVE_LIBGSSAPI */ | |
227 /* #undef HAVE_GSSAPI_H */ | |
228 | |
229 /* Mail-file locking */ | |
230 /* #undef HAVE_LIBMAIL */ | |
231 /* #undef HAVE_MAILLOCK_H */ | |
232 /* #undef HAVE_TOUCHLOCK */ | |
233 | |
234 /* #undef HAVE_ALLOCA_H */ | |
235 | |
236 /* #undef HAVE_DEV_PTMX */ | |
237 | |
238 #define HAVE_GETTIMEOFDAY 1 | |
239 /* If we don't have gettimeofday, | |
240 the test for GETTIMEOFDAY_ONE_ARGUMENT may succeed, | |
241 but we should ignore it. */ | |
242 #ifdef HAVE_GETTIMEOFDAY | |
243 #define GETTIMEOFDAY_ONE_ARGUMENT 1 | |
244 #endif | |
245 /* #undef HAVE_GETHOSTNAME */ | |
246 /* #undef HAVE_GETDOMAINNAME */ | |
247 /* #undef HAVE_DUP2 */ | |
248 #define HAVE_RENAME 1 | |
249 #define HAVE_CLOSEDIR 1 | |
250 | |
251 /* #undef TM_IN_SYS_TIME */ | |
252 /* #undef HAVE_TM_ZONE */ | |
253 /* #undef HAVE_TZNAME */ | |
254 /* #undef HAVE_TM_GMTOFF */ | |
255 | |
256 /* #undef const */ | |
257 | |
258 /* #undef HAVE_LONG_FILE_NAMES */ | |
259 | |
260 /* #undef CRAY_STACKSEG_END */ | |
261 | |
262 /* #undef UNEXEC_SRC unexelf.c | |
263 | |
264 /* #undef HAVE_LIBXBSD */ | |
265 /* #undef HAVE_XRMSETDATABASE */ | |
266 /* #undef HAVE_XSCREENRESOURCESTRING */ | |
267 /* #undef HAVE_XSCREENNUMBEROFSCREEN */ | |
268 /* #undef HAVE_XSETWMPROTOCOLS */ | |
269 | |
270 #define HAVE_MKDIR 1 | |
271 #define HAVE_RMDIR 1 | |
272 /* #undef HAVE_SYSINFO */ | |
273 /* #undef HAVE_RANDOM */ | |
274 /* #undef HAVE_LRAND48 */ | |
275 /* #undef HAVE_BCOPY */ | |
276 /* #undef HAVE_BCMP */ | |
277 #define HAVE_LOGB 1 | |
278 #define HAVE_FREXP 1 | |
279 #define HAVE_FMOD 1 | |
280 | |
281 #ifdef __MRC__ | |
282 #undef HAVE_RINT | |
283 #else /* CodeWarrior */ | |
284 #define HAVE_RINT | |
285 #endif | |
286 | |
287 /* #undef HAVE_CBRT */ | |
288 /* #undef HAVE_FTIME */ | |
289 /* #undef HAVE_RES_INIT */ /* For -lresolv on Suns. */ | |
290 /* #undef HAVE_SETSID */ | |
291 /* #undef HAVE_FPATHCONF */ | |
292 #define HAVE_SELECT 1 | |
293 /* #undef HAVE_MKTIME */ | |
294 /* #undef BROKEN_MKTIME */ /* have mktime but it's broken */ | |
295 /* #undef HAVE_EUIDACCESS */ | |
296 /* #undef HAVE_GETPAGESIZE */ | |
297 /* #undef HAVE_TZSET */ | |
298 #define HAVE_SETLOCALE 1 | |
299 /* #undef HAVE_UTIMES */ | |
300 /* #undef HAVE_SETRLIMIT */ | |
301 /* #undef HAVE_SETPGID */ | |
302 /* #undef HAVE_GETCWD */ | |
303 #define HAVE_GETWD 1 | |
304 /* #undef HAVE_SHUTDOWN */ | |
305 #define HAVE_STRFTIME 1 | |
306 /* #undef HAVE_GETADDRINFO */ | |
307 /* #undef HAVE___FPENDING */ | |
308 /* #undef HAVE_FTELLO */ | |
309 /* #undef HAVE_GETLOADAVG */ | |
310 /* #undef NLIST_STRUCT */ | |
311 /* #undef NLIST_NAME_UNION */ | |
312 /* #undef HAVE_MBLEN */ | |
313 /* #undef HAVE_MBRLEN */ | |
314 /* #undef HAVE_STRSIGNAL */ | |
315 /* #undef HAVE_GRANTPT */ | |
316 /* #undef HAVE_GETPT */ | |
317 /* #undef HAVE_SPEED_T */ /* speed_t typedef in termios.h */ | |
318 /* #undef HAVE_STRUCT_TIMEZONE */ | |
319 | |
320 /* #undef LOCALTIME_CACHE */ | |
321 /* #undef HAVE_INET_SOCKETS */ | |
322 | |
323 /* #undef HAVE_AIX_SMT_EXP */ | |
324 | |
325 /* #undef vfork */ | |
326 | |
327 /* Define if you have the ANSI `strerror' function. | |
328 Otherwise you must have the variable `char *sys_errlist[]'. */ | |
329 #define HAVE_STRERROR 1 | |
330 | |
331 /* Define if `sys_siglist' is declared by <signal.h>. */ | |
332 /* #undef SYS_SIGLIST_DECLARED */ | |
333 | |
334 /* Define if `struct utimbuf' is declared by <utime.h>. */ | |
335 #define HAVE_STRUCT_UTIMBUF 1 | |
336 | |
337 /* Define if `struct timeval' is declared by <sys/time.h>. */ | |
338 #define HAVE_TIMEVAL 1 | |
339 | |
340 /* If using GNU, then support inline function declarations. */ | |
341 /* Don't try to switch on inline handling as detected by AC_C_INLINE | |
342 generally, because even if non-gcc compilers accept `inline', they | |
343 may reject `extern inline'. */ | |
344 #ifdef __GNUC__ | |
345 #define INLINE __inline__ | |
346 #else | |
347 #define INLINE | |
348 #endif | |
349 | |
350 /* Define this if you don't have struct exception in math.h. */ | |
351 /* #undef NO_MATHERR */ | |
352 | |
353 /* Define as `void' if your compiler accepts `void *'; otherwise | |
354 define as `char'. */ | |
355 #define POINTER_TYPE void | |
356 #define PTR POINTER_TYPE * /* For strftime.c. */ | |
357 | |
358 /* Number of bits in a file offset, on hosts where this is settable. */ | |
359 /* #undef _FILE_OFFSET_BITS */ | |
360 /* Define to make ftello visible on some hosts (e.g. HP-UX 10.20). */ | |
361 /* #undef _LARGEFILE_SOURCE */ | |
362 /* Define for large files, on AIX-style hosts. */ | |
363 /* #undef _LARGE_FILES */ | |
364 /* Define to make ftello visible on some hosts (e.g. glibc 2.1.3). */ | |
365 /* #undef _XOPEN_SOURCE */ | |
366 | |
367 #ifdef __MRC__ | |
368 #define EMACS_CONFIGURATION "macos-mpw" | |
369 #else /* Assume CodeWarrior */ | |
370 #define EMACS_CONFIGURATION "macos-cw" | |
371 #endif | |
372 | |
373 #define EMACS_CONFIG_OPTIONS "" | |
374 | |
375 /* The configuration script defines opsysfile to be the name of the | |
376 s/SYSTEM.h file that describes the system type you are using. The file | |
377 is chosen based on the configuration name you give. | |
378 | |
379 See the file ../etc/MACHINES for a list of systems and the | |
380 configuration names to use for them. | |
381 | |
382 See s/template.h for documentation on writing s/SYSTEM.h files. */ | |
383 #undef config_opsysfile | |
384 #include "s-mac.h" | |
385 | |
386 /* The configuration script defines machfile to be the name of the | |
387 m/MACHINE.h file that describes the machine you are using. The file is | |
388 chosen based on the configuration name you give. | |
389 | |
390 See the file ../etc/MACHINES for a list of machines and the | |
391 configuration names to use for them. | |
392 | |
393 See m/template.h for documentation on writing m/MACHINE.h files. */ | |
394 #undef config_machfile | |
395 #include "m-mac.h" | |
396 | |
397 /* Load in the conversion definitions if this system | |
398 needs them and the source file being compiled has not | |
399 said to inhibit this. There should be no need for you | |
400 to alter these lines. */ | |
401 | |
402 #ifdef SHORTNAMES | |
403 #ifndef NO_SHORTNAMES | |
404 #include "../shortnames/remap.h" | |
405 #endif /* not NO_SHORTNAMES */ | |
406 #endif /* SHORTNAMES */ | |
407 | |
408 /* If no remapping takes place, static variables cannot be dumped as | |
409 pure, so don't worry about the `static' keyword. */ | |
410 #ifdef NO_REMAP | |
411 /* #undef static */ | |
412 #endif | |
413 | |
414 /* Define `subprocesses' should be defined if you want to | |
415 have code for asynchronous subprocesses | |
416 (as used in M-x compile and M-x shell). | |
417 These do not work for some USG systems yet; | |
418 for the ones where they work, the s/SYSTEM.h file defines this flag. */ | |
419 | |
420 #ifndef VMS | |
421 #ifndef USG | |
422 /* #define subprocesses */ | |
423 #endif | |
424 #endif | |
425 | |
426 /* Define LD_SWITCH_SITE to contain any special flags your loader may need. */ | |
427 /* #undef LD_SWITCH_SITE */ | |
428 | |
429 /* Define C_SWITCH_SITE to contain any special flags your compiler needs. */ | |
430 /* #undef C_SWITCH_SITE */ | |
431 | |
432 /* Define LD_SWITCH_X_SITE to contain any special flags your loader | |
433 may need to deal with X Windows. For instance, if you've defined | |
434 HAVE_X_WINDOWS above and your X libraries aren't in a place that | |
435 your loader can find on its own, you might want to add "-L/..." or | |
436 something similar. */ | |
437 /* #undef LD_SWITCH_X_SITE */ | |
438 | |
439 /* Define LD_SWITCH_X_SITE_AUX with an -R option | |
440 in case it's needed (for Solaris, for example). */ | |
441 /* #undef LD_SWITCH_X_SITE_AUX */ | |
442 | |
443 /* Define C_SWITCH_X_SITE to contain any special flags your compiler | |
444 may need to deal with X Windows. For instance, if you've defined | |
445 HAVE_X_WINDOWS above and your X include files aren't in a place | |
446 that your compiler can find on its own, you might want to add | |
447 "-I/..." or something similar. */ | |
448 /* #undef C_SWITCH_X_SITE */ | |
449 | |
450 /* Define STACK_DIRECTION here, but not if m/foo.h did. */ | |
451 #ifndef STACK_DIRECTION | |
452 /* #undef STACK_DIRECTION */ | |
453 #endif | |
454 | |
455 /* Define the return type of signal handlers if the s-xxx file | |
456 did not already do so. */ | |
457 #define RETSIGTYPE void | |
458 | |
459 /* SIGTYPE is the macro we actually use. */ | |
460 #ifndef SIGTYPE | |
461 #define SIGTYPE RETSIGTYPE | |
462 #endif | |
463 | |
464 #ifdef emacs /* Don't do this for lib-src. */ | |
465 /* Tell regex.c to use a type compatible with Emacs. */ | |
466 #define RE_TRANSLATE_TYPE Lisp_Object | |
467 #define RE_TRANSLATE(TBL, C) CHAR_TABLE_TRANSLATE (TBL, C) | |
468 #define RE_TRANSLATE_P(TBL) (XFASTINT (TBL) != 0) | |
469 #endif | |
470 | |
471 /* Avoid link-time collision with system mktime if we will use our own. */ | |
472 #if ! HAVE_MKTIME || BROKEN_MKTIME | |
473 #define mktime emacs_mktime | |
474 #endif | |
475 | |
476 /* The rest of the code currently tests the CPP symbol BSTRING. | |
477 Override any claims made by the system-description files. | |
478 Note that on some SCO version it is possible to have bcopy and not bcmp. */ | |
479 /* #undef BSTRING */ | |
480 #if defined (HAVE_BCOPY) && defined (HAVE_BCMP) | |
481 #define BSTRING | |
482 #endif | |
483 | |
484 /* Define to empty if the keyword `volatile' does not work. Warning: | |
485 valid code using `volatile' can become incorrect without. Disable | |
486 with care. */ | |
487 /* #undef volatile */ | |
488 | |
489 /* Some of the files of Emacs which are intended for use with other | |
490 programs assume that if you have a config.h file, you must declare | |
491 the type of getenv. | |
492 | |
493 This declaration shouldn't appear when alloca.s or Makefile.in | |
494 includes config.h. */ | |
495 #ifndef NOT_C_CODE | |
496 extern char *getenv (); | |
497 #endif | |
498 | |
499 #endif /* EMACS_CONFIG_H */ | |
500 | |
501 /* These default definitions are good for almost all machines. | |
502 The exceptions override them in m/MACHINE.h. */ | |
503 | |
504 #ifndef BITS_PER_CHAR | |
505 #define BITS_PER_CHAR 8 | |
506 #endif | |
507 | |
508 #ifndef BITS_PER_SHORT | |
509 #define BITS_PER_SHORT 16 | |
510 #endif | |
511 | |
512 /* Note that lisp.h uses this in a preprocessor conditional, so it | |
513 would not work to use sizeof. That being so, we do all of them | |
514 without sizeof, for uniformity's sake. */ | |
515 #ifndef BITS_PER_INT | |
516 #define BITS_PER_INT 32 | |
517 #endif | |
518 | |
519 #ifndef BITS_PER_LONG | |
520 #ifdef _LP64 | |
521 #define BITS_PER_LONG 64 | |
522 #else | |
523 #define BITS_PER_LONG 32 | |
524 #endif | |
525 #endif | |
526 | |
527 /* Define if the compiler supports function prototypes. It may do so | |
528 but not define __STDC__ (e.g. DEC C by default) or may define it as | |
529 zero. */ | |
530 /* #undef PROTOTYPES */ | |
531 /* For mktime.c: */ | |
532 #ifndef __P | |
533 # if defined PROTOTYPES | |
534 # define __P(args) args | |
535 # else | |
536 # define __P(args) () | |
537 # endif /* GCC. */ | |
538 #endif /* __P */ | |
539 | |
540 | |
541 /* Don't include "string.h" or <stdlib.h> in non-C code. */ | |
542 #ifndef NOT_C_CODE | |
543 #ifdef HAVE_STRING_H | |
544 #include "string.h" | |
545 #endif | |
546 #ifdef HAVE_STDLIB_H | |
547 #include <stdlib.h> | |
548 #endif | |
549 #endif | |
550 | |
551 /* Define HAVE_X_I18N if we have usable i18n support. */ | |
552 | |
553 #ifdef HAVE_X11R6 | |
554 #define HAVE_X_I18N | |
555 #elif defined HAVE_X11R5 && !defined X11R5_INHIBIT_I18N | |
556 #define HAVE_X_I18N | |
557 #endif | |
558 | |
559 /* Define HAVE_X11R6_XIM if we have usable X11R6-style XIM support. */ | |
560 | |
561 #if defined HAVE_X11R6 && !defined INHIBIT_X11R6_XIM | |
562 #define HAVE_X11R6_XIM | |
563 #endif | |
564 | |
565 /* Should we enable expensive run-time checking of data types? */ | |
566 /* #undef ENABLE_CHECKING */ | |
567 | |
568 /* #define GLYPH_DEBUG 1 */ | |
569 | |
570 #define NO_RETURN /* nothing */ |