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