0
|
1 /* XEmacs site configuration template file. -*- C -*-
|
388
|
2 Copyright (C) 1986, 1991-1994, 1998, 1999 Free Software Foundation, Inc.
|
0
|
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
|
149
|
21 /* Significantly divergent from FSF. */
|
0
|
22
|
|
23 /* No code in XEmacs #includes config.h twice, but some of the code
|
149
|
24 intended to work with other packages as well (like gmalloc.c)
|
0
|
25 think they can include it as many times as they like. */
|
163
|
26 #ifndef _SRC_CONFIG_H_
|
|
27 #define _SRC_CONFIG_H_
|
0
|
28
|
406
|
29
|
149
|
30 /* alloca twiddling belongs in one place, not the s&m headers
|
|
31 AIX requires this to be the first thing in the file. */
|
|
32 #undef HAVE_ALLOCA_H
|
|
33
|
|
34 #ifndef NOT_C_CODE
|
|
35 #ifdef __GNUC__
|
|
36 #define alloca __builtin_alloca
|
371
|
37 #elif HAVE_ALLOCA_H
|
272
|
38 #include <alloca.h>
|
149
|
39 #elif defined(_AIX)
|
|
40 #pragma alloca
|
272
|
41 #elif ! defined (alloca)
|
404
|
42 char *alloca ();
|
149
|
43 #endif
|
272
|
44 #endif /* C code */
|
149
|
45
|
0
|
46
|
406
|
47 /* Use SMART_INCLUDE to generate #include statements with variable paths.
|
|
48
|
|
49 #### WARNING: NEVER EVER PUT A SPACE BETWEEN THE ARGUMENTS OF THE
|
|
50 `SMART_INCLUDE' MACRO: when the simple (direct version) is defined, you
|
|
51 would end up with a space in your header filename.
|
|
52
|
|
53 Since the effect of macro expansion in #include statements is underspecified
|
|
54 in the C standard, and rarely used in source code, different compilers need
|
|
55 different implementations of SMART_INCLUDE (e.g. gcc 2.5.8 and AIX xlc).
|
|
56 */
|
|
57 #undef SMART_INCLUDE_INDIRECTIONS
|
|
58
|
|
59 #if SMART_INCLUDE_INDIRECTIONS == 0
|
|
60 # define SMART_INCLUDE(path,file) <path/file>
|
|
61 #elif SMART_INCLUDE_INDIRECTIONS == 1
|
|
62 # define GLUE_INCLUDE(path,file) <##path##/##file##>
|
|
63 # define SMART_INCLUDE(path,file) GLUE_INCLUDE(path,file)
|
|
64 #elif SMART_INCLUDE_INDIRECTIONS == 2
|
|
65 # define GLUE_INCLUDE_2(path,file) <##path##/##file##>
|
|
66 # define GLUE_INCLUDE_1(path,file) GLUE_INCLUDE_2(path,file)
|
|
67 # define SMART_INCLUDE(path,file) GLUE_INCLUDE_1(path,file)
|
|
68 #else
|
|
69 # error SMART_INCLUDE_INDIRECTIONS was not properly defined by configure
|
|
70 #endif
|
|
71
|
|
72
|
70
|
73 /* Use this to add code in a structured way to FSF-maintained source
|
|
74 files so as to make it obvious where XEmacs changes are. */
|
272
|
75 #define XEMACS 1
|
0
|
76
|
404
|
77 /* Program name */
|
|
78 #undef EMACS_PROGNAME
|
|
79
|
163
|
80 /* Allow s&m files to differentiate OS versions without having
|
|
81 multiple files to maintain. */
|
|
82 #undef OS_RELEASE
|
|
83
|
|
84 /* The configuration name. This is used as the install directory name
|
|
85 for the lib-src programs. */
|
|
86 #undef EMACS_CONFIGURATION
|
|
87
|
173
|
88 /* The configuration options. This is exported to Lisp. */
|
|
89 #undef EMACS_CONFIG_OPTIONS
|
|
90
|
163
|
91 /* The version info from version.sh. Used in #pragma ident in emacs.c */
|
|
92 #undef EMACS_MAJOR_VERSION
|
|
93 #undef EMACS_MINOR_VERSION
|
398
|
94 #undef EMACS_PATCH_LEVEL
|
163
|
95 #undef EMACS_BETA_VERSION
|
|
96 #undef EMACS_VERSION
|
|
97 #undef XEMACS_CODENAME
|
278
|
98 /* InfoDock versions, not used with XEmacs */
|
|
99 #undef INFODOCK_MAJOR_VERSION
|
|
100 #undef INFODOCK_MINOR_VERSION
|
|
101 #undef INFODOCK_BUILD_VERSION
|
163
|
102
|
398
|
103 /* Make all functions from all IEEE Stds 1003.[123] available. */
|
|
104 #undef _POSIX_C_SOURCE
|
|
105
|
|
106 /* Make all functions from Unix98 available. */
|
|
107 #undef _XOPEN_SOURCE
|
|
108
|
|
109 /* Make extensions from Unix98 available. */
|
|
110 #undef _XOPEN_SOURCE_EXTENDED
|
|
111
|
207
|
112 /* Make all functions available on AIX. See AC_AIX. */
|
|
113 #undef _ALL_SOURCE
|
163
|
114
|
243
|
115 /* Make all functions available on GNU libc systems. See features.h. */
|
|
116 #undef _GNU_SOURCE
|
|
117
|
398
|
118 /* Make all functions available on Solaris 2 systems. */
|
|
119 #undef __EXTENSIONS__
|
|
120
|
163
|
121 /* Used to identify the XEmacs version in stack traces. */
|
177
|
122 #undef STACK_TRACE_EYE_CATCHER
|
163
|
123
|
267
|
124 /* Allow the configurer to specify if she wants site-lisp. */
|
|
125 #undef INHIBIT_SITE_LISP
|
173
|
126
|
388
|
127 /* Allow the configurer to specify if she wants site-modules. */
|
|
128 #undef INHIBIT_SITE_MODULES
|
|
129
|
167
|
130 /* This will be removed in 19.15. */
|
|
131 /* Hah! Try 20.3 ... */
|
|
132 /* Hah! Try never ... */
|
169
|
133 /* If at first you don't succeed, try, try again. */
|
|
134 /* #define LOSING_BYTECODE */
|
163
|
135
|
261
|
136 /* Undefine on systems which don't have processes */
|
|
137 #undef HAVE_UNIX_PROCESSES
|
|
138
|
70
|
139 /* Does XEmacs support floating-point numbers? */
|
0
|
140 #undef LISP_FLOAT_TYPE
|
|
141
|
255
|
142 /* Define GNU_MALLOC if you want to use the GNU memory allocator. */
|
0
|
143 #undef GNU_MALLOC
|
|
144
|
259
|
145 /* Define if you are using the GNU C Library. -- experimental. */
|
255
|
146 #undef DOUG_LEA_MALLOC
|
|
147
|
267
|
148 /* Define if you are using libmcheck.a from the GNU C Library. */
|
|
149 #undef HAVE_LIBMCHECK
|
|
150
|
259
|
151 /* Define if you are using dlmalloc from the Linux C library. */
|
|
152 #undef _NO_MALLOC_WARNING_
|
|
153
|
149
|
154 /* Use the system malloc? */
|
0
|
155 #undef USE_SYSTEM_MALLOC
|
|
156
|
255
|
157 /* Use a debugging malloc? -- experimental */
|
177
|
158 #undef USE_DEBUG_MALLOC
|
|
159
|
149
|
160 /* Compile in TTY support? */
|
0
|
161 #undef HAVE_TTY
|
|
162
|
239
|
163 /* Compile in support for MS windows? */
|
|
164 #undef HAVE_MS_WINDOWS
|
|
165
|
278
|
166 /* special cygwin process handling? */
|
|
167 #undef HAVE_MSG_SELECT
|
|
168
|
149
|
169 /* Compile in support for the X window system? */
|
0
|
170 #undef HAVE_X_WINDOWS
|
|
171
|
163
|
172 /* Defines for building X applications */
|
74
|
173 #ifdef HAVE_X_WINDOWS
|
163
|
174 /* The following will be defined if xmkmf thinks they are necessary */
|
|
175 #undef SVR4
|
|
176 #undef SYSV
|
207
|
177 #undef AIXV3
|
163
|
178 #undef _POSIX_SOURCE
|
|
179 #undef _BSD_SOURCE
|
276
|
180 #undef _SVID_SOURCE
|
163
|
181 #undef X_LOCALE
|
|
182 #undef NARROWPROTO
|
|
183 /* The following should always be defined, no matter what xmkmf thinks. */
|
74
|
184 #ifndef NeedFunctionPrototypes
|
|
185 #define NeedFunctionPrototypes 1
|
|
186 #endif
|
157
|
187 #ifndef FUNCPROTO
|
|
188 #define FUNCPROTO 15
|
|
189 #endif
|
159
|
190 #endif /* HAVE_X_WINDOWS */
|
74
|
191
|
70
|
192 /* Define HAVE_WINDOW_SYSTEM if any windowing system is available. */
|
239
|
193 #if defined (HAVE_X_WINDOWS) || defined(HAVE_MS_WINDOWS) /* || defined (HAVE_NEXTSTEP) */
|
0
|
194 #define HAVE_WINDOW_SYSTEM
|
|
195 #endif
|
|
196
|
70
|
197 /* Define HAVE_UNIXOID_EVENT_LOOP if we use select() to wait for events. */
|
278
|
198 #if defined (HAVE_X_WINDOWS) || defined (HAVE_TTY) || defined(HAVE_MSG_SELECT)
|
0
|
199 #define HAVE_UNIXOID_EVENT_LOOP
|
|
200 #endif
|
|
201
|
70
|
202 /* Are we using XFree386? */
|
0
|
203 #undef HAVE_XFREE386
|
|
204
|
|
205 #undef THIS_IS_X11R4
|
|
206 #undef THIS_IS_X11R5
|
|
207 #undef THIS_IS_X11R6
|
|
208
|
398
|
209 #undef HAVE_XCONVERTCASE
|
|
210
|
265
|
211 /* Where do we find bitmaps? */
|
|
212 #undef BITMAPDIR
|
|
213
|
70
|
214 /* USER_FULL_NAME returns a string that is the user's full name.
|
|
215 It can assume that the variable `pw' points to the password file
|
|
216 entry for this user.
|
0
|
217
|
70
|
218 At some sites, the pw_gecos field contains the user's full name.
|
|
219 If neither this nor any other field contains the right thing, use
|
|
220 pw_name, giving the user's login name, since that is better than
|
|
221 nothing. */
|
0
|
222 #define USER_FULL_NAME pw->pw_gecos
|
|
223
|
|
224 /* Define AMPERSAND_FULL_NAME if you use the convention
|
70
|
225 that & in the full name stands for the login id. */
|
0
|
226 #undef AMPERSAND_FULL_NAME
|
|
227
|
|
228 /* Some things figured out by the configure script, grouped as they are in
|
70
|
229 configure.in. */
|
267
|
230 #undef HAVE_MCHECK_H
|
400
|
231 #undef HAVE_A_OUT_H
|
|
232 #undef HAVE_CYGWIN_VERSION_H
|
|
233 #undef HAVE_FCNTL_H
|
|
234 #undef HAVE_INTTYPES_H
|
|
235 #undef HAVE_LIBGEN_H
|
|
236 #undef HAVE_LOCALE_H
|
0
|
237 #undef HAVE_MACH_MACH_H
|
400
|
238 #undef HAVE_SYS_PARAM_H
|
|
239 #undef HAVE_SYS_PSTAT_H
|
0
|
240 #undef HAVE_SYS_STROPTS_H
|
400
|
241 #undef HAVE_SYS_TIME_H
|
0
|
242 #undef HAVE_SYS_TIMEB_H
|
400
|
243 #undef HAVE_SYS_UN_H
|
|
244 #undef HAVE_ULIMIT_H
|
0
|
245 #undef HAVE_UNISTD_H
|
|
246 #undef HAVE_UTIME_H
|
400
|
247
|
0
|
248 #undef HAVE_SYS_WAIT_H
|
70
|
249 #undef HAVE_LIBINTL_H
|
|
250 #undef HAVE_X11_XLOCALE_H
|
0
|
251 #undef STDC_HEADERS
|
|
252 #undef TIME_WITH_SYS_TIME
|
|
253 #undef WORDS_BIGENDIAN
|
70
|
254 #undef HAVE_VFORK_H
|
|
255 #undef HAVE_KSTAT_H
|
|
256 #undef vfork
|
0
|
257
|
|
258 #undef HAVE_LONG_FILE_NAMES
|
|
259
|
173
|
260 /* Use lock files to detect multiple edits of the same file? */
|
|
261 #undef CLASH_DETECTION
|
0
|
262
|
265
|
263 /* Have shared library support */
|
|
264 #undef HAVE_DLOPEN
|
276
|
265 #undef HAVE_DLERROR
|
388
|
266 #undef HAVE__DLERROR
|
265
|
267 #undef HAVE_SHL_LOAD
|
|
268 #undef HAVE_DLD_INIT
|
245
|
269 #undef HAVE_SHLIB
|
388
|
270 #undef HAVE_DLFCN_H
|
245
|
271
|
70
|
272 #undef HAVE_LIBKSTAT
|
149
|
273 #undef HAVE_LIBINTL
|
0
|
274 #undef HAVE_LIBDNET
|
|
275 #undef HAVE_LIBRESOLV
|
|
276
|
70
|
277 /* Is `sys_siglist' declared by <signal.h>? */
|
0
|
278 #undef SYS_SIGLIST_DECLARED
|
|
279
|
70
|
280 /* Is `struct utimbuf' declared by <utime.h>? */
|
0
|
281 #undef HAVE_STRUCT_UTIMBUF
|
|
282
|
70
|
283 /* Is `struct timeval' declared by <sys/time.h>? */
|
0
|
284 #undef HAVE_TIMEVAL
|
|
285
|
|
286
|
|
287 #undef TM_IN_SYS_TIME
|
|
288 #undef HAVE_TM_ZONE
|
|
289 #undef HAVE_TZNAME
|
|
290
|
70
|
291 /* Is `h_errno' declared by <netdb.h>? */
|
0
|
292 #undef HAVE_H_ERRNO
|
|
293
|
70
|
294 /* Does `localtime' cache TZ? */
|
0
|
295 #undef LOCALTIME_CACHE
|
|
296
|
70
|
297 /* Can `gettimeofday' accept two arguments? */
|
0
|
298 #undef GETTIMEOFDAY_ONE_ARGUMENT
|
|
299
|
|
300 #undef HAVE_MMAP
|
|
301 #undef HAVE_STRCOLL
|
163
|
302 #undef HAVE_GETPGRP
|
|
303 #undef GETPGRP_VOID
|
0
|
304
|
243
|
305 #undef HAVE_INVERSE_HYPERBOLIC
|
0
|
306
|
|
307 #undef HAVE_CBRT
|
|
308 #undef HAVE_CLOSEDIR
|
|
309 #undef HAVE_DUP2
|
|
310 #undef HAVE_EACCESS
|
|
311 #undef HAVE_FMOD
|
|
312 #undef HAVE_FPATHCONF
|
|
313 #undef HAVE_FREXP
|
|
314 #undef HAVE_FTIME
|
398
|
315 #undef HAVE_GETADDRINFO
|
0
|
316 #undef HAVE_GETHOSTNAME
|
398
|
317 #undef HAVE_GETNAMEINFO
|
0
|
318 #undef HAVE_GETPAGESIZE
|
|
319 #undef HAVE_GETTIMEOFDAY
|
|
320 #undef HAVE_GETWD
|
72
|
321 #undef HAVE_GETCWD
|
398
|
322 #undef HAVE_GETPT
|
0
|
323 #undef HAVE_LOGB
|
|
324 #undef HAVE_LRAND48
|
|
325 #undef HAVE_MATHERR
|
|
326 #undef HAVE_MKDIR
|
|
327 #undef HAVE_MKTIME
|
|
328 #undef HAVE_PERROR
|
|
329 #undef HAVE_POLL
|
|
330 #undef HAVE_RANDOM
|
|
331 #undef HAVE_REALPATH
|
|
332 #undef HAVE_RENAME
|
|
333 #undef HAVE_RES_INIT
|
|
334 #undef HAVE_RINT
|
|
335 #undef HAVE_RMDIR
|
|
336 #undef HAVE_SELECT
|
|
337 #undef HAVE_SETITIMER
|
|
338 #undef HAVE_SETPGID
|
|
339 #undef HAVE_SETSID
|
|
340 #undef HAVE_SIGBLOCK
|
|
341 #undef HAVE_SIGHOLD
|
|
342 #undef HAVE_SIGPROCMASK
|
|
343 #undef HAVE_SIGSETJMP
|
265
|
344 #undef HAVE_SNPRINTF
|
398
|
345 #undef HAVE_STPCPY
|
0
|
346 #undef HAVE_STRCASECMP
|
|
347 #undef HAVE_STRERROR
|
|
348 #undef HAVE_TZSET
|
169
|
349 #undef HAVE_ULIMIT
|
167
|
350 #undef HAVE_USLEEP
|
0
|
351 #undef HAVE_UTIMES
|
|
352 #undef HAVE_WAITPID
|
265
|
353 #undef HAVE_VSNPRINTF
|
0
|
354 #undef HAVE_SOCKETS
|
|
355 #undef HAVE_SOCKADDR_SUN_LEN
|
259
|
356 #undef HAVE_MULTICAST
|
0
|
357 #undef HAVE_SYSVIPC
|
398
|
358 #undef HAVE_LOCKF
|
|
359 #undef HAVE_FLOCK
|
|
360 #undef HAVE_FSYNC
|
|
361 #undef HAVE_FTRUNCATE
|
|
362 #undef HAVE_UMASK
|
0
|
363
|
|
364 #undef SYSV_SYSTEM_DIR
|
|
365 #undef NONSYSTEM_DIR_LIBRARY
|
|
366
|
|
367 #undef HAVE_TERMIOS
|
|
368 #undef HAVE_TERMIO
|
175
|
369 #undef NO_TERMIO
|
|
370 #undef SIGNALS_VIA_CHARACTERS
|
0
|
371
|
|
372 #undef NLIST_STRUCT
|
|
373
|
149
|
374 /* Compile in support for SOCKS? */
|
0
|
375 #undef HAVE_SOCKS
|
|
376
|
149
|
377 /* Compile in support for X pixmaps via the `xpm' library? */
|
0
|
378 #undef HAVE_XPM
|
278
|
379 #undef FOR_MSW
|
0
|
380
|
149
|
381 /* Compile in support for "X faces" via the `compface' library?
|
|
382 This enables graphical display of X-face headers in mail/news messages */
|
0
|
383 #undef HAVE_XFACE
|
|
384
|
251
|
385 /* Compile in support for JPEG images */
|
|
386 #undef HAVE_JPEG
|
|
387
|
|
388 /* Compile in support for TIFF images */
|
|
389 #undef HAVE_TIFF
|
|
390
|
|
391 /* Compile in support for GIF images */
|
|
392 #undef HAVE_GIF
|
|
393
|
|
394 /* Compile in support for PNG images */
|
|
395 #undef HAVE_PNG
|
0
|
396
|
70
|
397 /* Do you have the Xmu library?
|
|
398 This should always be the case except on losing HP-UX systems. */
|
0
|
399 #undef HAVE_XMU
|
|
400
|
149
|
401 /* Compile in support for DBM databases? May require libgdbm or libdbm. */
|
0
|
402 #undef HAVE_DBM
|
|
403
|
149
|
404 /* Compile in support for Berkeley DB style databases? May require libdb. */
|
0
|
405 #undef HAVE_BERKELEY_DB
|
149
|
406 /* Full #include file path for Berkeley DB's db.h */
|
406
|
407 #undef DB_H_FILE
|
0
|
408
|
149
|
409 /* Do we have either DBM or Berkeley DB database support? */
|
|
410 #undef HAVE_DATABASE
|
0
|
411
|
259
|
412 /* Do we have LDAP support? */
|
|
413 #undef HAVE_LDAP
|
398
|
414 /* Does the library define ldap_set_option () ? */
|
|
415 #undef HAVE_LDAP_SET_OPTION
|
|
416 /* Does the library define ldap_get_lderrno () ? */
|
|
417 #undef HAVE_LDAP_GET_LDERRNO
|
|
418 /* Does the library define ldap_result2error () ? */
|
|
419 #undef HAVE_LDAP_RESULT2ERROR
|
|
420 /* Does the library define ldap_parse_result () ? */
|
|
421 #undef HAVE_LDAP_PARSE_RESULT
|
259
|
422
|
404
|
423 /* Do we wish to link against the PostgreSQL RDBMS run-time library?
|
|
424 */
|
|
425 #undef HAVE_POSTGRESQL
|
|
426 #undef HAVE_POSTGRESQLV7
|
406
|
427 #undef POSTGRES_H_PATH
|
|
428 #if defined POSTGRES_H_PATH
|
|
429 # define POSTGRES_INCLUDE(file) SMART_INCLUDE (POSTGRES_H_PATH,file)
|
|
430 #else
|
|
431 # define POSTGRES_INCLUDE(file) <file>
|
|
432 #endif
|
404
|
433
|
70
|
434 /* Do you have the Xauth library present? This will add some extra
|
|
435 functionality to gnuserv. */
|
0
|
436 #undef HAVE_XAUTH
|
|
437
|
149
|
438 /* Compile in support for gpm (General Purpose Mouse)? */
|
|
439 #undef HAVE_GPM
|
0
|
440
|
149
|
441 /* Compile in support for ncurses? */
|
|
442 #undef HAVE_NCURSES
|
|
443 /* Full #include file paths for ncurses' curses.h and term.h. */
|
406
|
444 #undef CURSES_H_FILE
|
|
445 #undef TERM_H_FILE
|
0
|
446
|
70
|
447 /* Define USE_ASSERTIONS if you want the abort() to be changed to assert().
|
0
|
448 If the assertion fails, assert_failed() will be called. This is
|
|
449 recommended for general use because it gives more info about the crash
|
|
450 than just the abort() message. Too many people "Can't find the corefile"
|
70
|
451 or have limit-ed core dumps out of existence. */
|
0
|
452 #undef USE_ASSERTIONS
|
|
453
|
|
454 /* Define one or more of the following if you want lots of extra checks
|
|
455 (e.g. structure validation) compiled in. These should be turned
|
|
456 on during the beta-test cycle. */
|
|
457
|
|
458 /* Check the entire extent structure of a buffer each time an extent
|
|
459 change is done, and do other extent-related checks. */
|
|
460 #undef ERROR_CHECK_EXTENTS
|
398
|
461
|
0
|
462 /* Make sure that all X... macros are dereferencing the correct type,
|
|
463 and that all XSET... macros (as much as possible) are setting the
|
|
464 correct type of structure. Highly recommended for all
|
|
465 development work. */
|
|
466 #undef ERROR_CHECK_TYPECHECK
|
398
|
467 #ifdef ERROR_CHECK_TYPECHECK
|
|
468 #define type_checking_assert(assertion) assert (assertion)
|
|
469 #else
|
|
470 #define type_checking_assert(assertion)
|
|
471 #endif
|
|
472
|
0
|
473 /* Make sure valid buffer positions are passed to BUF_* macros. */
|
|
474 #undef ERROR_CHECK_BUFPOS
|
398
|
475 #ifdef ERROR_CHECK_BUFPOS
|
|
476 #define bufpos_checking_assert(assertion) assert (assertion)
|
|
477 #else
|
|
478 #define bufpos_checking_assert(assertion)
|
|
479 #endif
|
|
480
|
149
|
481 /* Attempt to catch bugs related to garbage collection (e.g. not GCPRO'ing). */
|
0
|
482 #undef ERROR_CHECK_GC
|
400
|
483 #ifdef ERROR_CHECK_GC
|
|
484 #define gc_checking_assert(assertion) assert (assertion)
|
|
485 #else
|
|
486 #define gc_checking_assert(assertion)
|
|
487 #endif
|
398
|
488
|
149
|
489 /* Attempt to catch freeing of a non-malloc()ed block, heap corruption, etc. */
|
0
|
490 #undef ERROR_CHECK_MALLOC
|
|
491
|
398
|
492 /* Minor sanity checking of the bytecode interpreter. Useful for
|
|
493 debugging the byte compiler. */
|
|
494 #undef ERROR_CHECK_BYTE_CODE
|
|
495
|
406
|
496 /* Minor sanity checking of glyphs, especially subwindows and
|
|
497 widgets. */
|
|
498 #undef ERROR_CHECK_GLYPHS
|
|
499
|
0
|
500 /* Define DEBUG_XEMACS if you want extra debugging code compiled in.
|
|
501 This is mainly intended for use by developers. */
|
|
502 #undef DEBUG_XEMACS
|
|
503
|
|
504 /* Define MEMORY_USAGE_STATS if you want extra code compiled in to
|
149
|
505 determine where XEmacs' memory is going. */
|
0
|
506 #undef MEMORY_USAGE_STATS
|
|
507
|
380
|
508 /* Define QUANTIFY if using Quantify from Rational/Pure/Atria Software.
|
149
|
509 This adds some additional calls to control data collection.
|
|
510 It is only intended for use by the developers. */
|
0
|
511 #undef QUANTIFY
|
|
512
|
380
|
513 /* Define QUANTIFY if using Purify from Rational/Pure/Atria Software.
|
|
514 It is only intended for use by the developers. */
|
|
515 #undef PURIFY
|
|
516
|
|
517 #if (defined (QUANTIFY) || defined (PURIFY)) && !defined (XLIB_ILLEGAL_ACCESS)
|
|
518 #define XLIB_ILLEGAL_ACCESS 1
|
|
519 #endif
|
|
520
|
0
|
521 /* Define EXTERNAL_WIDGET to compile support for using the editor as a
|
149
|
522 widget within another program. */
|
0
|
523 #undef EXTERNAL_WIDGET
|
|
524
|
|
525 /* There are some special-case defines for gcc and lcc. */
|
|
526 #undef USE_GCC
|
|
527 #undef USE_LCC
|
|
528
|
70
|
529 /* Define this if you want level 2 internationalization compliance
|
|
530 (localized collation and formatting). Generally this should be
|
149
|
531 defined, unless your system doesn't have the strcoll() and
|
|
532 setlocale() library routines. This really should be (NOT! -mrb)
|
|
533 defined in the appropriate s/ or m/ file. */
|
70
|
534 #undef I18N2
|
0
|
535
|
70
|
536 /* Define this if you want level 3 internationalization compliance
|
|
537 (localized messaging). This will cause a small runtime performance
|
|
538 penalty, as the strings are read from the message catalog(s).
|
|
539 For this you need the gettext() and dgetext() library routines.
|
|
540 WARNING, this code is under construction. */
|
|
541 #undef I18N3
|
|
542
|
149
|
543 /* Compile in support for CDE (Common Desktop Environment) drag and drop?
|
|
544 Requires libDtSvc, which typically must be present at runtime. */
|
0
|
545 #undef HAVE_CDE
|
|
546
|
207
|
547 /* Compile in support for OffiX Drag and Drop? */
|
2
|
548 #undef HAVE_OFFIX_DND
|
|
549
|
282
|
550 /* Compile in generic Drag'n'Drop API */
|
|
551 #undef HAVE_DRAGNDROP
|
|
552
|
398
|
553 /* Compile in support for proper handling of WM_COMMAND. */
|
|
554 #undef HAVE_WMCOMMAND
|
177
|
555
|
70
|
556 /* Define this if you want Mule support (multi-byte character support).
|
|
557 There may be some performance penalty, although it should be small
|
|
558 if you're working with ASCII files. */
|
|
559 #undef MULE
|
|
560
|
259
|
561 /* Define this if you want file coding support */
|
|
562 #undef FILE_CODING
|
251
|
563
|
70
|
564 /* Do we want to use X window input methods for use with Mule? (requires X11R5)
|
|
565 If so, use raw Xlib or higher level Motif interface? */
|
|
566 #undef HAVE_XIM
|
|
567 #undef XIM_XLIB
|
|
568 #undef XIM_MOTIF
|
177
|
569 #undef USE_XFONTSET
|
70
|
570
|
|
571 /* Non-XIM input methods for use with Mule. */
|
|
572 #undef HAVE_CANNA
|
|
573 #undef HAVE_WNN
|
98
|
574 #undef WNN6
|
70
|
575
|
149
|
576 /* Enable special GNU Make features in the Makefiles. */
|
0
|
577 #undef USE_GNU_MAKE
|
|
578
|
406
|
579 /* Debugging development option: Remove inessential but time consuming
|
|
580 actions from happening during build. This saves a lot of time when
|
|
581 you're repeatedly compiling-running-crashing. This (1) doesn't
|
|
582 garbage-collect after loading each file during dumping, and (2)
|
|
583 doesn't automatically rebuild the DOC file. (Remove it by hand to
|
|
584 get it rebuilt.)
|
|
585 */
|
|
586 #undef QUICK_BUILD
|
0
|
587
|
272
|
588 /* Defined by AC_C_CONST in configure.in */
|
|
589 #undef const
|
|
590
|
398
|
591 /* Allow the source to use standard types. Include these before the
|
|
592 s&m files so that they can use them. */
|
|
593 #undef ssize_t
|
|
594 #undef size_t
|
|
595 #undef pid_t
|
|
596 #undef mode_t
|
|
597 #undef off_t
|
|
598 #undef uid_t
|
|
599 #undef gid_t
|
0
|
600
|
272
|
601 /* If defined, use unions instead of ints. A few systems (DEC Alpha)
|
|
602 seem to require this, probably because something with the int
|
|
603 definitions isn't right with 64-bit systems. */
|
|
604 #undef USE_UNION_TYPE
|
0
|
605
|
|
606 /* The configuration script defines opsysfile to be the name of the
|
70
|
607 s/...h file that describes the system type you are using.
|
|
608 The file is chosen based on the configuration name you give.
|
0
|
609
|
|
610 See the file ../etc/MACHINES for a list of systems and the
|
|
611 configuration names to use for them.
|
|
612
|
70
|
613 See s/template.h for documentation on writing s/...h files. */
|
185
|
614
|
|
615 #if defined (__cplusplus) && !defined (NOT_C_CODE)
|
|
616 extern "C" {
|
|
617 #endif
|
149
|
618 #undef config_opsysfile
|
0
|
619 #include config_opsysfile
|
|
620
|
|
621 /* The configuration script defines machfile to be the name of the
|
|
622 m/...h file that describes the machine you are using. The file is
|
|
623 chosen based on the configuration name you give.
|
|
624
|
|
625 See the file ../etc/MACHINES for a list of machines and the
|
|
626 configuration names to use for them.
|
|
627
|
70
|
628 See m/template.h for documentation on writing m/...h files. */
|
0
|
629 #undef config_machfile
|
|
630 #include config_machfile
|
272
|
631 #if defined (__cplusplus) && !defined (NOT_C_CODE)
|
|
632 }
|
|
633 #endif
|
0
|
634
|
|
635 #if defined (USE_SYSTEM_MALLOC) && !defined (SYSTEM_MALLOC)
|
|
636 #define SYSTEM_MALLOC
|
|
637 #endif
|
|
638
|
149
|
639 /* Use the relocating allocator for buffer space? */
|
0
|
640 #undef REL_ALLOC
|
|
641
|
149
|
642 /* Define the return type of signal handlers if the s/xxx.h file
|
70
|
643 did not already do so. */
|
0
|
644 #define RETSIGTYPE void
|
|
645
|
70
|
646 /* SIGTYPE is the macro we actually use. */
|
0
|
647 #ifndef SIGTYPE
|
|
648 #define SIGTYPE RETSIGTYPE
|
|
649 #define SIGRETURN return
|
|
650 #endif
|
|
651
|
|
652 /* Define DYNODUMP if it is necessary to properly dump on this system.
|
149
|
653 Currently this is only Solaris 2.x, for x < 6. */
|
0
|
654 #undef DYNODUMP
|
|
655
|
149
|
656 /* Compile in support for Sun Sparcworks/WorkShop? */
|
0
|
657 #undef SUNPRO
|
|
658
|
149
|
659 /* Sun SparcStations, SGI machines, and HP9000s700s have built-in
|
|
660 support for playing sound files. (On Suns, the sound support is
|
|
661 usually found in /usr/demo/SOUND - you may need to install the
|
|
662 "SUNWaudmo" package.) */
|
0
|
663 #undef HAVE_NATIVE_SOUND
|
149
|
664 /* Native sound may be provided via soundcard.h, in various directories */
|
406
|
665 #undef SOUNDCARD_H_FILE
|
0
|
666
|
149
|
667 /* Compile in support for NAS (Network Audio System)?
|
|
668 NAS_NO_ERROR_JUMP means that the NAS libraries don't include some
|
371
|
669 error handling changes. */
|
0
|
670 #undef HAVE_NAS_SOUND
|
|
671 #undef NAS_NO_ERROR_JUMP
|
|
672
|
398
|
673 /* Compile in support for ESD (Enlightened Sound Daemon)? */
|
|
674 #undef HAVE_ESD_SOUND
|
|
675
|
149
|
676 /* Compile in support for SunPro usage-tracking code? */
|
0
|
677 #undef USAGE_TRACKING
|
|
678
|
149
|
679 /* Compile in support for Tooltalk? */
|
0
|
680 #undef TOOLTALK
|
149
|
681 /* tt_c.h might be in "Tt" or "desktop" subdirectories */
|
406
|
682 #undef TT_C_H_FILE
|
0
|
683
|
149
|
684 /* Toolkits used by lwlib for various widgets... */
|
0
|
685 #undef LWLIB_USES_MOTIF
|
82
|
686 #undef LWLIB_USES_ATHENA
|
0
|
687 #undef LWLIB_MENUBARS_LUCID
|
|
688 #undef LWLIB_MENUBARS_MOTIF
|
|
689 #undef LWLIB_SCROLLBARS_LUCID
|
|
690 #undef LWLIB_SCROLLBARS_MOTIF
|
|
691 #undef LWLIB_SCROLLBARS_ATHENA
|
82
|
692 #undef LWLIB_SCROLLBARS_ATHENA3D
|
0
|
693 #undef LWLIB_DIALOGS_MOTIF
|
|
694 #undef LWLIB_DIALOGS_ATHENA
|
82
|
695 #undef LWLIB_DIALOGS_ATHENA3D
|
398
|
696 #undef LWLIB_TABS_LUCID
|
|
697 #undef LWLIB_WIDGETS_MOTIF
|
|
698 #undef LWLIB_WIDGETS_ATHENA
|
|
699 #undef HAVE_ATHENA_3D
|
0
|
700
|
|
701 /* Other things that can be disabled by configure. */
|
|
702 #undef HAVE_MENUBARS
|
|
703 #undef HAVE_SCROLLBARS
|
|
704 #undef HAVE_DIALOGS
|
|
705 #undef HAVE_TOOLBARS
|
398
|
706 #undef HAVE_WIDGETS
|
0
|
707
|
|
708
|
|
709 #if defined (HAVE_MENUBARS) || defined (HAVE_DIALOGS)
|
|
710 #define HAVE_POPUPS
|
|
711 #endif
|
|
712
|
|
713 /* If you are using SunOS 4.1.1 and X11r5, then you need this patch.
|
|
714 There is a stupid bug in the SunOS libc.a: two functions which X11r5
|
|
715 uses, mbstowcs() and wcstombs(), are unusable when programs are
|
|
716 statically linked (as XEmacs must be) because the static version of
|
|
717 libc.a contains the *dynamic* versions of these functions. These
|
149
|
718 functions don't seem to be called when XEmacs is running, so it's
|
0
|
719 enough to define stubs for them.
|
|
720
|
|
721 This appears to be fixed in SunOS 4.1.2.
|
|
722
|
|
723 Also, SunOS 4.1.1 contains buggy versions of strcmp and strcpy that
|
|
724 sometimes reference memory past the end of the string, which can segv.
|
70
|
725 I don't know whether this is has been fixed as of 4.1.2 or 4.1.3. */
|
0
|
726 #if defined (sparc) && !defined (USG)
|
|
727 #define OBJECTS_SYSTEM sunOS-fix.o strcmp.o strcpy.o
|
|
728 #endif
|
|
729
|
|
730 /* If you turn this flag on, it forces encapsulation in all
|
|
731 circumstances; this can be used to make sure things compile OK
|
|
732 on various systems. */
|
398
|
733 #undef DEBUG_ENCAPSULATION
|
0
|
734
|
|
735 /* basic system calls */
|
|
736
|
|
737 #if defined (INTERRUPTIBLE_IO) || defined (DEBUG_ENCAPSULATION)
|
|
738 # define ENCAPSULATE_READ
|
|
739 # define ENCAPSULATE_WRITE
|
|
740 #endif
|
70
|
741 #if defined (INTERRUPTIBLE_OPEN) || defined (MULE) || defined (DEBUG_ENCAPSULATION)
|
0
|
742 # define ENCAPSULATE_OPEN
|
|
743 #endif
|
|
744 #if defined (INTERRUPTIBLE_CLOSE) || defined (DEBUG_ENCAPSULATION)
|
|
745 # define ENCAPSULATE_CLOSE
|
|
746 #endif
|
|
747
|
|
748 /* stdio calls */
|
|
749
|
|
750 #if defined (INTERRUPTIBLE_IO) || defined (DEBUG_ENCAPSULATION)
|
|
751 # define ENCAPSULATE_FREAD
|
|
752 # define ENCAPSULATE_FWRITE
|
|
753 #endif
|
70
|
754 #if defined (INTERRUPTIBLE_OPEN) || defined (MULE) || defined (DEBUG_ENCAPSULATION)
|
0
|
755 # define ENCAPSULATE_FOPEN
|
|
756 #endif
|
|
757 #if defined (INTERRUPTIBLE_CLOSE) || defined (DEBUG_ENCAPSULATION)
|
|
758 # define ENCAPSULATE_FCLOSE
|
|
759 #endif
|
|
760
|
|
761 /* directory calls */
|
|
762
|
70
|
763 #if defined (MULE) || defined (DEBUG_ENCAPSULATION)
|
0
|
764 # define ENCAPSULATE_CHDIR
|
|
765 # define ENCAPSULATE_MKDIR
|
|
766 # define ENCAPSULATE_OPENDIR
|
272
|
767 # define ENCAPSULATE_CLOSEDIR
|
0
|
768 # define ENCAPSULATE_READDIR
|
|
769 # define ENCAPSULATE_RMDIR
|
|
770
|
|
771 /* file-information calls */
|
|
772
|
2
|
773 #ifdef HAVE_EACCESS
|
|
774 # define ENCAPSULATE_EACCESS
|
|
775 #endif
|
0
|
776 # define ENCAPSULATE_ACCESS
|
|
777 # define ENCAPSULATE_LSTAT
|
|
778 # define ENCAPSULATE_READLINK
|
|
779 # define ENCAPSULATE_STAT
|
|
780
|
|
781 /* file-manipulation calls */
|
|
782
|
|
783 # define ENCAPSULATE_CHMOD
|
|
784 # define ENCAPSULATE_CREAT
|
|
785 # define ENCAPSULATE_LINK
|
|
786 # define ENCAPSULATE_RENAME
|
|
787 # define ENCAPSULATE_SYMLINK
|
|
788 # define ENCAPSULATE_UNLINK
|
70
|
789 # define ENCAPSULATE_EXECVP
|
|
790 #endif /* defined (MULE) || defined (DEBUG_ENCAPSULATION) */
|
|
791
|
|
792 #ifdef HAVE_CANNA
|
|
793 # define CANNA2
|
|
794 # define CANNA_MULE
|
|
795 # define CANNA_PURESIZE 0
|
|
796 #else /* not CANNA */
|
|
797 # define CANNA_PURESIZE 0
|
|
798 #endif /* not CANNA */
|
0
|
799
|
|
800 #if (defined (MSDOS) && defined (FEPCTRL)) || (defined (WIN32) && defined (USE_IME))
|
|
801 #define HAVE_FEP
|
|
802 #endif
|
|
803
|
|
804 #if defined (HAVE_SOCKS) && !defined (DO_NOT_SOCKSIFY)
|
|
805 #define accept Raccept
|
|
806 #define bind Rbind
|
|
807 #define connect Rconnect
|
|
808 #define getsockname Rgetsockname
|
|
809 #define listen Rlisten
|
|
810 #endif /* HAVE_SOCKS && !DO_NOT_SOCKSIFY */
|
|
811
|
272
|
812 #undef SIZEOF_SHORT
|
|
813 #undef SIZEOF_INT
|
|
814 #undef SIZEOF_LONG
|
|
815 #undef SIZEOF_LONG_LONG
|
|
816 #undef SIZEOF_VOID_P
|
|
817
|
|
818 #ifndef BITS_PER_CHAR
|
|
819 #define BITS_PER_CHAR 8
|
0
|
820 #endif
|
272
|
821 #define SHORTBITS (SIZEOF_SHORT * BITS_PER_CHAR)
|
|
822 #define INTBITS (SIZEOF_INT * BITS_PER_CHAR)
|
|
823 #define LONGBITS (SIZEOF_LONG * BITS_PER_CHAR)
|
|
824 #define LONG_LONG_BITS (SIZEOF_LONG_LONG * BITS_PER_CHAR)
|
|
825 #define VOID_P_BITS (SIZEOF_VOID_P * BITS_PER_CHAR)
|
0
|
826
|
404
|
827 /* Use `INLINE_HEADER' to define inline functions in .h files.
|
|
828 Use `inline static' to define inline functions in .c files.
|
|
829 See the Internals manual for examples and more information. */
|
|
830
|
155
|
831 /* Does the keyword `inline' exist? */
|
|
832 #undef inline
|
|
833
|
404
|
834 #if defined (__cplusplus) || ! defined (__GNUC__)
|
|
835 # define INLINE_HEADER inline static
|
|
836 #elif defined (DONT_EXTERN_INLINE_HEADER_FUNCTIONS)
|
|
837 # define INLINE_HEADER inline
|
|
838 #else
|
|
839 # define INLINE_HEADER inline extern
|
|
840 #endif
|
0
|
841
|
272
|
842 #if defined (__cplusplus) && !defined (NOT_C_CODE)
|
|
843 /* Avoid C++ keywords used as ordinary C identifiers */
|
|
844 #define class c_class
|
|
845 #define new c_new
|
|
846 #define this c_this
|
|
847 #define catch c_catch
|
|
848 #endif /* C++ */
|
|
849
|
|
850 /* Strictly speaking, only int or unsigned int are valid types in a
|
|
851 bitfield. In practice, we would like to use enums as bitfields.
|
|
852 The following should just result in warning avoidance:
|
|
853 warning: nonportable bit-field type */
|
274
|
854 #ifdef __GNUC__
|
272
|
855 #define enum_field(enumeration_type) enum enumeration_type
|
|
856 #else
|
|
857 #define enum_field(enumeration_type) unsigned int
|
|
858 #endif
|
|
859
|
0
|
860 /* We want to avoid saving the signal mask if possible, because
|
|
861 that necessitates a system call. */
|
|
862 #ifdef HAVE_SIGSETJMP
|
|
863 # define SETJMP(x) sigsetjmp (x, 0)
|
|
864 # define LONGJMP(x, y) siglongjmp (x, y)
|
|
865 # define JMP_BUF sigjmp_buf
|
|
866 #else
|
|
867 # define SETJMP(x) setjmp (x)
|
|
868 # define LONGJMP(x, y) longjmp (x, y)
|
|
869 # define JMP_BUF jmp_buf
|
|
870 #endif
|
|
871
|
118
|
872 /* movemail options */
|
149
|
873 /* Should movemail use POP3 for mail access? */
|
118
|
874 #undef MAIL_USE_POP
|
149
|
875 /* Should movemail use kerberos for POP authentication? */
|
118
|
876 #undef KERBEROS
|
149
|
877 /* Should movemail use hesiod for getting POP server host? */
|
118
|
878 #undef HESIOD
|
149
|
879 /* Determine type of mail locking. */
|
398
|
880 #undef MAIL_LOCK_LOCKF
|
|
881 #undef MAIL_LOCK_FLOCK
|
|
882 #undef MAIL_LOCK_DOT
|
|
883 #undef MAIL_LOCK_LOCKING
|
|
884 #undef MAIL_LOCK_MMDF
|
118
|
885
|
398
|
886 #undef PREFIX_USER_DEFINED
|
|
887 #undef EXEC_PREFIX_USER_DEFINED
|
|
888 #undef MODULEDIR_USER_DEFINED
|
|
889 #undef SITEMODULEDIR_USER_DEFINED
|
|
890 #undef DOCDIR_USER_DEFINED
|
276
|
891 #undef LISPDIR_USER_DEFINED
|
|
892 #undef PACKAGE_PATH_USER_DEFINED
|
|
893 #undef SITELISPDIR_USER_DEFINED
|
|
894 #undef ARCHLIBDIR_USER_DEFINED
|
|
895 #undef ETCDIR_USER_DEFINED
|
|
896 #undef LOCKDIR_USER_DEFINED
|
|
897 #undef INFODIR_USER_DEFINED
|
|
898 #undef INFOPATH_USER_DEFINED
|
|
899
|
398
|
900 #undef PDUMP
|
|
901
|
185
|
902 #endif /* _SRC_CONFIG_H_ */
|