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