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