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