428
|
1 /* XEmacs site configuration template file. -*- C -*-
|
|
2 Copyright (C) 1986, 1991-1994, 1998, 1999 Free Software Foundation, Inc.
|
771
|
3 Copyright (C) 2000, 2001, 2002 Ben Wing.
|
428
|
4
|
|
5 This file is part of XEmacs.
|
|
6
|
|
7 XEmacs is free software; you can redistribute it and/or modify it
|
|
8 under the terms of the GNU General Public License as published by the
|
|
9 Free Software Foundation; either version 2, or (at your option) any
|
|
10 later version.
|
|
11
|
|
12 XEmacs is distributed in the hope that it will be useful, but WITHOUT
|
|
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
15 for more details.
|
|
16
|
|
17 You should have received a copy of the GNU General Public License
|
|
18 along with XEmacs; see the file COPYING. If not, write to
|
|
19 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
20 Boston, MA 02111-1307, USA. */
|
|
21
|
|
22 /* Significantly divergent from FSF. */
|
|
23
|
|
24 /* No code in XEmacs #includes config.h twice, but some of the code
|
|
25 intended to work with other packages as well (like gmalloc.c)
|
|
26 think they can include it as many times as they like. */
|
|
27 #ifndef _SRC_CONFIG_H_
|
|
28 #define _SRC_CONFIG_H_
|
|
29
|
771
|
30 /*
|
|
31 This file now serves both as config.h.in and simply as config.h under
|
|
32 Windows NT. Under Windows NT, there is no configure script that
|
|
33 operates, so it is necessary for the relevant constants to be set
|
|
34 manually, either by the user (for user options) or in s/windowsnt.h.
|
|
35
|
|
36 Formerly, under NT there were three different places where constants
|
|
37 were defined -- nt/config.h, nt/xemacs.mak and s/windowsnt.h; now only
|
|
38 the latter two are used. (This separate config.h was a hassle because
|
|
39 it required constant synchronization between it and src/config.h.in.)
|
|
40 Since the options that are substituted by configure are written in
|
|
41 config.h.in with #undef, it is easy to make this file serve as
|
|
42 config.h under Windows NT. Options that are set by the user are
|
|
43 specified in the file config.inc.samp, which is included by xemacs.mak
|
872
|
44 \(the makefile) and used to set command-line options to the
|
771
|
45 compiler. The sorts of options that relate to the system and not to
|
|
46 the user and which are normally auto-determined by configure are set
|
|
47 in windowsnt.h.
|
|
48
|
|
49 What this means is that a little more care has to be taken in the way
|
|
50 things are arranged in config.h.in. In particular:
|
|
51
|
|
52 -- Everything that is written with a #undef should be bracketed by
|
|
53 #ifdef WIN32_NO_CONFIGURE, and these #ifdefs should in general be
|
|
54 grouped together as much as possible.
|
|
55
|
|
56 -- Things that are not #undefs should not go inside this bracketed
|
|
57 #ifdef, because these things typically set constants based on other
|
|
58 constants and those latter constants may be set elsewhere under
|
|
59 Windows NT.
|
|
60
|
|
61 -- Any #ifdefs that depend on constants that may be set in windowsnt.h
|
|
62 need to be moved after the point at which this file is
|
|
63 included. This applies for example to the error checking macros.
|
|
64 */
|
|
65
|
|
66 #if defined (WIN32_NATIVE) && !defined (MINGW)
|
|
67 # define WIN32_NO_CONFIGURE
|
|
68 #endif
|
|
69
|
428
|
70 /* Use this to add code in a structured way to FSF-maintained source
|
|
71 files so as to make it obvious where XEmacs changes are. */
|
|
72 #define XEMACS 1
|
|
73
|
771
|
74 #ifndef WIN32_NO_CONFIGURE /* Defined in xemacs.mak or s/windowsnt.h: */
|
|
75
|
442
|
76 /* Program name */
|
|
77 #undef EMACS_PROGNAME
|
|
78
|
428
|
79 /* Allow s&m files to differentiate OS versions without having
|
|
80 multiple files to maintain. */
|
|
81 #undef OS_RELEASE
|
|
82
|
|
83 /* The configuration name. This is used as the install directory name
|
|
84 for the lib-src programs. */
|
|
85 #undef EMACS_CONFIGURATION
|
|
86
|
|
87 /* The configuration options. This is exported to Lisp. */
|
|
88 #undef EMACS_CONFIG_OPTIONS
|
|
89
|
|
90 /* The version info from version.sh. Used in #pragma ident in emacs.c */
|
|
91 #undef EMACS_MAJOR_VERSION
|
|
92 #undef EMACS_MINOR_VERSION
|
|
93 #undef EMACS_PATCH_LEVEL
|
|
94 #undef EMACS_BETA_VERSION
|
|
95 #undef EMACS_VERSION
|
|
96 #undef XEMACS_CODENAME
|
975
|
97 #undef XEMACS_EXTRA_NAME
|
428
|
98 /* InfoDock versions, not used with XEmacs */
|
|
99 #undef INFODOCK_MAJOR_VERSION
|
|
100 #undef INFODOCK_MINOR_VERSION
|
|
101 #undef INFODOCK_BUILD_VERSION
|
|
102
|
442
|
103 /* Make functions from IEEE Stds 1003.[123] available. */
|
|
104 #undef _POSIX_C_SOURCE
|
|
105
|
|
106 /* Make some functions from Unix98 available. */
|
|
107 #undef _XOPEN_SOURCE
|
|
108
|
|
109 /* Make "extensions" from Unix98 available. */
|
|
110 #undef _XOPEN_SOURCE_EXTENDED
|
|
111
|
428
|
112 /* Make all functions available on AIX. See AC_AIX. */
|
1294
|
113 /* Some AIX compilers (cc) pre-define _ALL_SOURCE, some (xlc) don't. */
|
1284
|
114 #ifndef _ALL_SOURCE
|
428
|
115 #undef _ALL_SOURCE
|
1284
|
116 #endif
|
428
|
117
|
|
118 /* Make all functions available on GNU libc systems. See features.h. */
|
|
119 #undef _GNU_SOURCE
|
|
120
|
442
|
121 /* Make all functions available on Solaris 2 systems. */
|
|
122 #undef __EXTENSIONS__
|
|
123
|
1799
|
124 /* Define to the name of the typeof extension, if the compiler supports one */
|
|
125 #undef TYPEOF
|
|
126
|
428
|
127 /* Used to identify the XEmacs version in stack traces. */
|
|
128 #undef STACK_TRACE_EYE_CATCHER
|
|
129
|
|
130 /* Allow the configurer to specify if she wants site-lisp. */
|
|
131 #undef INHIBIT_SITE_LISP
|
|
132
|
|
133 /* Allow the configurer to specify if she wants site-modules. */
|
|
134 #undef INHIBIT_SITE_MODULES
|
|
135
|
|
136 /* This will be removed in 19.15. */
|
|
137 /* Hah! Try 20.3 ... */
|
|
138 /* Hah! Try never ... */
|
|
139 /* If at first you don't succeed, try, try again. */
|
|
140 /* #define LOSING_BYTECODE */
|
|
141
|
|
142 /* Undefine on systems which don't have processes */
|
|
143 #undef HAVE_UNIX_PROCESSES
|
|
144
|
|
145 /* Define GNU_MALLOC if you want to use the GNU memory allocator. */
|
|
146 #undef GNU_MALLOC
|
|
147
|
|
148 /* Define if you are using the GNU C Library. -- experimental. */
|
|
149 #undef DOUG_LEA_MALLOC
|
|
150
|
|
151 /* Define if you are using libmcheck.a from the GNU C Library. */
|
|
152 #undef HAVE_LIBMCHECK
|
|
153
|
|
154 /* Define if you are using dlmalloc from the Linux C library. */
|
|
155 #undef _NO_MALLOC_WARNING_
|
|
156
|
|
157 /* Use the system malloc? */
|
|
158 #undef USE_SYSTEM_MALLOC
|
|
159
|
|
160 /* Use a debugging malloc? -- experimental */
|
|
161 #undef USE_DEBUG_MALLOC
|
|
162
|
|
163 /* Compile in TTY support? */
|
|
164 #undef HAVE_TTY
|
|
165
|
|
166 /* Compile in support for MS windows? */
|
|
167 #undef HAVE_MS_WINDOWS
|
|
168
|
|
169 /* special cygwin process handling? */
|
|
170 #undef HAVE_MSG_SELECT
|
|
171
|
|
172 /* Compile in support for the X window system? */
|
|
173 #undef HAVE_X_WINDOWS
|
|
174
|
|
175 /* Defines for building X applications */
|
|
176 #ifdef HAVE_X_WINDOWS
|
|
177 /* The following will be defined if xmkmf thinks they are necessary */
|
|
178 #undef SVR4
|
|
179 #undef SYSV
|
|
180 #undef AIXV3
|
|
181 #undef _POSIX_SOURCE
|
|
182 #undef _BSD_SOURCE
|
|
183 #undef _SVID_SOURCE
|
|
184 #undef X_LOCALE
|
|
185 #undef NARROWPROTO
|
771
|
186 #endif /* HAVE_X_WINDOWS */
|
|
187
|
|
188 #endif /* WIN32_NO_CONFIGURE */
|
|
189
|
|
190 #ifdef HAVE_X_WINDOWS
|
428
|
191 /* The following should always be defined, no matter what xmkmf thinks. */
|
|
192 #ifndef NeedFunctionPrototypes
|
|
193 #define NeedFunctionPrototypes 1
|
|
194 #endif
|
|
195 #ifndef FUNCPROTO
|
|
196 #define FUNCPROTO 15
|
|
197 #endif
|
|
198 #endif /* HAVE_X_WINDOWS */
|
|
199
|
462
|
200 /* Defines for building Gtk applications */
|
|
201 #undef HAVE_GNOME
|
|
202 #undef HAVE_GTK
|
|
203 #undef HAVE_GDK_IMLIB_INIT
|
|
204 #undef HAVE_GLADE_GLADE_H
|
|
205 #undef HAVE_GLADE_H
|
|
206 #undef LIBGLADE_XML_TXTDOMAIN
|
|
207
|
428
|
208 /* Define HAVE_WINDOW_SYSTEM if any windowing system is available. */
|
1303
|
209 #if defined (HAVE_GTK) || defined (HAVE_X_WINDOWS) || defined (HAVE_MS_WINDOWS) /* || defined (HAVE_NEXTSTEP) */
|
428
|
210 #define HAVE_WINDOW_SYSTEM
|
|
211 #endif
|
|
212
|
1303
|
213 #if defined (HAVE_GTK) || defined (HAVE_X_WINDOWS)
|
|
214 #define HAVE_XLIKE
|
|
215 #endif
|
|
216
|
428
|
217 /* Define HAVE_UNIXOID_EVENT_LOOP if we use select() to wait for events. */
|
1303
|
218 #if defined (HAVE_X_WINDOWS) || defined (HAVE_TTY) || defined (HAVE_MSG_SELECT)
|
428
|
219 #define HAVE_UNIXOID_EVENT_LOOP
|
|
220 #endif
|
|
221
|
771
|
222 #ifndef WIN32_NO_CONFIGURE /* Defined in xemacs.mak or s/windowsnt.h: */
|
|
223
|
444
|
224 /* XFree86 has a different prototype for this function */
|
|
225 #undef HAVE_XREGISTERIMINSTANTIATECALLBACK
|
|
226 #undef XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE
|
428
|
227
|
|
228 #undef THIS_IS_X11R4
|
|
229 #undef THIS_IS_X11R5
|
|
230 #undef THIS_IS_X11R6
|
|
231
|
442
|
232 #undef HAVE_XCONVERTCASE
|
|
233
|
|
234 #undef HAVE_BALLOON_HELP
|
|
235
|
428
|
236 /* Where do we find bitmaps? */
|
|
237 #undef BITMAPDIR
|
|
238
|
|
239 /* Define AMPERSAND_FULL_NAME if you use the convention
|
|
240 that & in the full name stands for the login id. */
|
|
241 #undef AMPERSAND_FULL_NAME
|
|
242
|
|
243 /* Some things figured out by the configure script, grouped as they are in
|
|
244 configure.in. */
|
|
245 #undef HAVE_MCHECK_H
|
442
|
246 #undef HAVE_A_OUT_H
|
446
|
247 #undef HAVE_ELF_H
|
442
|
248 #undef HAVE_CYGWIN_VERSION_H
|
|
249 #undef HAVE_FCNTL_H
|
|
250 #undef HAVE_INTTYPES_H
|
|
251 #undef HAVE_LIBGEN_H
|
|
252 #undef HAVE_LOCALE_H
|
912
|
253 #undef HAVE_WCHAR_H
|
428
|
254 #undef HAVE_MACH_MACH_H
|
442
|
255 #undef HAVE_SYS_PARAM_H
|
|
256 #undef HAVE_SYS_PSTAT_H
|
2263
|
257 #undef HAVE_SYS_RESOURCE_H
|
442
|
258 #undef HAVE_SYS_TIME_H
|
428
|
259 #undef HAVE_SYS_TIMEB_H
|
777
|
260 #undef HAVE_SYS_TIMES_H
|
442
|
261 #undef HAVE_SYS_UN_H
|
2263
|
262 #undef HAVE_SYS_VLIMIT_H
|
442
|
263 #undef HAVE_ULIMIT_H
|
428
|
264 #undef HAVE_UNISTD_H
|
442
|
265
|
428
|
266 #undef HAVE_SYS_WAIT_H
|
|
267 #undef HAVE_LIBINTL_H
|
|
268 #undef HAVE_X11_XLOCALE_H
|
872
|
269
|
|
270 /* About __STDC__: Different compilers differ wrt __STDC__. Sunpro C
|
|
271 defines it, but its value is 0 unless we disable non-ANSI extensions.
|
|
272 VC++ doesn't define it at all unless we disable non-ANSI extensions.
|
|
273 But these compilers are all ANSI-compliant. So don't go testing
|
|
274 __STDC__ anywhere except in code that runs only on known
|
|
275 compilers. --ben
|
|
276
|
|
277 Jamie wrote the following:
|
|
278
|
|
279 [[ The ANSI standard says that defining __STDC__ to a non-zero value
|
|
280 means that the compiler conforms to that standard. The standard
|
|
281 requires certain header files and library functions to be present.
|
|
282 Therefore, if your compiler defines __STDC__ to non-0 but does not have
|
|
283 ANSI headers and the ANSI library routines, then your compiler is
|
|
284 buggy. Conversely, an ANSI-conforming environment (which has both the
|
|
285 ANSI headers and library routines, i.e., stdlib.h and `memmove') does
|
|
286 not necessarily define the STDC_HEADERS flag. Lucid Emacs requires an
|
|
287 ANSI compiler. Therefore, there is no need to consult the abominable
|
|
288 STDC_HEADERS flag. -- jwz ]]
|
|
289
|
|
290 In reality, we should not be testing STDC_HEADERS at all except
|
|
291 possibly in code we're purposely keeping in close sync with FSF code.
|
|
292 STDC_HEADERS should be defined on *ALL* compilers.
|
|
293 */
|
|
294
|
428
|
295 #undef STDC_HEADERS
|
872
|
296
|
428
|
297 #undef TIME_WITH_SYS_TIME
|
|
298 #undef WORDS_BIGENDIAN
|
|
299
|
|
300 #undef HAVE_LONG_FILE_NAMES
|
|
301
|
|
302 /* Use lock files to detect multiple edits of the same file? */
|
|
303 #undef CLASH_DETECTION
|
|
304
|
|
305 /* Have shared library support */
|
|
306 #undef HAVE_DLOPEN
|
|
307 #undef HAVE_DLERROR
|
|
308 #undef HAVE__DLERROR
|
|
309 #undef HAVE_SHL_LOAD
|
1383
|
310 #undef HAVE_DYLD
|
2078
|
311 #undef HAVE_LTDL
|
1259
|
312 #undef DLSYM_NEEDS_UNDERSCORE
|
1790
|
313 #undef HAVE_SHLIB
|
428
|
314
|
|
315 #undef HAVE_LIBINTL
|
|
316 #undef HAVE_LIBDNET
|
|
317 #undef HAVE_LIBRESOLV
|
|
318
|
|
319 /* Is `sys_siglist' declared by <signal.h>? */
|
|
320 #undef SYS_SIGLIST_DECLARED
|
|
321
|
|
322 /* Is `struct timeval' declared by <sys/time.h>? */
|
|
323 #undef HAVE_TIMEVAL
|
|
324
|
|
325
|
|
326 #undef TM_IN_SYS_TIME
|
|
327 #undef HAVE_TM_ZONE
|
|
328 #undef HAVE_TZNAME
|
|
329
|
442
|
330 /* For `getloadavg' provided by system */
|
|
331 #undef HAVE_GETLOADAVG
|
|
332 #undef HAVE_SYS_LOADAVG_H
|
|
333 /* For implementing `getloadavg' ourselves */
|
|
334 #undef HAVE_LIBKSTAT
|
|
335 #undef HAVE_KSTAT_H
|
|
336
|
428
|
337 /* Is `h_errno' declared by <netdb.h>? */
|
|
338 #undef HAVE_H_ERRNO
|
|
339
|
|
340 /* Does `localtime' cache TZ? */
|
|
341 #undef LOCALTIME_CACHE
|
|
342
|
|
343 /* Can `gettimeofday' accept two arguments? */
|
|
344 #undef GETTIMEOFDAY_ONE_ARGUMENT
|
|
345
|
|
346 #undef HAVE_MMAP
|
|
347 #undef HAVE_STRCOLL
|
|
348 #undef HAVE_GETPGRP
|
|
349 #undef GETPGRP_VOID
|
|
350
|
|
351 #undef HAVE_INVERSE_HYPERBOLIC
|
|
352
|
|
353 #undef HAVE_CBRT
|
|
354 #undef HAVE_CLOSEDIR
|
|
355 #undef HAVE_DUP2
|
|
356 #undef HAVE_EACCESS
|
|
357 #undef HAVE_FMOD
|
|
358 #undef HAVE_FPATHCONF
|
|
359 #undef HAVE_FREXP
|
|
360 #undef HAVE_FTIME
|
440
|
361 #undef HAVE_GETADDRINFO
|
428
|
362 #undef HAVE_GETHOSTNAME
|
440
|
363 #undef HAVE_GETNAMEINFO
|
428
|
364 #undef HAVE_GETPAGESIZE
|
2263
|
365 #undef HAVE_GETRLIMIT
|
428
|
366 #undef HAVE_GETTIMEOFDAY
|
|
367 #undef HAVE_GETWD
|
|
368 #undef HAVE_GETCWD
|
771
|
369 #undef HAVE_LINK
|
428
|
370 #undef HAVE_LOGB
|
|
371 #undef HAVE_LRAND48
|
|
372 #undef HAVE_MATHERR
|
|
373 #undef HAVE_MKDIR
|
|
374 #undef HAVE_MKTIME
|
|
375 #undef HAVE_PERROR
|
|
376 #undef HAVE_POLL
|
|
377 #undef HAVE_RANDOM
|
771
|
378 #undef HAVE_READLINK
|
428
|
379 #undef HAVE_REALPATH
|
|
380 #undef HAVE_RENAME
|
|
381 #undef HAVE_RES_INIT
|
|
382 #undef HAVE_RINT
|
|
383 #undef HAVE_RMDIR
|
|
384 #undef HAVE_SELECT
|
|
385 #undef HAVE_SETITIMER
|
|
386 #undef HAVE_SETPGID
|
|
387 #undef HAVE_SETSID
|
|
388 #undef HAVE_SIGBLOCK
|
|
389 #undef HAVE_SIGHOLD
|
|
390 #undef HAVE_SIGPROCMASK
|
|
391 #undef HAVE_SIGSETJMP
|
|
392 #undef HAVE_SNPRINTF
|
|
393 #undef HAVE_STPCPY
|
|
394 #undef HAVE_STRERROR
|
1204
|
395 #undef HAVE_STRLWR
|
|
396 #undef HAVE_STRUPR
|
771
|
397 #undef HAVE_SYMLINK
|
428
|
398 #undef HAVE_TZSET
|
|
399 #undef HAVE_ULIMIT
|
|
400 #undef HAVE_USLEEP
|
460
|
401 #undef HAVE_UTIME
|
428
|
402 #undef HAVE_UTIMES
|
|
403 #undef HAVE_WAITPID
|
|
404 #undef HAVE_VSNPRINTF
|
2263
|
405 #undef HAVE_VLIMIT
|
442
|
406
|
535
|
407 /* Many flavors of PTY support */
|
442
|
408 #undef HAVE_GETPT /* glibc's easy pty allocation function */
|
444
|
409 #undef HAVE__GETPTY /* SGI's easy pty allocation function */
|
442
|
410 #undef HAVE_OPENPTY /* BSD's easy pty allocation function */
|
|
411 #undef HAVE_GRANTPT /* Unix98 */
|
|
412 #undef HAVE_UNLOCKPT /* Unix98 */
|
|
413 #undef HAVE_PTSNAME /* Unix98 */
|
|
414 #undef HAVE_KILLPG /* BSD */
|
|
415 #undef HAVE_TCGETPGRP /* Posix 1 */
|
|
416 #undef HAVE_ISASTREAM /* SysV streams */
|
535
|
417 #undef HAVE_SYS_PTY_H /* AIX */
|
|
418 #undef HAVE_SYS_PTYIO_H /* HP-UX */
|
|
419 #undef HAVE_PTY_H /* Linux, Tru64 */
|
442
|
420 #undef HAVE_LIBUTIL_H /* BSD openpty */
|
458
|
421 #undef HAVE_UTIL_H /* NetBSD openpty */
|
444
|
422 #undef HAVE_STROPTS_H /* SysV streams */
|
|
423 #undef HAVE_STRTIO_H /* SysV streams TIOCSIGNAL */
|
442
|
424
|
428
|
425 #undef HAVE_SOCKETS
|
|
426 #undef HAVE_SOCKADDR_SUN_LEN
|
|
427 #undef HAVE_MULTICAST
|
|
428 #undef HAVE_SYSVIPC
|
438
|
429 #undef HAVE_LOCKF
|
|
430 #undef HAVE_FLOCK
|
|
431 #undef HAVE_FSYNC
|
|
432 #undef HAVE_FTRUNCATE
|
|
433 #undef HAVE_UMASK
|
428
|
434
|
|
435 #undef SYSV_SYSTEM_DIR
|
|
436 #undef NONSYSTEM_DIR_LIBRARY
|
|
437
|
|
438 #undef HAVE_TERMIOS
|
|
439 #undef HAVE_TERMIO
|
|
440 #undef NO_TERMIO
|
|
441 #undef SIGNALS_VIA_CHARACTERS
|
|
442
|
|
443 #undef NLIST_STRUCT
|
|
444
|
724
|
445 /* Do IPv6 hostname canonicalization before IPv4 in getaddrinfo()? */
|
|
446 #undef IPV6_CANONICALIZE
|
|
447
|
428
|
448 /* Compile in support for SOCKS? */
|
|
449 #undef HAVE_SOCKS
|
|
450
|
|
451 /* Compile in support for X pixmaps via the `xpm' library? */
|
|
452 #undef HAVE_XPM
|
|
453 #undef FOR_MSW
|
|
454
|
|
455 /* Compile in support for "X faces" via the `compface' library?
|
|
456 This enables graphical display of X-face headers in mail/news messages */
|
|
457 #undef HAVE_XFACE
|
|
458
|
|
459 /* Compile in support for JPEG images */
|
|
460 #undef HAVE_JPEG
|
|
461
|
|
462 /* Compile in support for TIFF images */
|
|
463 #undef HAVE_TIFF
|
|
464
|
|
465 /* Compile in support for GIF images */
|
|
466 #undef HAVE_GIF
|
|
467
|
|
468 /* Compile in support for PNG images */
|
|
469 #undef HAVE_PNG
|
|
470
|
771
|
471 /* Compile in support for GZIP compression */
|
|
472 #undef HAVE_ZLIB
|
|
473
|
428
|
474 /* Do you have the Xmu library?
|
|
475 This should always be the case except on losing HP-UX systems. */
|
|
476 #undef HAVE_XMU
|
|
477
|
|
478 /* Compile in support for DBM databases? May require libgdbm or libdbm. */
|
|
479 #undef HAVE_DBM
|
|
480
|
|
481 /* Compile in support for Berkeley DB style databases? May require libdb. */
|
|
482 #undef HAVE_BERKELEY_DB
|
|
483 /* Full #include file path for Berkeley DB's db.h */
|
442
|
484 #undef DB_H_FILE
|
428
|
485
|
|
486 /* Do we have either DBM or Berkeley DB database support? */
|
|
487 #undef HAVE_DATABASE
|
|
488
|
|
489 /* Do we have LDAP support? */
|
|
490 #undef HAVE_LDAP
|
|
491 /* Does the library define ldap_set_option () ? */
|
|
492 #undef HAVE_LDAP_SET_OPTION
|
|
493 /* Does the library define ldap_get_lderrno () ? */
|
|
494 #undef HAVE_LDAP_GET_LDERRNO
|
|
495 /* Does the library define ldap_result2error () ? */
|
|
496 #undef HAVE_LDAP_RESULT2ERROR
|
|
497 /* Does the library define ldap_parse_result () ? */
|
|
498 #undef HAVE_LDAP_PARSE_RESULT
|
|
499
|
442
|
500 /* Do we have PostgreSQL RDBMS support? */
|
|
501 #undef HAVE_POSTGRESQL
|
|
502 #undef HAVE_POSTGRESQLV7
|
|
503 #undef LIBPQ_FE_H_FILE /* main PostgreSQL header file */
|
|
504
|
428
|
505 /* Do you have the Xauth library present? This will add some extra
|
|
506 functionality to gnuserv. */
|
|
507 #undef HAVE_XAUTH
|
|
508
|
|
509 /* Compile in support for gpm (General Purpose Mouse)? */
|
|
510 #undef HAVE_GPM
|
|
511
|
|
512 /* Compile in support for ncurses? */
|
|
513 #undef HAVE_NCURSES
|
|
514 /* Full #include file paths for ncurses' curses.h and term.h. */
|
442
|
515 #undef CURSES_H_FILE
|
|
516 #undef TERM_H_FILE
|
428
|
517
|
|
518 /* Define USE_ASSERTIONS if you want the abort() to be changed to assert().
|
|
519 If the assertion fails, assert_failed() will be called. This is
|
|
520 recommended for general use because it gives more info about the crash
|
|
521 than just the abort() message. Too many people "Can't find the corefile"
|
|
522 or have limit-ed core dumps out of existence. */
|
|
523 #undef USE_ASSERTIONS
|
|
524
|
|
525 /* Define one or more of the following if you want lots of extra checks
|
|
526 (e.g. structure validation) compiled in. These should be turned
|
|
527 on during the beta-test cycle. */
|
|
528
|
|
529 /* Check the entire extent structure of a buffer each time an extent
|
|
530 change is done, and do other extent-related checks. */
|
|
531 #undef ERROR_CHECK_EXTENTS
|
440
|
532
|
800
|
533 /* Turn on checks related to types -- make sure that all X... macros are
|
|
534 dereferencing the correct type, and that all XSET... macros (as much as
|
|
535 possible) are setting the correct type of structure; check any other
|
|
536 places that a specific type is expected. */
|
|
537 #undef ERROR_CHECK_TYPES
|
440
|
538
|
800
|
539 /* Turn on checks related to text -- check that text in strings and buffers
|
|
540 is in a valid format before we use it, check that buffer positions are
|
|
541 valid, etc. */
|
|
542 #undef ERROR_CHECK_TEXT
|
440
|
543
|
428
|
544 /* Attempt to catch bugs related to garbage collection (e.g. not GCPRO'ing). */
|
|
545 #undef ERROR_CHECK_GC
|
440
|
546
|
428
|
547 /* Attempt to catch freeing of a non-malloc()ed block, heap corruption, etc. */
|
|
548 #undef ERROR_CHECK_MALLOC
|
440
|
549
|
428
|
550 /* Minor sanity checking of the bytecode interpreter. Useful for
|
|
551 debugging the byte compiler. */
|
|
552 #undef ERROR_CHECK_BYTE_CODE
|
|
553
|
442
|
554 /* Minor sanity checking of glyphs, especially subwindows and
|
|
555 widgets. */
|
|
556 #undef ERROR_CHECK_GLYPHS
|
|
557
|
800
|
558 /* Sanity-check the redisplay structures after each modification. */
|
|
559 #undef ERROR_CHECK_DISPLAY
|
|
560
|
|
561 /* Define for any sanity checks on structures that are not handled by a
|
|
562 more specific error-checking type. */
|
|
563 #undef ERROR_CHECK_STRUCTURES
|
|
564
|
428
|
565 /* Define DEBUG_XEMACS if you want extra debugging code compiled in.
|
|
566 This is mainly intended for use by developers. */
|
|
567 #undef DEBUG_XEMACS
|
|
568
|
|
569 /* Define MEMORY_USAGE_STATS if you want extra code compiled in to
|
|
570 determine where XEmacs' memory is going. */
|
|
571 #undef MEMORY_USAGE_STATS
|
|
572
|
460
|
573 /* Define QUANTIFY if using Quantify from Rational Software.
|
428
|
574 This adds some additional calls to control data collection.
|
|
575 It is only intended for use by the developers. */
|
|
576 #undef QUANTIFY
|
|
577
|
460
|
578 /* Define PURIFY if using Purify from Rational Software.
|
428
|
579 It is only intended for use by the developers. */
|
|
580 #undef PURIFY
|
|
581
|
|
582 /* Define EXTERNAL_WIDGET to compile support for using the editor as a
|
|
583 widget within another program. */
|
|
584 #undef EXTERNAL_WIDGET
|
|
585
|
|
586 /* There are some special-case defines for gcc and lcc. */
|
|
587 #undef USE_GCC
|
|
588 #undef USE_LCC
|
|
589
|
|
590 /* Compile in support for CDE (Common Desktop Environment) drag and drop?
|
|
591 Requires libDtSvc, which typically must be present at runtime. */
|
|
592 #undef HAVE_CDE
|
|
593
|
|
594 /* Compile in support for OffiX Drag and Drop? */
|
|
595 #undef HAVE_OFFIX_DND
|
|
596
|
|
597 /* Compile in generic Drag'n'Drop API */
|
|
598 #undef HAVE_DRAGNDROP
|
|
599
|
|
600 /* Compile in support for proper handling of WM_COMMAND. */
|
|
601 #undef HAVE_WMCOMMAND
|
|
602
|
|
603 /* Define this if you want Mule support (multi-byte character support).
|
|
604 There may be some performance penalty, although it should be small
|
|
605 if you're working with ASCII files. */
|
|
606 #undef MULE
|
|
607
|
771
|
608 /* Define this if you want EOL detection of files to be on by default
|
|
609 in a non-Mule Unix; otherwise, defaults will be set so that all
|
|
610 files are read in as binary. Doesn't apply to Cygwin or MinGW. */
|
|
611 #undef HAVE_DEFAULT_EOL_DETECTION
|
428
|
612
|
1259
|
613 /* Support X FontSets. Evil, yes, but if we're going to make it go away
|
|
614 by using faces in the menubar we should do so. */
|
|
615 #undef USE_XFONTSET
|
|
616
|
428
|
617 /* Do we want to use X window input methods for use with Mule? (requires X11R5)
|
|
618 If so, use raw Xlib or higher level Motif interface? */
|
|
619 #undef HAVE_XIM
|
|
620 #undef XIM_XLIB
|
|
621 #undef XIM_MOTIF
|
|
622
|
|
623 /* Non-XIM input methods for use with Mule. */
|
|
624 #undef HAVE_CANNA
|
|
625 #undef HAVE_WNN
|
|
626 #undef WNN6
|
|
627
|
442
|
628 /* Debugging development option: Remove inessential but time consuming
|
|
629 actions from happening during build. This saves a lot of time when
|
|
630 you're repeatedly compiling-running-crashing. This (1) doesn't
|
|
631 garbage-collect after loading each file during dumping, and (2)
|
|
632 doesn't automatically rebuild the DOC file. (Remove it by hand to
|
|
633 get it rebuilt.)
|
|
634 */
|
|
635 #undef QUICK_BUILD
|
428
|
636
|
872
|
637 /* If true, run the compiler with many files at once rather than one at a
|
|
638 time. May speed up compilation time with some compilers, particularly
|
|
639 if the entire compilation happens in a single process -- the process can
|
|
640 cache the results of processing include files. This definitely helps
|
|
641 with VC++ (although it doesn't use Makefile.in.in) but not with GCC,
|
|
642 which runs many processes per file to compile. */
|
|
643 #undef BATCH_COMPILER_RUNS
|
|
644
|
771
|
645 /* If defined, use unions instead of ints. A few systems (DEC Alpha)
|
|
646 seem to require this, probably because something with the int
|
|
647 definitions isn't right with 64-bit systems. */
|
|
648 #undef USE_UNION_TYPE
|
|
649
|
926
|
650 /* If defined, use experimental pdump-based GC algorithms. */
|
|
651 #undef USE_KKCC
|
|
652
|
771
|
653 /* Enable special GNU Make features in the Makefiles. */
|
|
654 #undef USE_GNU_MAKE
|
|
655
|
428
|
656 /* Defined by AC_C_CONST in configure.in */
|
|
657 #undef const
|
|
658
|
434
|
659 /* Allow the source to use standard types. Include these before the
|
|
660 s&m files so that they can use them. */
|
|
661 #undef ssize_t
|
|
662 #undef size_t
|
|
663 #undef pid_t
|
|
664 #undef mode_t
|
|
665 #undef off_t
|
|
666 #undef uid_t
|
|
667 #undef gid_t
|
442
|
668 #undef socklen_t
|
434
|
669
|
771
|
670 #endif /* WIN32_NO_CONFIGURE */
|
|
671
|
|
672 /* USER_FULL_NAME returns a string that is the user's full name.
|
|
673 It can assume that the variable `pw' points to the password file
|
|
674 entry for this user.
|
|
675
|
|
676 At some sites, the pw_gecos field contains the user's full name.
|
|
677 If neither this nor any other field contains the right thing, use
|
|
678 pw_name, giving the user's login name, since that is better than
|
|
679 nothing. */
|
|
680 #define USER_FULL_NAME pw->pw_gecos
|
|
681
|
|
682 #if (defined (QUANTIFY) || defined (PURIFY)) && !defined (XLIB_ILLEGAL_ACCESS)
|
|
683 #define XLIB_ILLEGAL_ACCESS 1
|
|
684 #endif
|
428
|
685
|
851
|
686 #define XEMACS_WANTS_C_ALLOCA
|
|
687
|
615
|
688 /* alloca twiddling.
|
|
689 Because we might be #including alloca.h here, feature test macros
|
|
690 such as _XOPEN_SOURCE must be defined above. */
|
771
|
691
|
615
|
692 #undef HAVE_ALLOCA_H
|
|
693 #ifndef NOT_C_CODE
|
771
|
694 #if defined (__CYGWIN__)
|
|
695 /* We get complaints about redefinitions if we just use the __GNUC__
|
|
696 definition: stdlib.h also includes alloca.h, which defines it slightly
|
|
697 differently */
|
|
698 #include <alloca.h>
|
|
699 #elif defined (__GNUC__)
|
615
|
700 #define alloca __builtin_alloca
|
771
|
701 #elif defined (WIN32_NO_CONFIGURE)
|
|
702 /* Defines size_t and alloca (). */
|
|
703 #include <malloc.h>
|
|
704 #elif defined (__DECC)
|
615
|
705 #include <alloca.h>
|
|
706 #pragma intrinsic(alloca)
|
771
|
707 #elif defined (HAVE_ALLOCA_H)
|
615
|
708 #include <alloca.h>
|
771
|
709 #elif defined (_AIX)
|
615
|
710 /* AIX requires this before any "real" code in the translation unit. */
|
|
711 #pragma alloca
|
|
712 #elif ! defined (alloca)
|
851
|
713 #ifdef C_ALLOCA
|
|
714 #define alloca xemacs_c_alloca
|
|
715 #else
|
615
|
716 void *alloca ();
|
851
|
717 #endif /* C_ALLOCA */
|
|
718 #endif /* !defined (alloca) */
|
615
|
719 #endif /* C code */
|
|
720
|
442
|
721 /* The configuration script may define `opsysfile' to be the name of
|
|
722 the s/...h file that describes your operating system.
|
|
723 The file name is chosen based on the configuration name. */
|
428
|
724
|
|
725 #if defined (__cplusplus) && !defined (NOT_C_CODE)
|
|
726 extern "C" {
|
|
727 #endif
|
442
|
728
|
428
|
729 #undef config_opsysfile
|
771
|
730 #ifdef WIN32_NO_CONFIGURE
|
|
731 #include "s/windowsnt.h"
|
|
732 #elif defined (config_opsysfile)
|
428
|
733 #include config_opsysfile
|
442
|
734 #endif
|
428
|
735
|
442
|
736 /* The configuration script may define `machfile' to be the name of
|
|
737 the m/...h file that describes the machine you are using.
|
|
738 The file name is chosen based on the configuration name. */
|
428
|
739
|
|
740 #undef config_machfile
|
771
|
741 #ifdef WIN32_NO_CONFIGURE
|
|
742 #include "m/windowsnt.h"
|
|
743 #elif defined (config_machfile)
|
428
|
744 #include config_machfile
|
442
|
745 #endif
|
|
746
|
428
|
747 #if defined (__cplusplus) && !defined (NOT_C_CODE)
|
|
748 }
|
|
749 #endif
|
|
750
|
557
|
751 /* s&m files shouldn't be required to define anything, or even to exist.
|
|
752 If the s&m files don't define SYSTEM_TYPE, configure will select an
|
|
753 appropriate default value. */
|
|
754 #ifndef SYSTEM_TYPE
|
|
755 #undef SYSTEM_TYPE
|
|
756 #endif
|
|
757
|
428
|
758 #if defined (USE_SYSTEM_MALLOC) && !defined (SYSTEM_MALLOC)
|
|
759 #define SYSTEM_MALLOC
|
|
760 #endif
|
|
761
|
|
762 /* Define the return type of signal handlers if the s/xxx.h file
|
|
763 did not already do so. */
|
|
764 #define RETSIGTYPE void
|
|
765
|
872
|
766 #ifndef XCDECL
|
|
767 #define XCDECL
|
|
768 #endif
|
|
769
|
428
|
770 /* SIGTYPE is the macro we actually use. */
|
|
771 #ifndef SIGTYPE
|
872
|
772 #define SIGTYPE RETSIGTYPE XCDECL
|
428
|
773 #define SIGRETURN return
|
|
774 #endif
|
|
775
|
771
|
776 #ifndef WIN32_NO_CONFIGURE /* Defined in xemacs.mak or s/windowsnt.h: */
|
|
777
|
872
|
778 /* Use the relocating allocator for buffer space? */
|
|
779 #undef REL_ALLOC
|
|
780
|
428
|
781 /* Define DYNODUMP if it is necessary to properly dump on this system.
|
|
782 Currently this is only Solaris 2.x, for x < 6. */
|
|
783 #undef DYNODUMP
|
|
784
|
|
785 /* Compile in support for Sun Sparcworks/WorkShop? */
|
|
786 #undef SUNPRO
|
|
787
|
|
788 /* Sun SparcStations, SGI machines, and HP9000s700s have built-in
|
|
789 support for playing sound files. (On Suns, the sound support is
|
|
790 usually found in /usr/demo/SOUND - you may need to install the
|
|
791 "SUNWaudmo" package.) */
|
|
792 #undef HAVE_NATIVE_SOUND
|
771
|
793
|
428
|
794 /* Native sound may be provided via soundcard.h, in various directories */
|
442
|
795 #undef SOUNDCARD_H_FILE
|
428
|
796
|
|
797 /* Compile in support for NAS (Network Audio System)?
|
|
798 NAS_NO_ERROR_JUMP means that the NAS libraries don't include some
|
|
799 error handling changes. */
|
|
800 #undef HAVE_NAS_SOUND
|
|
801 #undef NAS_NO_ERROR_JUMP
|
|
802
|
|
803 /* Compile in support for ESD (Enlightened Sound Daemon)? */
|
|
804 #undef HAVE_ESD_SOUND
|
|
805
|
|
806 /* Compile in support for SunPro usage-tracking code? */
|
|
807 #undef USAGE_TRACKING
|
|
808
|
|
809 /* Compile in support for Tooltalk? */
|
|
810 #undef TOOLTALK
|
|
811 /* tt_c.h might be in "Tt" or "desktop" subdirectories */
|
442
|
812 #undef TT_C_H_FILE
|
428
|
813
|
|
814 /* Toolkits used by lwlib for various widgets... */
|
771
|
815
|
428
|
816 #undef LWLIB_USES_MOTIF
|
|
817 #undef LWLIB_USES_ATHENA
|
|
818 #undef LWLIB_MENUBARS_LUCID
|
|
819 #undef LWLIB_MENUBARS_MOTIF
|
|
820 #undef LWLIB_SCROLLBARS_LUCID
|
|
821 #undef LWLIB_SCROLLBARS_MOTIF
|
|
822 #undef LWLIB_SCROLLBARS_ATHENA
|
|
823 #undef LWLIB_SCROLLBARS_ATHENA3D
|
|
824 #undef LWLIB_DIALOGS_MOTIF
|
|
825 #undef LWLIB_DIALOGS_ATHENA
|
|
826 #undef LWLIB_DIALOGS_ATHENA3D
|
|
827 #undef LWLIB_TABS_LUCID
|
|
828 #undef LWLIB_WIDGETS_MOTIF
|
|
829 #undef LWLIB_WIDGETS_ATHENA
|
440
|
830 #undef HAVE_ATHENA_3D
|
428
|
831
|
|
832 /* Other things that can be disabled by configure. */
|
|
833 #undef HAVE_MENUBARS
|
|
834 #undef HAVE_SCROLLBARS
|
|
835 #undef HAVE_DIALOGS
|
|
836 #undef HAVE_TOOLBARS
|
|
837 #undef HAVE_WIDGETS
|
|
838
|
771
|
839 #endif /* WIN32_NO_CONFIGURE */
|
|
840
|
|
841 #if defined (HAVE_MENUBARS) || defined (HAVE_SCROLLBARS) || defined (HAVE_DIALOGS) || defined (HAVE_TOOLBARS) || defined (HAVE_WIDGETS)
|
|
842 #define HAVE_GUI_OBJECTS
|
|
843 #endif
|
|
844
|
|
845 /* For the moment, Athena widgets and dialogs may be very unstable and not
|
|
846 working well, but things under Windows work much better. configure by
|
|
847 default tries to turn Windows widgets and dialogs on, but the Athena
|
|
848 ones off, so let's separate the defines. */
|
|
849 #if defined (HAVE_WIDGETS) && (defined (LWLIB_WIDGETS_MOTIF) || defined (LWLIB_WIDGETS_ATHENA))
|
|
850 #define HAVE_X_WIDGETS
|
|
851 #endif
|
|
852
|
|
853 #if defined (HAVE_DIALOGS) && (defined (LWLIB_DIALOGS_MOTIF) || defined (LWLIB_DIALOGS_ATHENA) || defined (LWLIB_DIALOGS_ATHENA3D))
|
|
854 #define HAVE_X_DIALOGS
|
|
855 #endif
|
428
|
856
|
|
857 #if defined (HAVE_MENUBARS) || defined (HAVE_DIALOGS)
|
|
858 #define HAVE_POPUPS
|
|
859 #endif
|
|
860
|
|
861 /* If you are using SunOS 4.1.1 and X11r5, then you need this patch.
|
|
862 There is a stupid bug in the SunOS libc.a: two functions which X11r5
|
|
863 uses, mbstowcs() and wcstombs(), are unusable when programs are
|
|
864 statically linked (as XEmacs must be) because the static version of
|
|
865 libc.a contains the *dynamic* versions of these functions. These
|
|
866 functions don't seem to be called when XEmacs is running, so it's
|
|
867 enough to define stubs for them.
|
|
868
|
|
869 This appears to be fixed in SunOS 4.1.2.
|
|
870
|
|
871 Also, SunOS 4.1.1 contains buggy versions of strcmp and strcpy that
|
|
872 sometimes reference memory past the end of the string, which can segv.
|
444
|
873 I don't know whether this has been fixed as of 4.1.2 or 4.1.3. */
|
428
|
874 #if defined (sparc) && !defined (USG)
|
|
875 #define OBJECTS_SYSTEM sunOS-fix.o strcmp.o strcpy.o
|
|
876 #endif
|
|
877
|
|
878 #ifdef HAVE_CANNA
|
|
879 # define CANNA2
|
|
880 # define CANNA_MULE
|
|
881 # define CANNA_PURESIZE 0
|
|
882 #else /* not CANNA */
|
|
883 # define CANNA_PURESIZE 0
|
|
884 #endif /* not CANNA */
|
|
885
|
|
886 #if defined (HAVE_SOCKS) && !defined (DO_NOT_SOCKSIFY)
|
|
887 #define accept Raccept
|
|
888 #define bind Rbind
|
|
889 #define connect Rconnect
|
|
890 #define getsockname Rgetsockname
|
|
891 #define listen Rlisten
|
|
892 #endif /* HAVE_SOCKS && !DO_NOT_SOCKSIFY */
|
|
893
|
771
|
894 #ifndef WIN32_NO_CONFIGURE /* Defined in xemacs.mak or s/windowsnt.h: */
|
|
895
|
428
|
896 #undef SIZEOF_SHORT
|
|
897 #undef SIZEOF_INT
|
|
898 #undef SIZEOF_LONG
|
|
899 #undef SIZEOF_LONG_LONG
|
|
900 #undef SIZEOF_VOID_P
|
1983
|
901 #undef SIZEOF_DOUBLE
|
428
|
902
|
1444
|
903 /* some systems (Cygwin) typedef u?intptr_t in <sys/types.h>
|
|
904 but the standard is <inttypes.h>
|
|
905 ugliness due to last-resort conditional typedef'ing in lisp.h */
|
|
906 #undef HAVE_INTPTR_T_IN_SYS_TYPES_H
|
|
907
|
771
|
908 /* Does the keyword `inline' exist? */
|
|
909 #undef inline
|
|
910
|
|
911 #endif /* WIN32_NO_CONFIGURE */
|
|
912
|
428
|
913 #ifndef BITS_PER_CHAR
|
|
914 #define BITS_PER_CHAR 8
|
|
915 #endif
|
|
916 #define SHORTBITS (SIZEOF_SHORT * BITS_PER_CHAR)
|
|
917 #define INTBITS (SIZEOF_INT * BITS_PER_CHAR)
|
|
918 #define LONGBITS (SIZEOF_LONG * BITS_PER_CHAR)
|
|
919 #define LONG_LONG_BITS (SIZEOF_LONG_LONG * BITS_PER_CHAR)
|
|
920 #define VOID_P_BITS (SIZEOF_VOID_P * BITS_PER_CHAR)
|
1983
|
921 #define DOUBLE_BITS (SIZEOF_DOUBLE * BITS_PER_CHAR)
|
|
922
|
|
923 /* Enhanced numeric support */
|
|
924 #undef WITH_NUMBER_TYPES
|
|
925 #undef WITH_GMP
|
|
926 #undef WITH_MP
|
|
927 #undef MP_PREFIX
|
|
928 #undef HAVE_MP_MOVE
|
428
|
929
|
442
|
930 /* Use `INLINE_HEADER' to define inline functions in .h files.
|
|
931 Use `inline static' to define inline functions in .c files.
|
|
932 See the Internals manual for examples and more information. */
|
|
933
|
|
934 #if defined (__cplusplus) || ! defined (__GNUC__)
|
|
935 # define INLINE_HEADER inline static
|
|
936 #elif defined (DONT_EXTERN_INLINE_HEADER_FUNCTIONS)
|
|
937 # define INLINE_HEADER inline
|
|
938 #else
|
|
939 # define INLINE_HEADER inline extern
|
|
940 #endif
|
428
|
941
|
771
|
942 /* Use DECLARE_INLINE_HEADER() to declare an inline function in a header
|
|
943 file, like this: (This avoids the need to write a prototype directly
|
|
944 followed by the function header itself.)
|
|
945
|
|
946 DECLARE_INLINE_HEADER (int foo (int x))
|
|
947 {
|
|
948 return x * x;
|
|
949 }
|
|
950
|
|
951 */
|
|
952
|
|
953 #define DECLARE_INLINE_HEADER(header) \
|
|
954 INLINE_HEADER header ; INLINE_HEADER header
|
|
955
|
442
|
956 #ifndef NOT_C_CODE /* Actually means C or C++ */
|
|
957 # if defined (__cplusplus)
|
428
|
958 /* Avoid C++ keywords used as ordinary C identifiers */
|
442
|
959 # define new c_new
|
|
960 # define this c_this
|
|
961 # define catch c_catch
|
|
962
|
|
963 # define EXTERN_C extern "C"
|
|
964 # else /* C code */
|
|
965 # define EXTERN_C extern
|
|
966 # endif
|
|
967 #endif /* C or C++ */
|
428
|
968
|
|
969 /* Strictly speaking, only int or unsigned int are valid types in a
|
|
970 bitfield. In practice, we would like to use enums as bitfields.
|
|
971 The following should just result in warning avoidance:
|
|
972 warning: nonportable bit-field type */
|
|
973 #ifdef __GNUC__
|
|
974 #define enum_field(enumeration_type) enum enumeration_type
|
|
975 #else
|
|
976 #define enum_field(enumeration_type) unsigned int
|
|
977 #endif
|
|
978
|
|
979 /* We want to avoid saving the signal mask if possible, because
|
|
980 that necessitates a system call. */
|
|
981 #ifdef HAVE_SIGSETJMP
|
|
982 # define SETJMP(x) sigsetjmp (x, 0)
|
|
983 # define LONGJMP(x, y) siglongjmp (x, y)
|
|
984 # define JMP_BUF sigjmp_buf
|
|
985 #else
|
|
986 # define SETJMP(x) setjmp (x)
|
|
987 # define LONGJMP(x, y) longjmp (x, y)
|
|
988 # define JMP_BUF jmp_buf
|
|
989 #endif
|
|
990
|
771
|
991 #ifndef WIN32_NO_CONFIGURE /* Defined in xemacs.mak or s/windowsnt.h: */
|
|
992
|
428
|
993 /* movemail options */
|
|
994 /* Should movemail use POP3 for mail access? */
|
|
995 #undef MAIL_USE_POP
|
|
996 /* Should movemail use kerberos for POP authentication? */
|
|
997 #undef KERBEROS
|
|
998 /* Should movemail use hesiod for getting POP server host? */
|
|
999 #undef HESIOD
|
|
1000 /* Determine type of mail locking. */
|
438
|
1001 #undef MAIL_LOCK_LOCKF
|
|
1002 #undef MAIL_LOCK_FLOCK
|
|
1003 #undef MAIL_LOCK_DOT
|
|
1004 #undef MAIL_LOCK_LOCKING
|
|
1005 #undef MAIL_LOCK_MMDF
|
428
|
1006
|
567
|
1007 #undef HAVE_MKSTEMP
|
|
1008
|
428
|
1009 #undef PREFIX_USER_DEFINED
|
|
1010 #undef EXEC_PREFIX_USER_DEFINED
|
|
1011 #undef MODULEDIR_USER_DEFINED
|
|
1012 #undef SITEMODULEDIR_USER_DEFINED
|
|
1013 #undef DOCDIR_USER_DEFINED
|
|
1014 #undef LISPDIR_USER_DEFINED
|
|
1015 #undef PACKAGE_PATH_USER_DEFINED
|
|
1016 #undef SITELISPDIR_USER_DEFINED
|
|
1017 #undef ARCHLIBDIR_USER_DEFINED
|
|
1018 #undef ETCDIR_USER_DEFINED
|
|
1019 #undef INFODIR_USER_DEFINED
|
|
1020 #undef INFOPATH_USER_DEFINED
|
|
1021
|
|
1022 #undef PDUMP
|
|
1023
|
771
|
1024 #endif /* WIN32_NO_CONFIGURE */
|
|
1025
|
838
|
1026 /* For the moment, we go ahead and keep this, since it's used in mouse.el.
|
|
1027 #### font-lock does its own version using parse-partial-sexp. We should
|
|
1028 merge the two. */
|
|
1029 #define USE_C_FONT_LOCK
|
|
1030
|
800
|
1031 #ifdef ERROR_CHECK_ALL
|
|
1032 #define ERROR_CHECK_EXTENTS
|
|
1033 #define ERROR_CHECK_TYPES
|
|
1034 #define ERROR_CHECK_TEXT
|
|
1035 #define ERROR_CHECK_GC
|
|
1036 #define ERROR_CHECK_MALLOC
|
|
1037 #define ERROR_CHECK_BYTE_CODE
|
|
1038 #define ERROR_CHECK_GLYPHS
|
|
1039 #define ERROR_CHECK_DISPLAY
|
|
1040 #define ERROR_CHECK_STRUCTURES
|
|
1041 #endif /* ERROR_CHECK_ALL */
|
|
1042
|
428
|
1043 #endif /* _SRC_CONFIG_H_ */
|