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