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