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