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