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