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