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