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