282
|
1 /* XEmacs configuration file for Win32 -*- C -*-
|
100
|
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
|
406
|
24 intended to work with other packages as well (like gmalloc.c)
|
100
|
25 think they can include it as many times as they like. */
|
213
|
26 #ifndef _SRC_CONFIG_H_
|
|
27 #define _SRC_CONFIG_H_
|
100
|
28
|
|
29 #define NTHEAP_PROBE_BASE 1
|
213
|
30 #undef LOSING_BYTECODE
|
100
|
31
|
213
|
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. */
|
298
|
34 #define XEMACS 1
|
213
|
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. */
|
298
|
42 /* #undef EMACS_CONFIGURATION -- defined in xemacs.mak */
|
213
|
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. */
|
219
|
64 /* #undef PACKAGE_PATH */
|
100
|
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
|
213
|
73 /* Compile in support for the X window system? */
|
|
74 /* #undef HAVE_X_WINDOWS -- defined in xemacs.mak */
|
100
|
75
|
213
|
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
|
100
|
90 #endif
|
213
|
91 #ifndef FUNCPROTO
|
|
92 #define FUNCPROTO 15
|
100
|
93 #endif
|
|
94
|
|
95 /* Define this if you're using XFree386. */
|
|
96 #undef HAVE_XFREE386
|
|
97
|
|
98 #undef THIS_IS_X11R4
|
|
99 #undef THIS_IS_X11R5
|
|
100 #define THIS_IS_X11R6
|
|
101
|
213
|
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
|
219
|
110 /* #define HAVE_IMAGEMAGICK */
|
213
|
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
|
247
|
122 #define HAVE_UNIXOID_EVENT_LOOP
|
213
|
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
|
247
|
131
|
213
|
132
|
100
|
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. */
|
118
|
142 #define USER_FULL_NAME pw->pw_gecos
|
100
|
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_STROPTS_H
|
|
152 #undef HAVE_SYS_TIMEB_H
|
|
153 #undef HAVE_UNISTD_H
|
|
154 #undef HAVE_UTIME_H
|
|
155 #undef HAVE_SYS_WAIT_H
|
|
156 #undef HAVE_LIBGEN_H
|
|
157 #undef WORDS_BIGENDIAN
|
|
158 #undef TIME_WITH_SYS_TIME
|
|
159
|
410
|
160 #undef HAVE_SYS_TIME_H
|
100
|
161 #define HAVE_LOCALE_H
|
213
|
162 #ifdef HAVE_X_WINDOWS
|
100
|
163 #define HAVE_X11_LOCALE_H
|
213
|
164 #endif
|
100
|
165 #define STDC_HEADERS
|
167
|
166 #define HAVE_LIMITS_H
|
|
167 #define HAVE_GETCWD
|
100
|
168
|
|
169 #define HAVE_LONG_FILE_NAMES
|
|
170
|
213
|
171 #undef HAVE_LIBKSTAT
|
|
172 #undef HAVE_LIBINTL
|
100
|
173 #undef HAVE_LIBDNET
|
|
174 #undef HAVE_LIBRESOLV
|
|
175
|
|
176 /* Define if `sys_siglist' is declared by <signal.h>. */
|
|
177 #undef SYS_SIGLIST_DECLARED
|
|
178
|
|
179 /* Define if `struct utimbuf' is declared by <utime.h>. */
|
|
180 #undef HAVE_STRUCT_UTIMBUF
|
|
181
|
|
182 /* Define if `struct timeval' is declared by <sys/time.h>. */
|
|
183 #define HAVE_TIMEVAL
|
|
184
|
|
185 #undef TM_IN_SYS_TIME
|
|
186 #undef HAVE_TM_ZONE
|
|
187 #undef HAVE_TZNAME
|
|
188
|
|
189 /* Define if netdb.h declares h_errno. */
|
|
190 #undef HAVE_H_ERRNO
|
|
191
|
|
192 /* Define if localtime caches TZ */
|
|
193 #undef LOCALTIME_CACHE
|
|
194
|
|
195 /* Define if gettimeofday can't accept two arguments */
|
|
196 #ifdef HAVE_X_WINDOWS
|
|
197 #define GETTIMEOFDAY_ONE_ARGUMENT
|
|
198 #else
|
|
199 #undef GETTIMEOFDAY_ONE_ARGUMENT
|
|
200 #endif
|
|
201
|
213
|
202 /* Is the timezone variable already declared in system headers? */
|
|
203 #undef HAVE_TIMEZONE_DECL
|
100
|
204
|
|
205 #undef HAVE_MMAP
|
|
206 #undef HAVE_STRCOLL
|
213
|
207 #undef HAVE_GETPGRP
|
|
208 #undef GETPGRP_VOID
|
100
|
209
|
|
210 #undef SIZEOF_SHORT
|
|
211 #undef SIZEOF_INT
|
|
212 #undef SIZEOF_LONG
|
213
|
213 #undef SIZEOF_LONG_LONG
|
|
214 #undef SIZEOF_VOID_P
|
100
|
215
|
|
216 #undef HAVE_ACOSH
|
|
217 #undef HAVE_ASINH
|
|
218 #undef HAVE_ATANH
|
|
219
|
|
220 #if defined (HAVE_ACOSH) && defined (HAVE_ASINH) && defined (HAVE_ATANH)
|
|
221 #define HAVE_INVERSE_HYPERBOLIC
|
|
222 #endif
|
|
223
|
|
224 #undef HAVE_CBRT
|
|
225 #define HAVE_CLOSEDIR
|
|
226 #undef HAVE_DUP2
|
|
227 #undef HAVE_EACCESS
|
|
228 #undef HAVE_FMOD
|
|
229 #undef HAVE_FPATHCONF
|
|
230 #undef HAVE_FREXP
|
|
231 #undef HAVE_FTIME
|
|
232 #undef HAVE_GETHOSTNAME
|
410
|
233
|
|
234 #define HAVE_GETPAGESIZE
|
|
235 #define getpagesize() 4096
|
|
236
|
100
|
237 #define HAVE_GETTIMEOFDAY
|
|
238 #define HAVE_GETWD
|
|
239 #undef HAVE_LOGB
|
|
240 #undef HAVE_LRAND48
|
|
241 #undef HAVE_MATHERR
|
|
242 #undef HAVE_MKDIR
|
|
243 #undef HAVE_MKTIME
|
|
244 #undef HAVE_PERROR
|
|
245 #undef HAVE_POLL
|
|
246 #undef HAVE_RANDOM
|
|
247 #undef HAVE_REALPATH
|
|
248 #undef HAVE_RENAME
|
|
249 #undef HAVE_RES_INIT
|
|
250 #undef HAVE_RINT
|
|
251 #undef HAVE_RMDIR
|
|
252 #define HAVE_SELECT
|
|
253 #undef HAVE_SETITIMER
|
|
254 #undef HAVE_SETPGID
|
|
255 #undef HAVE_SETSID
|
|
256 #undef HAVE_SIGBLOCK
|
|
257 #undef HAVE_SIGHOLD
|
|
258 #undef HAVE_SIGPROCMASK
|
|
259 #undef HAVE_SIGSETJMP
|
|
260 #undef HAVE_STRCASECMP
|
|
261 #define HAVE_STRERROR
|
|
262 #undef HAVE_TZSET
|
|
263 #undef HAVE_UTIMES
|
|
264 #undef HAVE_WAITPID
|
|
265
|
|
266 #define HAVE_SOCKETS
|
|
267 #undef HAVE_SOCKADDR_SUN_LEN
|
|
268 #undef HAVE_SYSVIPC
|
|
269
|
|
270 #undef SYSV_SYSTEM_DIR
|
|
271 #undef NONSYSTEM_DIR_LIBRARY
|
|
272
|
|
273 #undef HAVE_TERMIOS
|
|
274 #undef HAVE_TERMIO
|
|
275
|
|
276 #undef NLIST_STRUCT
|
|
277
|
|
278 /* Define HAVE_SOCKS if you have the `socks' library and want XEmacs to
|
|
279 use it. */
|
|
280 #undef HAVE_SOCKS
|
|
281
|
|
282 /* Define HAVE_TERM if you run the `term' program (e.g. under Linux) and
|
|
283 want XEmacs to use it. */
|
|
284 #undef HAVE_TERM
|
|
285
|
|
286 /* Define HAVE_DBM if you want to use the DBM libraries */
|
|
287 #undef HAVE_DBM
|
|
288
|
|
289 /* Define HAVE_BERKELEY_DB if you want to use the BerkDB libraries */
|
|
290 #undef HAVE_BERKELEY_DB
|
213
|
291 /* Full #include file path for Berkeley DB's db.h */
|
406
|
292 #undef DB_H_FILE
|
100
|
293
|
|
294 #if defined (HAVE_DBM) || defined (HAVE_BERKELEY_DB)
|
|
295 # define HAVE_DATABASE
|
|
296 #endif
|
|
297
|
|
298 /* Define HAVE_NCURSES if -lncurses is present. */
|
|
299 #undef HAVE_NCURSES
|
213
|
300 /* Full #include file paths for ncurses' curses.h and term.h. */
|
406
|
301 #undef CURSES_H_FILE
|
|
302 #undef TERM_H_FILE
|
100
|
303
|
|
304 #define LOWTAGS
|
|
305
|
274
|
306 #ifdef DEBUG_XEMACS
|
|
307
|
100
|
308 /* Define USE_ASSERTIONS if you want the abort() to be changed to assert()
|
|
309 If the assertion fails, assert_failed() will be called. This is
|
|
310 recommended for general use because it gives more info about the crash
|
|
311 than just the abort() message. Too many people "Can't find the corefile"
|
|
312 or have limited core dumps out of existence. */
|
|
313 #define USE_ASSERTIONS
|
|
314
|
|
315 /* Check the entire extent structure of a buffer each time an extent
|
|
316 change is done, and do other extent-related checks. */
|
|
317 #define ERROR_CHECK_EXTENTS
|
213
|
318
|
100
|
319 /* Make sure that all X... macros are dereferencing the correct type,
|
|
320 and that all XSET... macros (as much as possible) are setting the
|
|
321 correct type of structure. Highly recommended for all
|
|
322 development work. */
|
|
323 #define ERROR_CHECK_TYPECHECK
|
|
324 /* Make sure valid buffer positions are passed to BUF_* macros. */
|
|
325 #define ERROR_CHECK_BUFPOS
|
|
326 /* Attempt to catch bugs related to garbage collection (e.g.
|
|
327 insufficient GCPRO'ing). */
|
|
328 #define ERROR_CHECK_GC
|
|
329 /* Attempt to catch freeing of a non-malloc()ed block, heap corruption,
|
|
330 etc. */
|
|
331 #define ERROR_CHECK_MALLOC
|
|
332
|
219
|
333 #endif /* DEBUG_XEMACS */
|
|
334
|
398
|
335 /* Define convenient conditionally defined assertion macros. */
|
|
336 #ifdef ERROR_CHECK_TYPECHECK
|
|
337 #define type_checking_assert(assertion) assert (assertion)
|
|
338 #else
|
|
339 #define type_checking_assert(assertion)
|
|
340 #endif
|
|
341
|
|
342 #ifdef ERROR_CHECK_BUFPOS
|
|
343 #define bufpos_checking_assert(assertion) assert (assertion)
|
|
344 #else
|
|
345 #define bufpos_checking_assert(assertion)
|
|
346 #endif
|
|
347
|
402
|
348 #ifdef ERROR_CHECK_GC
|
|
349 #define gc_checking_assert(assertion) assert (assertion)
|
|
350 #else
|
|
351 #define gc_checking_assert(assertion)
|
|
352 #endif
|
398
|
353
|
100
|
354 /* Define MEMORY_USAGE_STATS if you want extra code compiled in to
|
|
355 determine where XEmacs's memory is going. */
|
|
356 #undef MEMORY_USAGE_STATS
|
|
357
|
|
358 /* Define QUANTIFY if using Quantify from Pure Software. This adds
|
|
359 some additional calls to control data collection. This is only
|
|
360 intended for use by the developers. */
|
|
361 #undef QUANTIFY
|
|
362
|
|
363 /* Define EXTERNAL_WIDGET to compile support for using the editor as a
|
|
364 widget in another program. */
|
|
365 #undef EXTERNAL_WIDGET
|
|
366
|
|
367 /* There are some special-case defines for gcc and lcc. */
|
|
368 #undef USE_GCC
|
|
369 #undef USE_LCC
|
|
370
|
|
371 /* Allow the user to override the default value of PURESIZE at configure
|
|
372 time. This must come before we include the sys files in order for
|
|
373 it to be able to override any changes in them. */
|
213
|
374 #undef RAW_PURESIZE
|
100
|
375
|
213
|
376 /* Define this if you want level 2 internationalization compliance
|
|
377 (localized collation and formatting). Generally this should be
|
|
378 defined, unless your system doesn't have the strcoll() and
|
|
379 setlocale() library routines. This really should be (NOT! -mrb)
|
|
380 defined in the appropriate s/ or m/ file. */
|
|
381 #undef I18N2
|
100
|
382
|
213
|
383 /* Define this if you want level 3 internationalization compliance
|
|
384 (localized messaging). This will cause a small runtime performance
|
|
385 penalty, as the strings are read from the message catalog(s).
|
|
386 For this you need the gettext() and dgetext() library routines.
|
|
387 WARNING, this code is under construction. */
|
|
388 #undef I18N3
|
|
389
|
|
390 /* Compile in support for CDE (Common Desktop Environment) drag and drop?
|
|
391 Requires libDtSvc, which typically must be present at runtime. */
|
100
|
392 #undef HAVE_CDE
|
|
393
|
213
|
394 /* Compile in support for OffiX Drag and Drop? */
|
|
395 #undef HAVE_OFFIX_DND
|
|
396
|
284
|
397 /* Compile in generic Drag'n'Drop API */
|
|
398 #define HAVE_DRAGNDROP
|
|
399
|
213
|
400 /* Compile in support for proper session-management. */
|
|
401 #undef HAVE_SESSION
|
|
402
|
167
|
403 /* Define this if you want Mule support (multi-byte character support).
|
|
404 There may be some performance penalty, although it should be small
|
|
405 if you're working with ASCII files. */
|
213
|
406 /* #undef MULE */
|
167
|
407
|
213
|
408 #ifdef MULE
|
167
|
409 /* Do we want to use X window input methods for use with Mule? (requires X11R5)
|
|
410 If so, use raw Xlib or higher level Motif interface? */
|
213
|
411 #undef HAVE_XIM
|
|
412 #undef XIM_XLIB
|
167
|
413 #undef XIM_MOTIF
|
|
414
|
|
415 /* Non-XIM input methods for use with Mule. */
|
|
416 #undef HAVE_CANNA
|
|
417 #undef HAVE_WNN
|
|
418 #undef WNN6
|
100
|
419
|
213
|
420 #endif
|
|
421
|
100
|
422 /* enable special GNU Make features in the Makefiles. */
|
|
423 #undef USE_GNU_MAKE
|
|
424
|
|
425 /* Undocumented debugging option: Don't automatically rebuild the DOC
|
|
426 file. This saves a lot of time when you're repeatedly
|
|
427 compiling-running-crashing. */
|
|
428 #undef NO_DOC_FILE
|
|
429
|
|
430 /* If not defined, use unions instead of ints. A few systems (DEC Alpha)
|
|
431 seem to require this, probably because something with the int
|
|
432 definitions isn't right with 64-bit systems.
|
|
433
|
|
434 (It's NO_UNION_TYPE instead of USE_UNION_TYPE for historical reasons.)
|
|
435 */
|
|
436 #undef NO_UNION_TYPE
|
|
437
|
|
438 /* The configuration script defines opsysfile to be the name of the
|
|
439 s/...h file that describes the system type you are using. The file
|
|
440 is chosen based on the configuration name you give.
|
|
441
|
|
442 See the file ../etc/MACHINES for a list of systems and the
|
|
443 configuration names to use for them.
|
|
444
|
|
445 See s/template.h for documentation on writing s/...h files. */
|
|
446 #include "s/windowsnt.h"
|
|
447
|
|
448 /* The configuration script defines machfile to be the name of the
|
|
449 m/...h file that describes the machine you are using. The file is
|
|
450 chosen based on the configuration name you give.
|
|
451
|
|
452 See the file ../etc/MACHINES for a list of machines and the
|
|
453 configuration names to use for them.
|
|
454
|
|
455 See m/template.h for documentation on writing m/...h files. */
|
|
456 #include "m/windowsnt.h"
|
|
457
|
|
458 #if defined (USE_SYSTEM_MALLOC) && !defined (SYSTEM_MALLOC)
|
|
459 #define SYSTEM_MALLOC
|
|
460 #endif
|
|
461
|
|
462 /* Define REL_ALLOC if you want to use the relocating allocator for
|
|
463 buffer space. */
|
|
464 #undef REL_ALLOC
|
|
465
|
|
466 /* Define the return type of signal handlers if the s-xxx file
|
|
467 did not already do so. */
|
|
468 #define RETSIGTYPE void
|
|
469
|
|
470 /* SIGTYPE is the macro we actually use. */
|
|
471 #ifndef SIGTYPE
|
|
472 #define SIGTYPE RETSIGTYPE
|
|
473 #define SIGRETURN return
|
|
474 #endif
|
|
475
|
213
|
476 /* Allow the source to use standard types */
|
|
477 #undef size_t
|
|
478 #undef pid_t
|
|
479 #undef mode_t
|
|
480 #undef off_t
|
|
481 #undef uid_t
|
|
482 #undef gid_t
|
|
483
|
100
|
484 /* Define DYNODUMP if it is necessary to properly dump on this system.
|
|
485 Currently this is only Solaris. */
|
|
486 #undef DYNODUMP
|
|
487
|
|
488 /* Define SUNPRO to compiled in support for Sun Sparcworks. */
|
|
489 #undef SUNPRO
|
|
490
|
|
491 /* Sun SparcStations, SGI machines, and HP9000s700s have support for playing
|
406
|
492 different sound files as beeps. If you are on a SparcStation but do not
|
100
|
493 have the sound option installed for some reason, then undefine
|
|
494 HAVE_NATIVE_SOUND. (It's usually found in /usr/demo/SOUND/ on SunOS 4
|
|
495 and Solaris systems; on Solaris, you may need to install the "SUNWaudmo"
|
|
496 package.)
|
|
497 */
|
298
|
498 /* #undef HAVE_NATIVE_SOUND */
|
100
|
499
|
|
500 /* If you wish to compile with support for the Network Audio System
|
|
501 system define HAVE_NAS_SOUND.
|
|
502 NAS_NO_ERROR_JUMP means that the NAS libraries don't inlcude some
|
|
503 error handling changes.
|
|
504 */
|
|
505 #undef HAVE_NAS_SOUND
|
|
506 #undef NAS_NO_ERROR_JUMP
|
|
507
|
|
508 /* Compile in support for SunPro usage-tracking code. */
|
|
509 #undef USAGE_TRACKING
|
|
510
|
|
511 /* Define TOOLTALK if your site supports the ToolTalk library. */
|
|
512 #undef TOOLTALK
|
|
513
|
213
|
514 #ifdef HAVE_X_WINDOWS
|
|
515
|
100
|
516 #undef LWLIB_USES_MOTIF
|
|
517 #define LWLIB_MENUBARS_LUCID
|
|
518 #undef LWLIB_MENUBARS_MOTIF
|
|
519 #define LWLIB_SCROLLBARS_LUCID
|
|
520 #undef LWLIB_SCROLLBARS_MOTIF
|
|
521 #undef LWLIB_SCROLLBARS_ATHENA
|
|
522 #undef LWLIB_DIALOGS_MOTIF
|
|
523 #define LWLIB_DIALOGS_ATHENA
|
|
524
|
|
525 /* Other things that can be disabled by configure. */
|
|
526 #define HAVE_MENUBARS
|
|
527 #define HAVE_SCROLLBARS
|
|
528 #define HAVE_DIALOGS
|
|
529 #undef HAVE_TOOLBARS
|
|
530
|
213
|
531 #endif
|
100
|
532
|
|
533 #if defined (HAVE_MENUBARS) || defined (HAVE_DIALOGS)
|
|
534 #define HAVE_POPUPS
|
|
535 #endif
|
|
536
|
|
537 /* If you are using SunOS 4.1.1 and X11r5, then you need this patch.
|
|
538 There is a stupid bug in the SunOS libc.a: two functions which X11r5
|
|
539 uses, mbstowcs() and wcstombs(), are unusable when programs are
|
|
540 statically linked (as XEmacs must be) because the static version of
|
|
541 libc.a contains the *dynamic* versions of these functions. These
|
406
|
542 functions don't seem to be called when XEmacs is running, so it's
|
100
|
543 enough to define stubs for them.
|
|
544
|
|
545 This appears to be fixed in SunOS 4.1.2.
|
|
546
|
|
547 Also, SunOS 4.1.1 contains buggy versions of strcmp and strcpy that
|
|
548 sometimes reference memory past the end of the string, which can segv.
|
|
549 I don't know whether this is has been fixed as of 4.1.2 or 4.1.3.
|
|
550 */
|
|
551 #if defined (sparc) && !defined (USG)
|
|
552 #define OBJECTS_SYSTEM sunOS-fix.o strcmp.o strcpy.o
|
|
553 #endif
|
|
554
|
|
555 /* If you turn this flag on, it forces encapsulation in all
|
|
556 circumstances; this can be used to make sure things compile OK
|
|
557 on various systems. */
|
|
558 #undef DEBUG_ENCAPSULATION
|
|
559
|
290
|
560 /* System calls that are encapsulated */
|
|
561 #define ENCAPSULATE_RENAME
|
|
562 #define ENCAPSULATE_OPEN
|
|
563 #define ENCAPSULATE_FOPEN
|
|
564 #define ENCAPSULATE_MKDIR
|
410
|
565 #define ENCAPSULATE_STAT
|
|
566 #define ENCAPSULATE_FSTAT
|
100
|
567
|
|
568 #if defined (HAVE_SOCKS) && !defined (DO_NOT_SOCKSIFY)
|
|
569 #define accept Raccept
|
|
570 #define bind Rbind
|
|
571 #define connect Rconnect
|
|
572 #define getsockname Rgetsockname
|
|
573 #define listen Rlisten
|
|
574 #endif /* HAVE_SOCKS && !DO_NOT_SOCKSIFY */
|
|
575
|
272
|
576 #ifndef BITS_PER_CHAR
|
|
577 #define BITS_PER_CHAR 8
|
100
|
578 #endif
|
272
|
579 #define SHORTBITS (SIZEOF_SHORT * BITS_PER_CHAR)
|
|
580 #define INTBITS (SIZEOF_INT * BITS_PER_CHAR)
|
|
581 #define LONGBITS (SIZEOF_LONG * BITS_PER_CHAR)
|
|
582 #define LONG_LONG_BITS (SIZEOF_LONG_LONG * BITS_PER_CHAR)
|
|
583 #define VOID_P_BITS (SIZEOF_VOID_P * BITS_PER_CHAR)
|
100
|
584
|
233
|
585 /* MSVC version >= 2.x without /Za supports __inline */
|
|
586 #if (_MSC_VER < 900) || defined(__STDC__)
|
404
|
587 # define inline
|
100
|
588 #else
|
404
|
589 # define inline __inline
|
100
|
590 #endif
|
|
591
|
404
|
592 #define INLINE_HEADER inline static
|
|
593
|
233
|
594 /* MSVC warnings no-no crap. When adding one to this section,
|
|
595 1. Think twice
|
|
596 2. Insert textual description of the warning.
|
|
597 3. Think twice. Undo still works */
|
|
598 #if (_MSC_VER >= 800)
|
|
599
|
|
600 /* 'expression' : signed/unsigned mismatch */
|
|
601 #pragma warning ( disable : 4018 )
|
|
602
|
|
603 #endif /* compiler understands #pragma warning*/
|
|
604
|
410
|
605 #ifndef NOT_C_CODE /* Actually means C or C++ */
|
|
606 # if defined (__cplusplus)
|
|
607 /* Avoid C++ keywords used as ordinary C identifiers */
|
|
608 # define class c_class
|
|
609 # define new c_new
|
|
610 # define this c_this
|
|
611 # define catch c_catch
|
|
612 # define not c_not
|
|
613
|
|
614 # define EXTERN_C extern "C"
|
|
615 # else /* C code */
|
|
616 # define EXTERN_C extern
|
|
617 # endif
|
|
618 #endif /* C or C++ */
|
|
619
|
282
|
620 #define enum_field(enumeration_type) unsigned int
|
274
|
621
|
100
|
622 /* We want to avoid saving the signal mask if possible, because
|
|
623 that necessitates a system call. */
|
|
624 #ifdef HAVE_SIGSETJMP
|
|
625 # define SETJMP(x) sigsetjmp (x, 0)
|
|
626 # define LONGJMP(x, y) siglongjmp (x, y)
|
|
627 # define JMP_BUF sigjmp_buf
|
|
628 #else
|
|
629 # define SETJMP(x) setjmp (x)
|
|
630 # define LONGJMP(x, y) longjmp (x, y)
|
|
631 # define JMP_BUF jmp_buf
|
|
632 #endif
|
|
633
|
213
|
634 /* movemail options */
|
|
635 /* Should movemail use POP3 for mail access? */
|
384
|
636 /* #undef MAIL_USE_POP */
|
213
|
637 /* Should movemail use kerberos for POP authentication? */
|
|
638 #undef KERBEROS
|
|
639 /* Should movemail use hesiod for getting POP server host? */
|
|
640 #undef HESIOD
|
|
641 /* Determine type of mail locking. */
|
398
|
642 #undef MAIL_LOCK_LOCKF
|
|
643 #undef REAL_LOCK_FLOCK
|
|
644 #undef MAIL_LOCK_DOT
|
213
|
645
|
|
646 #endif /* _SRC_CONFIG_H_ */
|