0
|
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. */
|
|
26 #ifndef _CONFIG_H_
|
|
27 #define _CONFIG_H_
|
|
28
|
|
29 /* #### This will be removed in 19.15. */
|
|
30 #define LOSING_BYTECODE
|
|
31
|
|
32
|
|
33 /* These are all defined in the top-level Makefile by configure.
|
|
34 They're here only for reference. */
|
|
35
|
|
36 /* Define LISP_FLOAT_TYPE if you want XEmacs to support floating-point
|
|
37 numbers. */
|
|
38 #undef LISP_FLOAT_TYPE
|
|
39
|
|
40 /* Define GNU_MALLOC if you want to use the *new* GNU memory allocator. */
|
|
41 #undef GNU_MALLOC
|
|
42
|
|
43 /* Define USE_SYSTEM_MALLOC if you forcing the use of it. */
|
|
44 #undef USE_SYSTEM_MALLOC
|
|
45
|
|
46 /* Define HAVE_TTY if you want TTY support compiled in. */
|
|
47 #undef HAVE_TTY
|
|
48
|
|
49 /* Define HAVE_X_WINDOWS if you want to use the X window system. */
|
|
50 #undef HAVE_X_WINDOWS
|
|
51
|
|
52 /* Define HAVE_NEXTSTEP if you want to use the NeXTstep window system. */
|
|
53 #undef HAVE_NEXTSTEP
|
|
54
|
|
55 /* Define HAVE_WINDOW_SYSTEM if any windowing system is available. */
|
|
56 #if defined (HAVE_X_WINDOWS) || defined (HAVE_NEXTSTEP)
|
|
57 #define HAVE_WINDOW_SYSTEM
|
|
58 #endif
|
|
59
|
|
60 /* Define HAVE_UNIXOID_EVENT_LOOP if we use select() to wait for events. */
|
|
61 #if defined (HAVE_X_WINDOWS) || defined (HAVE_TTY)
|
|
62 #define HAVE_UNIXOID_EVENT_LOOP
|
|
63 #endif
|
|
64
|
|
65 /* Define this if you're using XFree386. */
|
|
66 #undef HAVE_XFREE386
|
|
67
|
|
68 #undef THIS_IS_X11R4
|
|
69 #undef THIS_IS_X11R5
|
|
70 #undef THIS_IS_X11R6
|
|
71
|
|
72 /* Define USER_FULL_NAME to return a string
|
|
73 that is the user's full name.
|
|
74 It can assume that the variable `pw'
|
|
75 points to the password file entry for this user.
|
|
76
|
|
77 At some sites, the pw_gecos field contains
|
|
78 the user's full name. If neither this nor any other
|
|
79 field contains the right thing, use pw_name,
|
|
80 giving the user's login name, since that is better than nothing. */
|
|
81 #define USER_FULL_NAME pw->pw_gecos
|
|
82
|
|
83 /* Define AMPERSAND_FULL_NAME if you use the convention
|
|
84 that & in the full name stands for the login id. */
|
|
85 #undef AMPERSAND_FULL_NAME
|
|
86
|
|
87 /* Some things figured out by the configure script, grouped as they are in
|
|
88 configure.in. */
|
|
89 #undef HAVE_MACH_MACH_H
|
|
90 #undef HAVE_SYS_STROPTS_H
|
|
91 #undef HAVE_SYS_TIMEB_H
|
|
92 #undef HAVE_SYS_TIME_H
|
|
93 #undef HAVE_UNISTD_H
|
|
94 #undef HAVE_UTIME_H
|
|
95 #undef HAVE_SYS_WAIT_H
|
|
96 #undef HAVE_LIBGEN_H
|
|
97 #undef HAVE_LOCALE_H
|
|
98 #undef HAVE_X11_LOCALE_H
|
|
99 #undef HAVE_LINUX_VERSION_H
|
|
100 #undef STDC_HEADERS
|
|
101 #undef TIME_WITH_SYS_TIME
|
|
102 #undef WORDS_BIGENDIAN
|
|
103
|
|
104 #undef HAVE_LONG_FILE_NAMES
|
|
105
|
|
106 #ifdef HAVE_LONG_FILE_NAMES
|
|
107 #define CLASH_DETECTION
|
|
108 #endif
|
|
109
|
|
110 #undef HAVE_LIBDNET
|
|
111 #undef HAVE_LIBRESOLV
|
|
112
|
|
113 /* Define if `sys_siglist' is declared by <signal.h>. */
|
|
114 #undef SYS_SIGLIST_DECLARED
|
|
115
|
|
116 /* Define if `struct utimbuf' is declared by <utime.h>. */
|
|
117 #undef HAVE_STRUCT_UTIMBUF
|
|
118
|
|
119 /* Define if `struct timeval' is declared by <sys/time.h>. */
|
|
120 #undef HAVE_TIMEVAL
|
|
121
|
|
122
|
|
123 #undef TM_IN_SYS_TIME
|
|
124 #undef HAVE_TM_ZONE
|
|
125 #undef HAVE_TZNAME
|
|
126
|
|
127 /* Define if netdb.h declares h_errno. */
|
|
128 #undef HAVE_H_ERRNO
|
|
129
|
|
130 /* Define if localtime caches TZ */
|
|
131 #undef LOCALTIME_CACHE
|
|
132
|
|
133 /* Define if gettimeofday can't accept two arguments */
|
|
134 #undef GETTIMEOFDAY_ONE_ARGUMENT
|
|
135
|
|
136 /* Define in keyword `inline' exists. */
|
|
137 #undef HAVE_INLINE
|
|
138
|
|
139 #undef HAVE_ALLOCA_H
|
|
140 #undef HAVE_VFORK_H
|
|
141 #undef vfork
|
|
142
|
|
143 #undef HAVE_MMAP
|
|
144 #undef HAVE_STRCOLL
|
|
145
|
|
146 #undef SIZEOF_SHORT
|
|
147 #undef SIZEOF_INT
|
|
148 #undef SIZEOF_LONG
|
|
149
|
|
150 #undef HAVE_ACOSH
|
|
151 #undef HAVE_ASINH
|
|
152 #undef HAVE_ATANH
|
|
153
|
|
154 #if defined (HAVE_ACOSH) && defined (HAVE_ASINH) && defined (HAVE_ATANH)
|
|
155 #define HAVE_INVERSE_HYPERBOLIC
|
|
156 #endif
|
|
157
|
|
158 #undef HAVE_CBRT
|
|
159 #undef HAVE_CLOSEDIR
|
|
160 #undef HAVE_DUP2
|
|
161 #undef HAVE_EACCESS
|
|
162 #undef HAVE_FMOD
|
|
163 #undef HAVE_FPATHCONF
|
|
164 #undef HAVE_FREXP
|
|
165 #undef HAVE_FTIME
|
|
166 #undef HAVE_GETHOSTNAME
|
|
167 #undef HAVE_GETPAGESIZE
|
|
168 #undef HAVE_GETTIMEOFDAY
|
|
169 #undef HAVE_GETWD
|
|
170 #undef HAVE_LOGB
|
|
171 #undef HAVE_LRAND48
|
|
172 #undef HAVE_MATHERR
|
|
173 #undef HAVE_MKDIR
|
|
174 #undef HAVE_MKTIME
|
|
175 #undef HAVE_PERROR
|
|
176 #undef HAVE_POLL
|
|
177 #undef HAVE_RANDOM
|
|
178 #undef HAVE_REALPATH
|
|
179 #undef HAVE_RENAME
|
|
180 #undef HAVE_RES_INIT
|
|
181 #undef HAVE_RINT
|
|
182 #undef HAVE_RMDIR
|
|
183 #undef HAVE_SELECT
|
|
184 #undef HAVE_SETITIMER
|
|
185 #undef HAVE_SETPGID
|
|
186 #undef HAVE_SETSID
|
|
187 #undef HAVE_SIGBLOCK
|
|
188 #undef HAVE_SIGHOLD
|
|
189 #undef HAVE_SIGPROCMASK
|
|
190 #undef HAVE_SIGSETJMP
|
|
191 #undef HAVE_STRCASECMP
|
|
192 #undef HAVE_STRERROR
|
|
193 #undef HAVE_TZSET
|
|
194 #undef HAVE_UTIMES
|
|
195 #undef HAVE_WAITPID
|
|
196
|
|
197 #undef HAVE_SOCKETS
|
|
198 #undef HAVE_SOCKADDR_SUN_LEN
|
|
199 #undef HAVE_SYSVIPC
|
|
200
|
|
201 #undef SYSV_SYSTEM_DIR
|
|
202 #undef NONSYSTEM_DIR_LIBRARY
|
|
203
|
|
204 #undef HAVE_TERMIOS
|
|
205 #undef HAVE_TERMIO
|
|
206
|
|
207 #undef NLIST_STRUCT
|
|
208
|
|
209 #undef UNEXEC_SRC
|
|
210 #undef AIX_SMT_EXP
|
|
211
|
|
212 /* Define HAVE_SOCKS if you have the `socks' library and want XEmacs to
|
|
213 use it. */
|
|
214 #undef HAVE_SOCKS
|
|
215
|
|
216 /* Define HAVE_TERM if you run the `term' program (e.g. under Linux) and
|
|
217 want XEmacs to use it. */
|
|
218 #undef HAVE_TERM
|
|
219
|
|
220 /* Define HAVE_XPM if you have the `xpm' library and want XEmacs to use it. */
|
|
221 #undef HAVE_XPM
|
|
222
|
|
223 /* Define HAVE_XFACE if you have the `compface' library and want to use it.
|
|
224 This will permit X-face pixmaps in mail and news messages to display
|
|
225 quickly. */
|
|
226 #undef HAVE_XFACE
|
|
227
|
|
228 /* Define HAVE_GIF if you want XEmacs to support converting GIF
|
|
229 (Graphics Interchange Format) images. */
|
|
230 #undef HAVE_GIF
|
|
231
|
|
232 /* Define HAVE_JPEG if you have the JPEG library and want XEmacs to use it.
|
|
233 This is for converting JPEG images. */
|
|
234 #undef HAVE_JPEG
|
|
235
|
|
236 /* Define HAVE_PNG if you have the PNG library and want XEmacs to use it.
|
|
237 This is for converting PNG images. */
|
|
238 #undef HAVE_PNG
|
|
239
|
|
240 /* Define HAVE_PNG_GNUZ if you want to use -lgz instead of -lz for PNG. */
|
|
241 #undef HAVE_PNG_GNUZ
|
|
242
|
|
243 /* Define HAVE_TIFF if you have the TIFF library and want XEmacs to use it.
|
|
244 This is for converting TIFF images. */
|
|
245 #undef HAVE_TIFF
|
|
246
|
|
247 /* Define HAVE_XMU if you have the Xmu library. This should always be
|
|
248 the case except on losing HPUX systems. */
|
|
249 #undef HAVE_XMU
|
|
250
|
|
251 /* Define HAVE_DBM if you want to use the DBM libraries */
|
|
252 #undef HAVE_DBM
|
|
253
|
|
254 /* Define HAVE_GNU_DBM if you want to use the GNU DBM libraries;
|
|
255 if you define this, you should also define HAVE_DBM */
|
|
256 #undef HAVE_GNU_DBM
|
|
257
|
|
258 /* Define HAVE_BERKELEY_DB if you want to use the BerkDB libraries */
|
|
259 #undef HAVE_BERKELEY_DB
|
|
260
|
|
261 /* Define HAVE_LIBGDBM if you have -lgdbm (separated from HAVE_DBM
|
|
262 stuff because FreeBSD has the DBM routines in libc) */
|
|
263 #undef HAVE_LIBGDBM
|
|
264
|
|
265 /* Define HAVE_LIBDBM if you have -ldbm */
|
|
266 #undef HAVE_LIBDBM
|
|
267
|
|
268 /* Define HAVE_LIBDB if you have -ldb */
|
|
269 #undef HAVE_LIBDB
|
|
270
|
|
271 #if defined (HAVE_DBM) || defined (HAVE_BERKELEY_DB)
|
|
272 # define HAVE_DATABASE
|
|
273 #endif
|
|
274
|
|
275 /* Define HAVE_XAUTH if the Xauth library is present. This will add
|
|
276 some extra functionality to gnuserv. */
|
|
277 #undef HAVE_XAUTH
|
|
278
|
|
279 /* Define HAVE_XLOCALE_H if X11/Xlocale.h is present. */
|
|
280 #undef HAVE_XLOCALE_H
|
|
281
|
|
282 /* Define HAVE_NCURSES if -lncurses is present. */
|
|
283 #undef HAVE_NCURSES
|
|
284
|
|
285 /* Define HAVE_NCURSES_CURSES_H if ncurses/curses.h is present. */
|
|
286 #undef HAVE_NCURSES_CURSES_H
|
|
287
|
|
288 /* Define HAVE_NCURSES_TERM_H if ncurses/term.h is present. */
|
|
289 #undef HAVE_NCURSES_TERM_H
|
|
290
|
|
291 /* Define EPOCH to include extra functionality that was present in Epoch.
|
|
292 This code has received only limited testing. */
|
|
293 #undef EPOCH
|
|
294
|
|
295 #define LOWTAGS
|
|
296
|
|
297 /* Define USE_ASSERTIONS if you want the abort() to be changed to assert()
|
|
298 If the assertion fails, assert_failed() will be called. This is
|
|
299 recommended for general use because it gives more info about the crash
|
|
300 than just the abort() message. Too many people "Can't find the corefile"
|
|
301 or have limited core dumps out of existence. */
|
|
302 #undef USE_ASSERTIONS
|
|
303
|
|
304 /* Define one or more of the following if you want lots of extra checks
|
|
305 (e.g. structure validation) compiled in. These should be turned
|
|
306 on during the beta-test cycle. */
|
|
307
|
|
308 /* Check the entire extent structure of a buffer each time an extent
|
|
309 change is done, and do other extent-related checks. */
|
|
310 #undef ERROR_CHECK_EXTENTS
|
|
311 /* Make sure that all X... macros are dereferencing the correct type,
|
|
312 and that all XSET... macros (as much as possible) are setting the
|
|
313 correct type of structure. Highly recommended for all
|
|
314 development work. */
|
|
315 #undef ERROR_CHECK_TYPECHECK
|
|
316 /* Make sure valid buffer positions are passed to BUF_* macros. */
|
|
317 #undef ERROR_CHECK_BUFPOS
|
|
318 /* Attempt to catch bugs related to garbage collection (e.g.
|
|
319 insufficient GCPRO'ing). */
|
|
320 #undef ERROR_CHECK_GC
|
|
321 /* Attempt to catch freeing of a non-malloc()ed block, heap corruption,
|
|
322 etc. */
|
|
323 #undef ERROR_CHECK_MALLOC
|
|
324
|
|
325 /* Define DEBUG_XEMACS if you want extra debugging code compiled in.
|
|
326 This is mainly intended for use by developers. */
|
|
327 #undef DEBUG_XEMACS
|
|
328
|
|
329 /* Define MEMORY_USAGE_STATS if you want extra code compiled in to
|
|
330 determine where XEmacs's memory is going. */
|
|
331 #undef MEMORY_USAGE_STATS
|
|
332
|
|
333 /* Define QUANTIFY if using Quantify from Pure Software. This adds
|
|
334 some additional calls to control data collection. This is only
|
|
335 intended for use by the developers. */
|
|
336 #undef QUANTIFY
|
|
337
|
|
338 /* Define EXTERNAL_WIDGET to compile support for using the editor as a
|
|
339 widget in another program. */
|
|
340 #undef EXTERNAL_WIDGET
|
|
341
|
|
342 /* There are some special-case defines for gcc and lcc. */
|
|
343 #undef USE_GCC
|
|
344 #undef USE_LCC
|
|
345
|
|
346 /* Allow the user to override the default value of PURESIZE at configure
|
|
347 time. This must come before we include the sys files in order for
|
|
348 it to be able to override any changes in them. */
|
28
|
349 #undef RAW_PURESIZE
|
0
|
350
|
|
351
|
|
352 /* Define this if you want to use the Common Desktop Environment
|
|
353 */
|
|
354 #undef HAVE_CDE
|
|
355
|
2
|
356 /* Define this if you want to use the OffiX Drag and Drop
|
|
357 */
|
|
358 #undef HAVE_OFFIX_DND
|
|
359
|
0
|
360 /* Mocklisp Support. */
|
|
361 #undef MOCKLISP_SUPPORT
|
|
362
|
|
363 /* enable special GNU Make features in the Makefiles. */
|
|
364 #undef USE_GNU_MAKE
|
|
365
|
|
366 /* Undocumented debugging option: Don't automatically rebuild the DOC
|
|
367 file. This saves a lot of time when you're repeatedly
|
|
368 compiling-running-crashing. */
|
|
369 #undef NO_DOC_FILE
|
|
370
|
|
371 /* To eliminate use of `const' in the XEmacs sources,
|
|
372 do `#define CONST_IS_LOSING' */
|
|
373 #undef CONST_IS_LOSING
|
|
374
|
|
375 # undef CONST
|
|
376 # ifdef CONST_IS_LOSING
|
|
377 # define CONST
|
|
378 # else
|
|
379 # define CONST const
|
|
380 # endif /* CONST */
|
|
381
|
|
382 /* If not defined, use unions instead of ints. A few systems (DEC Alpha)
|
|
383 seem to require this, probably because something with the int
|
|
384 definitions isn't right with 64-bit systems.
|
|
385
|
|
386 (It's NO_UNION_TYPE instead of USE_UNION_TYPE for historical reasons.)
|
|
387 */
|
|
388 #undef NO_UNION_TYPE
|
|
389
|
|
390 /* The configuration script defines opsysfile to be the name of the
|
|
391 s/...h file that describes the system type you are using. The file
|
|
392 is chosen based on the configuration name you give.
|
|
393
|
|
394 See the file ../etc/MACHINES for a list of systems and the
|
|
395 configuration names to use for them.
|
|
396
|
|
397 See s/template.h for documentation on writing s/...h files. */
|
|
398 #undef config_opsysfile
|
|
399 #include config_opsysfile
|
|
400
|
|
401 /* The configuration script defines machfile to be the name of the
|
|
402 m/...h file that describes the machine you are using. The file is
|
|
403 chosen based on the configuration name you give.
|
|
404
|
|
405 See the file ../etc/MACHINES for a list of machines and the
|
|
406 configuration names to use for them.
|
|
407
|
|
408 See m/template.h for documentation on writing m/...h files. */
|
|
409 #undef config_machfile
|
|
410 #include config_machfile
|
|
411
|
|
412 #if defined (USE_SYSTEM_MALLOC) && !defined (SYSTEM_MALLOC)
|
|
413 #define SYSTEM_MALLOC
|
|
414 #endif
|
|
415
|
|
416 #if 0 /* RMSmacs */
|
|
417 /* These typedefs shouldn't appear when alloca.s or Makefile.in
|
|
418 includes config.h. */
|
|
419 #ifndef NOT_C_CODE
|
|
420 #ifndef SPECIAL_EMACS_INT
|
|
421 typedef long EMACS_INT;
|
|
422 typedef unsigned long EMACS_UINT;
|
|
423 #endif
|
|
424 #endif
|
|
425 #endif
|
|
426
|
|
427 /* The configuration name. This is used as the install directory name
|
|
428 for the lib-src programs. */
|
|
429 #undef EMACS_CONFIGURATION
|
|
430
|
|
431 /* Load in the conversion definitions if this system
|
|
432 needs them and the source file being compiled has not
|
|
433 said to inhibit this. There should be no need for you
|
|
434 to alter these lines. */
|
|
435
|
|
436 #ifdef SHORTNAMES
|
|
437 #ifndef NO_SHORTNAMES
|
|
438 #include "../shortnames/remap.h"
|
|
439 #endif /* not NO_SHORTNAMES */
|
|
440 #endif /* SHORTNAMES */
|
|
441
|
|
442 /* Define REL_ALLOC if you want to use the relocating allocator for
|
|
443 buffer space. */
|
|
444 #undef REL_ALLOC
|
|
445
|
|
446 /* Define LD_SWITCH_SITE to contain any special flags your loader may need. */
|
|
447 #undef LD_SWITCH_SITE
|
|
448
|
|
449 /* Define C_SWITCH_SITE to contain any special flags your compiler needs. */
|
|
450 #undef C_SWITCH_SITE
|
|
451
|
|
452 /* Define LD_SWITCH_X_SITE to contain any special flags your loader
|
|
453 may need to deal with X Windows. For instance, if you've defined
|
|
454 HAVE_X_WINDOWS above and your X libraries aren't in a place that
|
|
455 your loader can find on its own, you might want to add "-L/..." or
|
|
456 something similar. */
|
|
457 #undef LD_SWITCH_X_SITE
|
|
458
|
|
459 /* Define LD_SWITCH_X_SITE_AUX with an -R option
|
|
460 in case it's needed (for Solaris, for example). */
|
|
461 #undef LD_SWITCH_X_SITE_AUX
|
|
462
|
|
463 /* Define C_SWITCH_X_SITE to contain any special flags your compiler
|
|
464 may need to deal with X Windows. For instance, if you've defined
|
|
465 HAVE_X_WINDOWS above and your X include files aren't in a place
|
|
466 that your compiler can find on its own, you might want to add
|
|
467 "-I/..." or something similar. */
|
|
468 #undef C_SWITCH_X_SITE
|
|
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
|
|
480 /* Define DYNODUMP if it is necessary to properly dump on this system.
|
|
481 Currently this is only Solaris. */
|
|
482 #undef DYNODUMP
|
|
483
|
|
484 /* Define NEED_XILDOFF if the -xildoff flag must be passed to cc to
|
|
485 avoid invoking the incremental linker ild which is incompatible
|
2
|
486 with dynodump. This is needed for recent Sun compilers. */
|
0
|
487 #undef NEED_XILDOFF
|
|
488
|
|
489 /* Define ENERGIZE to compile with support for the Energize Programming System.
|
|
490 If you do this, don't forget to define ENERGIZE in lwlib/Imakefile as well.
|
|
491 You will need to set your C_SWITCH_SITE and LD_SWITCH_SITE to point at the
|
|
492 Energize connection library (libconn.a) and associated header files.
|
|
493 */
|
|
494 #undef ENERGIZE
|
|
495 #undef ENERGIZE_2
|
|
496 #undef ENERGIZE_3
|
|
497
|
|
498 /* Define SUNPRO to compiled in support for Sun Sparcworks. */
|
|
499 #undef SUNPRO
|
|
500
|
|
501 /* Sun SparcStations, SGI machines, and HP9000s700s have support for playing
|
|
502 different sound files as beeps. If you are on a SparcStation but do not
|
|
503 have the sound option installed for some reason, then undefine
|
|
504 HAVE_NATIVE_SOUND. (It's usually found in /usr/demo/SOUND/ on SunOS 4
|
|
505 and Solaris systems; on Solaris, you may need to install the "SUNWaudmo"
|
|
506 package.)
|
|
507 */
|
|
508 #undef HAVE_NATIVE_SOUND
|
|
509
|
|
510 /* If you wish to compile with support for the Network Audio System
|
|
511 system define HAVE_NAS_SOUND.
|
|
512 NAS_NO_ERROR_JUMP means that the NAS libraries don't inlcude some
|
|
513 error handling changes.
|
|
514 */
|
|
515 #undef HAVE_NAS_SOUND
|
|
516 #undef NAS_NO_ERROR_JUMP
|
|
517
|
|
518 /* Compile in support for SunPro usage-tracking code. */
|
|
519 #undef USAGE_TRACKING
|
|
520
|
|
521 /* Define TOOLTALK if your site supports the ToolTalk library. */
|
|
522 #undef TOOLTALK
|
|
523
|
|
524 #undef LWLIB_USES_MOTIF
|
16
|
525 #undef LWLIB_USES_ATHENA
|
0
|
526 #undef LWLIB_MENUBARS_LUCID
|
|
527 #undef LWLIB_MENUBARS_MOTIF
|
|
528 #undef LWLIB_SCROLLBARS_LUCID
|
|
529 #undef LWLIB_SCROLLBARS_MOTIF
|
|
530 #undef LWLIB_SCROLLBARS_ATHENA
|
|
531 #undef LWLIB_DIALOGS_MOTIF
|
|
532 #undef LWLIB_DIALOGS_ATHENA
|
|
533
|
|
534 /* Other things that can be disabled by configure. */
|
|
535 #undef HAVE_MENUBARS
|
|
536 #undef HAVE_SCROLLBARS
|
|
537 #undef HAVE_DIALOGS
|
|
538 #undef HAVE_TOOLBARS
|
|
539
|
|
540
|
|
541 #if defined (HAVE_MENUBARS) || defined (HAVE_DIALOGS)
|
|
542 #define HAVE_POPUPS
|
|
543 #endif
|
|
544
|
|
545 /* If you are using SunOS 4.1.1 and X11r5, then you need this patch.
|
|
546 There is a stupid bug in the SunOS libc.a: two functions which X11r5
|
|
547 uses, mbstowcs() and wcstombs(), are unusable when programs are
|
|
548 statically linked (as XEmacs must be) because the static version of
|
|
549 libc.a contains the *dynamic* versions of these functions. These
|
|
550 functions don't seem to be called when XEmacs is running, so it's
|
|
551 enough to define stubs for them.
|
|
552
|
|
553 This appears to be fixed in SunOS 4.1.2.
|
|
554
|
|
555 Also, SunOS 4.1.1 contains buggy versions of strcmp and strcpy that
|
|
556 sometimes reference memory past the end of the string, which can segv.
|
|
557 I don't know whether this is has been fixed as of 4.1.2 or 4.1.3.
|
|
558 */
|
|
559 #if defined (sparc) && !defined (USG)
|
|
560 #define OBJECTS_SYSTEM sunOS-fix.o strcmp.o strcpy.o
|
|
561 #endif
|
|
562
|
|
563 /* If you turn this flag on, it forces encapsulation in all
|
|
564 circumstances; this can be used to make sure things compile OK
|
|
565 on various systems. */
|
|
566 #define DEBUG_ENCAPSULATION
|
|
567
|
|
568 /* basic system calls */
|
|
569
|
|
570 #if defined (INTERRUPTIBLE_IO) || defined (DEBUG_ENCAPSULATION)
|
|
571 # define ENCAPSULATE_READ
|
|
572 # define ENCAPSULATE_WRITE
|
|
573 #endif
|
|
574 #if defined (INTERRUPTIBLE_OPEN) || defined (DEBUG_ENCAPSULATION)
|
|
575 # define ENCAPSULATE_OPEN
|
|
576 #endif
|
|
577 #if defined (INTERRUPTIBLE_CLOSE) || defined (DEBUG_ENCAPSULATION)
|
|
578 # define ENCAPSULATE_CLOSE
|
|
579 #endif
|
|
580
|
|
581 /* stdio calls */
|
|
582
|
|
583 #if defined (INTERRUPTIBLE_IO) || defined (DEBUG_ENCAPSULATION)
|
|
584 # define ENCAPSULATE_FREAD
|
|
585 # define ENCAPSULATE_FWRITE
|
|
586 #endif
|
|
587 #if defined (INTERRUPTIBLE_OPEN) || defined (DEBUG_ENCAPSULATION)
|
|
588 # define ENCAPSULATE_FOPEN
|
|
589 #endif
|
|
590 #if defined (INTERRUPTIBLE_CLOSE) || defined (DEBUG_ENCAPSULATION)
|
|
591 # define ENCAPSULATE_FCLOSE
|
|
592 #endif
|
|
593
|
|
594 /* directory calls */
|
|
595
|
|
596 #if defined (DEBUG_ENCAPSULATION)
|
|
597 # define ENCAPSULATE_CHDIR
|
|
598 # define ENCAPSULATE_MKDIR
|
|
599 # define ENCAPSULATE_OPENDIR
|
|
600 # define ENCAPSULATE_READDIR
|
|
601 # define ENCAPSULATE_RMDIR
|
|
602 #endif
|
|
603
|
|
604 /* file-information calls */
|
|
605
|
|
606 #if defined (DEBUG_ENCAPSULATION)
|
2
|
607 #ifdef HAVE_EACCESS
|
|
608 # define ENCAPSULATE_EACCESS
|
|
609 #endif
|
0
|
610 # define ENCAPSULATE_ACCESS
|
|
611 # define ENCAPSULATE_LSTAT
|
|
612 # define ENCAPSULATE_READLINK
|
|
613 # define ENCAPSULATE_STAT
|
|
614 #endif
|
|
615
|
|
616 /* file-manipulation calls */
|
|
617
|
|
618 #if defined (DEBUG_ENCAPSULATION)
|
|
619 # define ENCAPSULATE_CHMOD
|
|
620 # define ENCAPSULATE_CREAT
|
|
621 # define ENCAPSULATE_LINK
|
|
622 # define ENCAPSULATE_RENAME
|
|
623 # define ENCAPSULATE_SYMLINK
|
|
624 # define ENCAPSULATE_UNLINK
|
|
625 #endif
|
|
626
|
|
627 #if (defined (MSDOS) && defined (FEPCTRL)) || (defined (WIN32) && defined (USE_IME))
|
|
628 #define HAVE_FEP
|
|
629 #endif
|
|
630
|
|
631 #if defined (HAVE_SOCKS) && !defined (DO_NOT_SOCKSIFY)
|
|
632 #define accept Raccept
|
|
633 #define bind Rbind
|
|
634 #define connect Rconnect
|
|
635 #define getsockname Rgetsockname
|
|
636 #define listen Rlisten
|
|
637 #endif /* HAVE_SOCKS && !DO_NOT_SOCKSIFY */
|
|
638
|
|
639 #ifndef SHORTBITS
|
|
640 #define SHORTBITS (8 * SIZEOF_SHORT)
|
|
641 #endif
|
|
642 #ifndef INTBITS
|
|
643 #define INTBITS (8 * SIZEOF_INT)
|
|
644 #endif
|
|
645 #ifndef LONGBITS
|
|
646 #define LONGBITS (8 * SIZEOF_LONG)
|
|
647 #endif
|
|
648
|
|
649 #ifdef HAVE_INLINE
|
|
650 # if defined (__GNUC__)
|
|
651 # if defined (DONT_EXTERN_INLINE_FUNCTIONS)
|
|
652 # define INLINE inline
|
|
653 # else
|
|
654 # define INLINE extern inline
|
|
655 # endif
|
|
656 # else
|
|
657 # define INLINE static inline
|
|
658 # endif
|
|
659 #else
|
|
660 # define INLINE static
|
|
661 #endif
|
|
662
|
|
663 /* We want to avoid saving the signal mask if possible, because
|
|
664 that necessitates a system call. */
|
|
665 #ifdef HAVE_SIGSETJMP
|
|
666 # define SETJMP(x) sigsetjmp (x, 0)
|
|
667 # define LONGJMP(x, y) siglongjmp (x, y)
|
|
668 # define JMP_BUF sigjmp_buf
|
|
669 #else
|
|
670 # define SETJMP(x) setjmp (x)
|
|
671 # define LONGJMP(x, y) longjmp (x, y)
|
|
672 # define JMP_BUF jmp_buf
|
|
673 #endif
|
|
674
|
|
675 #endif /* _CONFIG_H_ */
|