428
|
1 /* XEmacs configuration file for Win32 -*- C -*-
|
|
2 Copyright (C) 1986, 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
|
|
3
|
|
4 This file is part of XEmacs.
|
|
5
|
|
6 XEmacs is free software; you can redistribute it and/or modify it
|
|
7 under the terms of the GNU General Public License as published by the
|
|
8 Free Software Foundation; either version 2, or (at your option) any
|
|
9 later version.
|
|
10
|
|
11 XEmacs is distributed in the hope that it will be useful, but WITHOUT
|
|
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
14 for more details.
|
|
15
|
|
16 You should have received a copy of the GNU General Public License
|
|
17 along with XEmacs; see the file COPYING. If not, write to
|
|
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
19 Boston, MA 02111-1307, USA. */
|
|
20
|
|
21 /* Synched up with: FSF 19.30 (more or less). */
|
|
22
|
|
23 /* No code in XEmacs #includes config.h twice, but some of the code
|
442
|
24 intended to work with other packages as well (like gmalloc.c)
|
428
|
25 think they can include it as many times as they like. */
|
|
26 #ifndef _SRC_CONFIG_H_
|
|
27 #define _SRC_CONFIG_H_
|
|
28
|
|
29 #define NTHEAP_PROBE_BASE 1
|
|
30 #undef LOSING_BYTECODE
|
|
31
|
|
32 /* Use this to add code in a structured way to FSF-maintained source
|
|
33 files so as to make it obvious where XEmacs changes are. */
|
|
34 #define XEMACS 1
|
|
35
|
|
36 /* Allow s&m files to differentiate OS versions without having
|
|
37 multiple files to maintain. */
|
|
38 #undef OS_RELEASE
|
|
39
|
|
40 /* The configuration name. This is used as the install directory name
|
|
41 for the lib-src programs. */
|
|
42 /* #undef EMACS_CONFIGURATION -- defined in xemacs.mak */
|
|
43
|
|
44 /* The configuration options. This is exported to Lisp. */
|
|
45 #undef EMACS_CONFIG_OPTIONS
|
|
46
|
|
47 /* The version info from xemacs.mak via version.sh. Used in #pragma ident
|
|
48 in emacs.c */
|
|
49 #if 0
|
|
50 #undef EMACS_MAJOR_VERSION
|
|
51 #undef EMACS_MINOR_VERSION
|
|
52 #undef EMACS_BETA_VERSION
|
|
53 #undef EMACS_VERSION
|
|
54 #undef XEMACS_CODENAME
|
|
55 #endif
|
|
56
|
|
57 /* Make all functions available on AIX. See AC_AIX. */
|
|
58 #undef _ALL_SOURCE
|
|
59
|
|
60 /* Used to identify the XEmacs version in stack traces. */
|
|
61 #undef STACK_TRACE_EYE_CATCHER
|
|
62
|
|
63 /* Allow the configurer to specify (additional) package directories. */
|
|
64 /* #undef PACKAGE_PATH */
|
|
65
|
|
66 /* Define LISP_FLOAT_TYPE if you want XEmacs to support floating-point
|
|
67 numbers. */
|
|
68 #undef LISP_FLOAT_TYPE
|
|
69
|
|
70 /* Define HAVE_TTY if you want TTY support compiled in. */
|
|
71 #undef HAVE_TTY
|
|
72
|
|
73 /* Compile in support for the X window system? */
|
|
74 /* #undef HAVE_X_WINDOWS -- defined in xemacs.mak */
|
|
75
|
|
76 /* Defines for building X applications */
|
|
77 #ifdef HAVE_X_WINDOWS
|
|
78 /* The following will be defined if xmkmf thinks they are necessary */
|
|
79 #undef SVR4
|
|
80 #undef SYSV
|
|
81 #undef AIXV3
|
|
82 #undef _POSIX_SOURCE
|
|
83 #undef _BSD_SOURCE
|
|
84 #undef _GNU_SOURCE
|
|
85 #undef X_LOCALE
|
|
86 #undef NARROWPROTO
|
|
87 /* The following should always be defined, no matter what xmkmf thinks. */
|
|
88 #ifndef NeedFunctionPrototypes
|
|
89 #define NeedFunctionPrototypes 1
|
|
90 #endif
|
|
91 #ifndef FUNCPROTO
|
|
92 #define FUNCPROTO 15
|
|
93 #endif
|
|
94
|
444
|
95 #define HAVE_XREGISTERIMINSTANTIATECALLBACK
|
|
96 #undef XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE
|
428
|
97
|
|
98 #undef THIS_IS_X11R4
|
|
99 #undef THIS_IS_X11R5
|
|
100 #define THIS_IS_X11R6
|
|
101
|
|
102 /* Define HAVE_XPM if you have the `xpm' library and want XEmacs to use it. */
|
|
103 #undef HAVE_XPM
|
|
104
|
|
105 /* Define HAVE_XFACE if you have the `compface' library and want to use it.
|
|
106 This will permit X-face pixmaps in mail and news messages to display
|
|
107 quickly. */
|
|
108 #undef HAVE_XFACE
|
|
109
|
|
110 /* #define HAVE_IMAGEMAGICK */
|
|
111
|
|
112 /* Define HAVE_XMU if you have the Xmu library. This should always be
|
|
113 the case except on losing HPUX systems. */
|
|
114 #define HAVE_XMU
|
|
115
|
|
116 /* Define HAVE_XAUTH if the Xauth library is present. This will add
|
|
117 some extra functionality to gnuserv. */
|
|
118 #undef HAVE_XAUTH
|
|
119
|
|
120 /* Define HAVE_XLOCALE_H if X11/Xlocale.h is present. */
|
|
121 #define HAVE_XLOCALE_H
|
|
122 #define HAVE_UNIXOID_EVENT_LOOP
|
|
123
|
|
124 #endif /* HAVE_X_WINDOWS */
|
|
125
|
|
126 /* Define HAVE_WINDOW_SYSTEM if any windowing system is available. */
|
|
127 #if defined (HAVE_X_WINDOWS) || defined (HAVE_NEXTSTEP) || defined (HAVE_MS_WINDOWS)
|
|
128 #define HAVE_WINDOW_SYSTEM
|
|
129 #endif
|
|
130
|
|
131
|
|
132
|
|
133 /* Define USER_FULL_NAME to return a string
|
|
134 that is the user's full name.
|
|
135 It can assume that the variable `pw'
|
|
136 points to the password file entry for this user.
|
|
137
|
|
138 At some sites, the pw_gecos field contains
|
|
139 the user's full name. If neither this nor any other
|
|
140 field contains the right thing, use pw_name,
|
|
141 giving the user's login name, since that is better than nothing. */
|
|
142 #define USER_FULL_NAME pw->pw_gecos
|
|
143
|
|
144 /* Define AMPERSAND_FULL_NAME if you use the convention
|
|
145 that & in the full name stands for the login id. */
|
|
146 #undef AMPERSAND_FULL_NAME
|
|
147
|
|
148 /* Some things figured out by the configure script, grouped as they are in
|
|
149 configure.in. */
|
|
150 #undef HAVE_MACH_MACH_H
|
|
151 #undef HAVE_SYS_TIMEB_H
|
|
152 #undef HAVE_UNISTD_H
|
|
153 #undef HAVE_UTIME_H
|
|
154 #undef HAVE_SYS_WAIT_H
|
|
155 #undef HAVE_LIBGEN_H
|
|
156 #undef WORDS_BIGENDIAN
|
|
157 #undef TIME_WITH_SYS_TIME
|
|
158
|
442
|
159 #undef HAVE_SYS_TIME_H
|
428
|
160 #define HAVE_LOCALE_H
|
|
161 #ifdef HAVE_X_WINDOWS
|
|
162 #define HAVE_X11_LOCALE_H
|
|
163 #endif
|
|
164 #define STDC_HEADERS
|
|
165 #define HAVE_LIMITS_H
|
|
166 #define HAVE_GETCWD
|
|
167
|
|
168 #define HAVE_LONG_FILE_NAMES
|
|
169
|
|
170 #undef HAVE_LIBKSTAT
|
|
171 #undef HAVE_LIBINTL
|
|
172 #undef HAVE_LIBDNET
|
|
173 #undef HAVE_LIBRESOLV
|
|
174
|
|
175 /* Define if `sys_siglist' is declared by <signal.h>. */
|
|
176 #undef SYS_SIGLIST_DECLARED
|
|
177
|
|
178 /* Define if `struct utimbuf' is declared by <utime.h>. */
|
|
179 #undef HAVE_STRUCT_UTIMBUF
|
|
180
|
|
181 /* Define if `struct timeval' is declared by <sys/time.h>. */
|
|
182 #define HAVE_TIMEVAL
|
|
183
|
|
184 #undef TM_IN_SYS_TIME
|
|
185 #undef HAVE_TM_ZONE
|
|
186 #undef HAVE_TZNAME
|
|
187
|
|
188 /* Define if netdb.h declares h_errno. */
|
|
189 #undef HAVE_H_ERRNO
|
|
190
|
|
191 /* Define if localtime caches TZ */
|
|
192 #undef LOCALTIME_CACHE
|
|
193
|
|
194 /* Define if gettimeofday can't accept two arguments */
|
|
195 #ifdef HAVE_X_WINDOWS
|
|
196 #define GETTIMEOFDAY_ONE_ARGUMENT
|
|
197 #else
|
|
198 #undef GETTIMEOFDAY_ONE_ARGUMENT
|
|
199 #endif
|
|
200
|
|
201 /* Is the timezone variable already declared in system headers? */
|
|
202 #undef HAVE_TIMEZONE_DECL
|
|
203
|
|
204 #undef HAVE_MMAP
|
|
205 #undef HAVE_STRCOLL
|
|
206 #undef HAVE_GETPGRP
|
|
207 #undef GETPGRP_VOID
|
|
208
|
|
209 #undef SIZEOF_SHORT
|
|
210 #undef SIZEOF_INT
|
|
211 #undef SIZEOF_LONG
|
|
212 #undef SIZEOF_LONG_LONG
|
|
213 #undef SIZEOF_VOID_P
|
|
214
|
|
215 #undef HAVE_ACOSH
|
|
216 #undef HAVE_ASINH
|
|
217 #undef HAVE_ATANH
|
|
218
|
|
219 #if defined (HAVE_ACOSH) && defined (HAVE_ASINH) && defined (HAVE_ATANH)
|
|
220 #define HAVE_INVERSE_HYPERBOLIC
|
|
221 #endif
|
|
222
|
|
223 #undef HAVE_CBRT
|
|
224 #define HAVE_CLOSEDIR
|
|
225 #undef HAVE_DUP2
|
|
226 #undef HAVE_EACCESS
|
|
227 #undef HAVE_FMOD
|
|
228 #undef HAVE_FPATHCONF
|
|
229 #undef HAVE_FREXP
|
|
230 #undef HAVE_FTIME
|
|
231 #undef HAVE_GETHOSTNAME
|
442
|
232
|
|
233 #define HAVE_GETPAGESIZE
|
|
234 #define getpagesize() 4096
|
|
235
|
428
|
236 #define HAVE_GETTIMEOFDAY
|
|
237 #define HAVE_GETWD
|
|
238 #undef HAVE_LOGB
|
|
239 #undef HAVE_LRAND48
|
|
240 #undef HAVE_MATHERR
|
|
241 #undef HAVE_MKDIR
|
|
242 #undef HAVE_MKTIME
|
|
243 #undef HAVE_PERROR
|
|
244 #undef HAVE_POLL
|
|
245 #undef HAVE_RANDOM
|
|
246 #undef HAVE_REALPATH
|
|
247 #undef HAVE_RENAME
|
|
248 #undef HAVE_RES_INIT
|
|
249 #undef HAVE_RINT
|
|
250 #undef HAVE_RMDIR
|
|
251 #define HAVE_SELECT
|
|
252 #undef HAVE_SETITIMER
|
|
253 #undef HAVE_SETPGID
|
|
254 #undef HAVE_SETSID
|
|
255 #undef HAVE_SIGBLOCK
|
|
256 #undef HAVE_SIGHOLD
|
|
257 #undef HAVE_SIGPROCMASK
|
|
258 #undef HAVE_SIGSETJMP
|
|
259 #define HAVE_STRERROR
|
|
260 #undef HAVE_TZSET
|
|
261 #undef HAVE_UTIMES
|
|
262 #undef HAVE_WAITPID
|
444
|
263 #undef HAVE_VSNPRINTF
|
|
264
|
|
265 /* PTY support functions */
|
|
266 #undef HAVE_GETPT /* glibc's easy pty allocation function */
|
|
267 #undef HAVE__GETPTY /* SGI's easy pty allocation function */
|
|
268 #undef HAVE_OPENPTY /* BSD's easy pty allocation function */
|
|
269 #undef HAVE_GRANTPT /* Unix98 */
|
|
270 #undef HAVE_UNLOCKPT /* Unix98 */
|
|
271 #undef HAVE_PTSNAME /* Unix98 */
|
|
272 #undef HAVE_KILLPG /* BSD */
|
|
273 #undef HAVE_TCGETPGRP /* Posix 1 */
|
|
274 #undef HAVE_ISASTREAM /* SysV streams */
|
|
275 #undef HAVE_PTY_H /* Linux, Tru64 openpty */
|
|
276 #undef HAVE_LIBUTIL_H /* BSD openpty */
|
|
277 #undef HAVE_STROPTS_H /* SysV streams */
|
|
278 #undef HAVE_STRTIO_H /* SysV streams TIOCSIGNAL */
|
428
|
279
|
|
280 #define HAVE_SOCKETS
|
|
281 #undef HAVE_SOCKADDR_SUN_LEN
|
|
282 #undef HAVE_SYSVIPC
|
|
283
|
|
284 #undef SYSV_SYSTEM_DIR
|
|
285 #undef NONSYSTEM_DIR_LIBRARY
|
|
286
|
|
287 #undef HAVE_TERMIOS
|
|
288 #undef HAVE_TERMIO
|
|
289
|
|
290 #undef NLIST_STRUCT
|
|
291
|
|
292 /* Define HAVE_SOCKS if you have the `socks' library and want XEmacs to
|
|
293 use it. */
|
|
294 #undef HAVE_SOCKS
|
|
295
|
|
296 /* Define HAVE_TERM if you run the `term' program (e.g. under Linux) and
|
|
297 want XEmacs to use it. */
|
|
298 #undef HAVE_TERM
|
|
299
|
|
300 /* Define HAVE_DBM if you want to use the DBM libraries */
|
|
301 #undef HAVE_DBM
|
|
302
|
|
303 /* Define HAVE_BERKELEY_DB if you want to use the BerkDB libraries */
|
|
304 #undef HAVE_BERKELEY_DB
|
|
305 /* Full #include file path for Berkeley DB's db.h */
|
442
|
306 #undef DB_H_FILE
|
428
|
307
|
|
308 #if defined (HAVE_DBM) || defined (HAVE_BERKELEY_DB)
|
|
309 # define HAVE_DATABASE
|
|
310 #endif
|
|
311
|
|
312 /* Define HAVE_NCURSES if -lncurses is present. */
|
|
313 #undef HAVE_NCURSES
|
|
314 /* Full #include file paths for ncurses' curses.h and term.h. */
|
442
|
315 #undef CURSES_H_FILE
|
|
316 #undef TERM_H_FILE
|
428
|
317
|
|
318 #define LOWTAGS
|
|
319
|
|
320 #ifdef DEBUG_XEMACS
|
|
321
|
|
322 /* Define USE_ASSERTIONS if you want the abort() to be changed to assert()
|
|
323 If the assertion fails, assert_failed() will be called. This is
|
|
324 recommended for general use because it gives more info about the crash
|
|
325 than just the abort() message. Too many people "Can't find the corefile"
|
|
326 or have limited core dumps out of existence. */
|
|
327 #define USE_ASSERTIONS
|
|
328
|
|
329 /* Check the entire extent structure of a buffer each time an extent
|
|
330 change is done, and do other extent-related checks. */
|
|
331 #define ERROR_CHECK_EXTENTS
|
|
332
|
|
333 /* Make sure that all X... macros are dereferencing the correct type,
|
|
334 and that all XSET... macros (as much as possible) are setting the
|
|
335 correct type of structure. Highly recommended for all
|
|
336 development work. */
|
|
337 #define ERROR_CHECK_TYPECHECK
|
|
338 /* Make sure valid buffer positions are passed to BUF_* macros. */
|
|
339 #define ERROR_CHECK_BUFPOS
|
|
340 /* Attempt to catch bugs related to garbage collection (e.g.
|
|
341 insufficient GCPRO'ing). */
|
|
342 #define ERROR_CHECK_GC
|
|
343 /* Attempt to catch freeing of a non-malloc()ed block, heap corruption,
|
|
344 etc. */
|
|
345 #define ERROR_CHECK_MALLOC
|
|
346
|
|
347 #endif /* DEBUG_XEMACS */
|
|
348
|
440
|
349 /* Define convenient conditionally defined assertion macros. */
|
|
350 #ifdef ERROR_CHECK_TYPECHECK
|
|
351 #define type_checking_assert(assertion) assert (assertion)
|
|
352 #else
|
|
353 #define type_checking_assert(assertion)
|
|
354 #endif
|
|
355
|
|
356 #ifdef ERROR_CHECK_BUFPOS
|
|
357 #define bufpos_checking_assert(assertion) assert (assertion)
|
|
358 #else
|
|
359 #define bufpos_checking_assert(assertion)
|
|
360 #endif
|
|
361
|
442
|
362 #ifdef ERROR_CHECK_GC
|
|
363 #define gc_checking_assert(assertion) assert (assertion)
|
|
364 #else
|
|
365 #define gc_checking_assert(assertion)
|
|
366 #endif
|
440
|
367
|
428
|
368 /* Define MEMORY_USAGE_STATS if you want extra code compiled in to
|
|
369 determine where XEmacs's memory is going. */
|
|
370 #undef MEMORY_USAGE_STATS
|
|
371
|
|
372 /* Define QUANTIFY if using Quantify from Pure Software. This adds
|
|
373 some additional calls to control data collection. This is only
|
|
374 intended for use by the developers. */
|
|
375 #undef QUANTIFY
|
|
376
|
|
377 /* Define EXTERNAL_WIDGET to compile support for using the editor as a
|
|
378 widget in another program. */
|
|
379 #undef EXTERNAL_WIDGET
|
|
380
|
|
381 /* There are some special-case defines for gcc and lcc. */
|
|
382 #undef USE_GCC
|
|
383 #undef USE_LCC
|
|
384
|
|
385 /* Allow the user to override the default value of PURESIZE at configure
|
|
386 time. This must come before we include the sys files in order for
|
|
387 it to be able to override any changes in them. */
|
|
388 #undef RAW_PURESIZE
|
|
389
|
|
390 /* Define this if you want level 2 internationalization compliance
|
|
391 (localized collation and formatting). Generally this should be
|
|
392 defined, unless your system doesn't have the strcoll() and
|
|
393 setlocale() library routines. This really should be (NOT! -mrb)
|
|
394 defined in the appropriate s/ or m/ file. */
|
|
395 #undef I18N2
|
|
396
|
|
397 /* Define this if you want level 3 internationalization compliance
|
|
398 (localized messaging). This will cause a small runtime performance
|
|
399 penalty, as the strings are read from the message catalog(s).
|
|
400 For this you need the gettext() and dgetext() library routines.
|
|
401 WARNING, this code is under construction. */
|
|
402 #undef I18N3
|
|
403
|
|
404 /* Compile in support for CDE (Common Desktop Environment) drag and drop?
|
|
405 Requires libDtSvc, which typically must be present at runtime. */
|
|
406 #undef HAVE_CDE
|
|
407
|
|
408 /* Compile in support for OffiX Drag and Drop? */
|
|
409 #undef HAVE_OFFIX_DND
|
|
410
|
|
411 /* Compile in generic Drag'n'Drop API */
|
|
412 #define HAVE_DRAGNDROP
|
|
413
|
|
414 /* Compile in support for proper session-management. */
|
|
415 #undef HAVE_SESSION
|
|
416
|
|
417 /* Define this if you want Mule support (multi-byte character support).
|
|
418 There may be some performance penalty, although it should be small
|
|
419 if you're working with ASCII files. */
|
|
420 /* #undef MULE */
|
|
421
|
|
422 #ifdef MULE
|
|
423 /* Do we want to use X window input methods for use with Mule? (requires X11R5)
|
|
424 If so, use raw Xlib or higher level Motif interface? */
|
|
425 #undef HAVE_XIM
|
|
426 #undef XIM_XLIB
|
|
427 #undef XIM_MOTIF
|
|
428
|
|
429 /* Non-XIM input methods for use with Mule. */
|
|
430 #undef HAVE_CANNA
|
|
431 #undef HAVE_WNN
|
|
432 #undef WNN6
|
|
433
|
|
434 #endif
|
|
435
|
|
436 /* enable special GNU Make features in the Makefiles. */
|
|
437 #undef USE_GNU_MAKE
|
|
438
|
|
439 /* Undocumented debugging option: Don't automatically rebuild the DOC
|
|
440 file. This saves a lot of time when you're repeatedly
|
|
441 compiling-running-crashing. */
|
|
442 #undef NO_DOC_FILE
|
|
443
|
|
444 /* If not defined, use unions instead of ints. A few systems (DEC Alpha)
|
|
445 seem to require this, probably because something with the int
|
|
446 definitions isn't right with 64-bit systems.
|
|
447
|
|
448 (It's NO_UNION_TYPE instead of USE_UNION_TYPE for historical reasons.)
|
|
449 */
|
|
450 #undef NO_UNION_TYPE
|
|
451
|
|
452 /* The configuration script defines opsysfile to be the name of the
|
|
453 s/...h file that describes the system type you are using. The file
|
|
454 is chosen based on the configuration name you give.
|
|
455
|
|
456 See the file ../etc/MACHINES for a list of systems and the
|
|
457 configuration names to use for them.
|
|
458
|
|
459 See s/template.h for documentation on writing s/...h files. */
|
|
460 #include "s/windowsnt.h"
|
|
461
|
|
462 /* The configuration script defines machfile to be the name of the
|
|
463 m/...h file that describes the machine you are using. The file is
|
|
464 chosen based on the configuration name you give.
|
|
465
|
|
466 See the file ../etc/MACHINES for a list of machines and the
|
|
467 configuration names to use for them.
|
|
468
|
|
469 See m/template.h for documentation on writing m/...h files. */
|
|
470 #include "m/windowsnt.h"
|
|
471
|
|
472 #if defined (USE_SYSTEM_MALLOC) && !defined (SYSTEM_MALLOC)
|
|
473 #define SYSTEM_MALLOC
|
|
474 #endif
|
|
475
|
|
476 /* Define REL_ALLOC if you want to use the relocating allocator for
|
|
477 buffer space. */
|
|
478 #undef REL_ALLOC
|
|
479
|
|
480 /* Define the return type of signal handlers if the s-xxx file
|
|
481 did not already do so. */
|
|
482 #define RETSIGTYPE void
|
|
483
|
|
484 /* SIGTYPE is the macro we actually use. */
|
|
485 #ifndef SIGTYPE
|
|
486 #define SIGTYPE RETSIGTYPE
|
|
487 #define SIGRETURN return
|
|
488 #endif
|
|
489
|
|
490 /* Allow the source to use standard types */
|
|
491 #undef size_t
|
|
492 #undef pid_t
|
|
493 #undef mode_t
|
|
494 #undef off_t
|
|
495 #undef uid_t
|
|
496 #undef gid_t
|
|
497
|
|
498 /* Define DYNODUMP if it is necessary to properly dump on this system.
|
|
499 Currently this is only Solaris. */
|
|
500 #undef DYNODUMP
|
|
501
|
|
502 /* Define SUNPRO to compiled in support for Sun Sparcworks. */
|
|
503 #undef SUNPRO
|
|
504
|
|
505 /* Sun SparcStations, SGI machines, and HP9000s700s have support for playing
|
442
|
506 different sound files as beeps. If you are on a SparcStation but do not
|
428
|
507 have the sound option installed for some reason, then undefine
|
|
508 HAVE_NATIVE_SOUND. (It's usually found in /usr/demo/SOUND/ on SunOS 4
|
|
509 and Solaris systems; on Solaris, you may need to install the "SUNWaudmo"
|
|
510 package.)
|
|
511 */
|
|
512 /* #undef HAVE_NATIVE_SOUND */
|
|
513
|
|
514 /* If you wish to compile with support for the Network Audio System
|
|
515 system define HAVE_NAS_SOUND.
|
442
|
516 NAS_NO_ERROR_JUMP means that the NAS libraries don't include some
|
428
|
517 error handling changes.
|
|
518 */
|
|
519 #undef HAVE_NAS_SOUND
|
|
520 #undef NAS_NO_ERROR_JUMP
|
|
521
|
|
522 /* Compile in support for SunPro usage-tracking code. */
|
|
523 #undef USAGE_TRACKING
|
|
524
|
|
525 /* Define TOOLTALK if your site supports the ToolTalk library. */
|
|
526 #undef TOOLTALK
|
|
527
|
|
528 #ifdef HAVE_X_WINDOWS
|
|
529
|
|
530 #undef LWLIB_USES_MOTIF
|
|
531 #define LWLIB_MENUBARS_LUCID
|
|
532 #undef LWLIB_MENUBARS_MOTIF
|
|
533 #define LWLIB_SCROLLBARS_LUCID
|
|
534 #undef LWLIB_SCROLLBARS_MOTIF
|
|
535 #undef LWLIB_SCROLLBARS_ATHENA
|
|
536 #undef LWLIB_DIALOGS_MOTIF
|
|
537 #define LWLIB_DIALOGS_ATHENA
|
|
538
|
|
539 /* Other things that can be disabled by configure. */
|
|
540 #define HAVE_MENUBARS
|
|
541 #define HAVE_SCROLLBARS
|
|
542 #define HAVE_DIALOGS
|
|
543 #undef HAVE_TOOLBARS
|
|
544
|
|
545 #endif
|
|
546
|
|
547 #if defined (HAVE_MENUBARS) || defined (HAVE_DIALOGS)
|
|
548 #define HAVE_POPUPS
|
|
549 #endif
|
|
550
|
|
551 /* If you are using SunOS 4.1.1 and X11r5, then you need this patch.
|
|
552 There is a stupid bug in the SunOS libc.a: two functions which X11r5
|
|
553 uses, mbstowcs() and wcstombs(), are unusable when programs are
|
|
554 statically linked (as XEmacs must be) because the static version of
|
|
555 libc.a contains the *dynamic* versions of these functions. These
|
442
|
556 functions don't seem to be called when XEmacs is running, so it's
|
428
|
557 enough to define stubs for them.
|
|
558
|
|
559 This appears to be fixed in SunOS 4.1.2.
|
|
560
|
|
561 Also, SunOS 4.1.1 contains buggy versions of strcmp and strcpy that
|
|
562 sometimes reference memory past the end of the string, which can segv.
|
|
563 I don't know whether this is has been fixed as of 4.1.2 or 4.1.3.
|
|
564 */
|
|
565 #if defined (sparc) && !defined (USG)
|
|
566 #define OBJECTS_SYSTEM sunOS-fix.o strcmp.o strcpy.o
|
|
567 #endif
|
|
568
|
|
569 /* If you turn this flag on, it forces encapsulation in all
|
|
570 circumstances; this can be used to make sure things compile OK
|
|
571 on various systems. */
|
|
572 #undef DEBUG_ENCAPSULATION
|
|
573
|
|
574 /* System calls that are encapsulated */
|
|
575 #define ENCAPSULATE_RENAME
|
|
576 #define ENCAPSULATE_OPEN
|
|
577 #define ENCAPSULATE_FOPEN
|
|
578 #define ENCAPSULATE_MKDIR
|
442
|
579 #define ENCAPSULATE_STAT
|
|
580 #define ENCAPSULATE_FSTAT
|
428
|
581
|
|
582 #if defined (HAVE_SOCKS) && !defined (DO_NOT_SOCKSIFY)
|
|
583 #define accept Raccept
|
|
584 #define bind Rbind
|
|
585 #define connect Rconnect
|
|
586 #define getsockname Rgetsockname
|
|
587 #define listen Rlisten
|
|
588 #endif /* HAVE_SOCKS && !DO_NOT_SOCKSIFY */
|
|
589
|
|
590 #ifndef BITS_PER_CHAR
|
|
591 #define BITS_PER_CHAR 8
|
|
592 #endif
|
|
593 #define SHORTBITS (SIZEOF_SHORT * BITS_PER_CHAR)
|
|
594 #define INTBITS (SIZEOF_INT * BITS_PER_CHAR)
|
|
595 #define LONGBITS (SIZEOF_LONG * BITS_PER_CHAR)
|
|
596 #define LONG_LONG_BITS (SIZEOF_LONG_LONG * BITS_PER_CHAR)
|
|
597 #define VOID_P_BITS (SIZEOF_VOID_P * BITS_PER_CHAR)
|
|
598
|
|
599 /* MSVC version >= 2.x without /Za supports __inline */
|
|
600 #if (_MSC_VER < 900) || defined(__STDC__)
|
442
|
601 # define inline
|
428
|
602 #else
|
442
|
603 # define inline __inline
|
428
|
604 #endif
|
|
605
|
442
|
606 #define INLINE_HEADER inline static
|
|
607
|
428
|
608 /* MSVC warnings no-no crap. When adding one to this section,
|
|
609 1. Think twice
|
|
610 2. Insert textual description of the warning.
|
|
611 3. Think twice. Undo still works */
|
|
612 #if (_MSC_VER >= 800)
|
|
613
|
|
614 /* 'expression' : signed/unsigned mismatch */
|
|
615 #pragma warning ( disable : 4018 )
|
|
616
|
|
617 #endif /* compiler understands #pragma warning*/
|
|
618
|
442
|
619 #ifndef NOT_C_CODE /* Actually means C or C++ */
|
|
620 # if defined (__cplusplus)
|
|
621 /* Avoid C++ keywords used as ordinary C identifiers */
|
|
622 # define class c_class
|
|
623 # define new c_new
|
|
624 # define this c_this
|
|
625 # define catch c_catch
|
|
626 # define not c_not
|
|
627
|
|
628 # define EXTERN_C extern "C"
|
|
629 # else /* C code */
|
|
630 # define EXTERN_C extern
|
|
631 # endif
|
|
632 #endif /* C or C++ */
|
|
633
|
428
|
634 #define enum_field(enumeration_type) unsigned int
|
|
635
|
|
636 /* We want to avoid saving the signal mask if possible, because
|
|
637 that necessitates a system call. */
|
|
638 #ifdef HAVE_SIGSETJMP
|
|
639 # define SETJMP(x) sigsetjmp (x, 0)
|
|
640 # define LONGJMP(x, y) siglongjmp (x, y)
|
|
641 # define JMP_BUF sigjmp_buf
|
|
642 #else
|
|
643 # define SETJMP(x) setjmp (x)
|
|
644 # define LONGJMP(x, y) longjmp (x, y)
|
|
645 # define JMP_BUF jmp_buf
|
|
646 #endif
|
|
647
|
|
648 /* movemail options */
|
|
649 /* Should movemail use POP3 for mail access? */
|
|
650 /* #undef MAIL_USE_POP */
|
|
651 /* Should movemail use kerberos for POP authentication? */
|
|
652 #undef KERBEROS
|
|
653 /* Should movemail use hesiod for getting POP server host? */
|
|
654 #undef HESIOD
|
|
655 /* Determine type of mail locking. */
|
438
|
656 #undef MAIL_LOCK_LOCKF
|
|
657 #undef REAL_LOCK_FLOCK
|
|
658 #undef MAIL_LOCK_DOT
|
428
|
659
|
|
660 #endif /* _SRC_CONFIG_H_ */
|