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