XEmacs 21.2.33 "Melpomene".
[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 #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 /* Define this if you want file coding support */
562 #undef FILE_CODING
563
564 /* Do we want to use X window input methods for use with Mule? (requires X11R5)
565    If so, use raw Xlib or higher level Motif interface? */
566 #undef HAVE_XIM
567 #undef XIM_XLIB
568 #undef XIM_MOTIF
569 #undef USE_XFONTSET
570
571 /* Non-XIM input methods for use with Mule. */
572 #undef HAVE_CANNA
573 #undef HAVE_WNN
574 #undef WNN6
575
576 /* Enable special GNU Make features in the Makefiles. */
577 #undef USE_GNU_MAKE
578
579 /* Debugging development option: Remove inessential but time consuming
580    actions from happening during build.  This saves a lot of time when
581    you're repeatedly compiling-running-crashing.  This (1) doesn't
582    garbage-collect after loading each file during dumping, and (2)
583    doesn't automatically rebuild the DOC file. (Remove it by hand to
584    get it rebuilt.)
585  */
586 #undef QUICK_BUILD
587
588 /* Defined by AC_C_CONST in configure.in */
589 #undef const
590
591 /* Allow the source to use standard types. Include these before the
592  s&m files so that they can use them. */
593 #undef ssize_t
594 #undef size_t
595 #undef pid_t
596 #undef mode_t
597 #undef off_t
598 #undef uid_t
599 #undef gid_t
600
601 /* If defined, use unions instead of ints.  A few systems (DEC Alpha)
602    seem to require this, probably because something with the int
603    definitions isn't right with 64-bit systems.  */
604 #undef USE_UNION_TYPE
605
606 /* The configuration script defines opsysfile to be the name of the
607    s/...h file that describes the system type you are using.
608    The file is chosen based on the configuration name you give.
609
610    See the file ../etc/MACHINES for a list of systems and the
611    configuration names to use for them.
612
613    See s/template.h for documentation on writing s/...h files. */
614
615 #if defined (__cplusplus) && !defined (NOT_C_CODE)
616 extern "C" {
617 #endif
618 #undef config_opsysfile
619 #include config_opsysfile
620
621 /* The configuration script defines machfile to be the name of the
622    m/...h file that describes the machine you are using.  The file is
623    chosen based on the configuration name you give.
624
625    See the file ../etc/MACHINES for a list of machines and the
626    configuration names to use for them.
627
628    See m/template.h for documentation on writing m/...h files. */
629 #undef config_machfile
630 #include config_machfile
631 #if defined (__cplusplus) && !defined (NOT_C_CODE)
632 }
633 #endif
634
635 #if defined (USE_SYSTEM_MALLOC) && !defined (SYSTEM_MALLOC)
636 #define SYSTEM_MALLOC
637 #endif
638
639 /* Use the relocating allocator for buffer space? */
640 #undef REL_ALLOC
641
642 /* Define the return type of signal handlers if the s/xxx.h file
643    did not already do so. */
644 #define RETSIGTYPE void
645
646 /* SIGTYPE is the macro we actually use. */
647 #ifndef SIGTYPE
648 #define SIGTYPE RETSIGTYPE
649 #define SIGRETURN return
650 #endif
651
652 /* Define DYNODUMP if it is necessary to properly dump on this system.
653    Currently this is only Solaris 2.x, for x < 6. */
654 #undef DYNODUMP
655
656 /* Compile in support for Sun Sparcworks/WorkShop? */
657 #undef SUNPRO
658
659 /* Sun SparcStations, SGI machines, and HP9000s700s have built-in
660    support for playing sound files. (On Suns, the sound support is
661    usually found in /usr/demo/SOUND - you may need to install the
662    "SUNWaudmo" package.) */
663 #undef HAVE_NATIVE_SOUND
664 /* Native sound may be provided via soundcard.h, in various directories */
665 #undef SOUNDCARD_H_FILE
666
667 /* Compile in support for NAS (Network Audio System)?
668    NAS_NO_ERROR_JUMP means that the NAS libraries don't include some
669    error handling changes. */
670 #undef HAVE_NAS_SOUND
671 #undef NAS_NO_ERROR_JUMP
672
673 /* Compile in support for ESD (Enlightened Sound Daemon)? */
674 #undef HAVE_ESD_SOUND
675
676 /* Compile in support for SunPro usage-tracking code? */
677 #undef USAGE_TRACKING
678
679 /* Compile in support for Tooltalk? */
680 #undef TOOLTALK
681 /* tt_c.h might be in "Tt" or "desktop" subdirectories */
682 #undef TT_C_H_FILE
683
684 /* Toolkits used by lwlib for various widgets... */
685 #undef LWLIB_USES_MOTIF
686 #undef LWLIB_USES_ATHENA
687 #undef LWLIB_MENUBARS_LUCID
688 #undef LWLIB_MENUBARS_MOTIF
689 #undef LWLIB_SCROLLBARS_LUCID
690 #undef LWLIB_SCROLLBARS_MOTIF
691 #undef LWLIB_SCROLLBARS_ATHENA
692 #undef LWLIB_SCROLLBARS_ATHENA3D
693 #undef LWLIB_DIALOGS_MOTIF
694 #undef LWLIB_DIALOGS_ATHENA
695 #undef LWLIB_DIALOGS_ATHENA3D
696 #undef LWLIB_TABS_LUCID
697 #undef LWLIB_WIDGETS_MOTIF
698 #undef LWLIB_WIDGETS_ATHENA
699 #undef HAVE_ATHENA_3D
700
701 /* Other things that can be disabled by configure. */
702 #undef HAVE_MENUBARS
703 #undef HAVE_SCROLLBARS
704 #undef HAVE_DIALOGS
705 #undef HAVE_TOOLBARS
706 #undef HAVE_WIDGETS
707
708
709 #if defined (HAVE_MENUBARS) || defined (HAVE_DIALOGS)
710 #define HAVE_POPUPS
711 #endif
712
713 /* If you are using SunOS 4.1.1 and X11r5, then you need this patch.
714    There is a stupid bug in the SunOS libc.a: two functions which X11r5
715    uses, mbstowcs() and wcstombs(), are unusable when programs are
716    statically linked (as XEmacs must be) because the static version of
717    libc.a contains the *dynamic* versions of these functions.  These
718    functions don't seem to be called when XEmacs is running, so it's
719    enough to define stubs for them.
720
721    This appears to be fixed in SunOS 4.1.2.
722
723    Also, SunOS 4.1.1 contains buggy versions of strcmp and strcpy that
724    sometimes reference memory past the end of the string, which can segv.
725    I don't know whether this is has been fixed as of 4.1.2 or 4.1.3. */
726 #if defined (sparc) && !defined (USG)
727 #define OBJECTS_SYSTEM sunOS-fix.o strcmp.o strcpy.o
728 #endif
729
730 /* If you turn this flag on, it forces encapsulation in all
731 circumstances; this can be used to make sure things compile OK
732 on various systems. */
733 #undef DEBUG_ENCAPSULATION
734
735 /* basic system calls */
736
737 #if defined (INTERRUPTIBLE_IO) || defined (DEBUG_ENCAPSULATION)
738 # define ENCAPSULATE_READ
739 # define ENCAPSULATE_WRITE
740 #endif
741 #if defined (INTERRUPTIBLE_OPEN) || defined (MULE) || defined (DEBUG_ENCAPSULATION)
742 # define ENCAPSULATE_OPEN
743 #endif
744 #if defined (INTERRUPTIBLE_CLOSE) || defined (DEBUG_ENCAPSULATION)
745 # define ENCAPSULATE_CLOSE
746 #endif
747
748 /* stdio calls */
749
750 #if defined (INTERRUPTIBLE_IO) || defined (DEBUG_ENCAPSULATION)
751 # define ENCAPSULATE_FREAD
752 # define ENCAPSULATE_FWRITE
753 #endif
754 #if defined (INTERRUPTIBLE_OPEN) || defined (MULE) || defined (DEBUG_ENCAPSULATION)
755 # define ENCAPSULATE_FOPEN
756 #endif
757 #if defined (INTERRUPTIBLE_CLOSE) || defined (DEBUG_ENCAPSULATION)
758 # define ENCAPSULATE_FCLOSE
759 #endif
760
761 /* directory calls */
762
763 #if defined (MULE) || defined (DEBUG_ENCAPSULATION)
764 # define ENCAPSULATE_CHDIR
765 # define ENCAPSULATE_MKDIR
766 # define ENCAPSULATE_OPENDIR
767 # define ENCAPSULATE_CLOSEDIR
768 # define ENCAPSULATE_READDIR
769 # define ENCAPSULATE_RMDIR
770
771 /* file-information calls */
772
773 #ifdef HAVE_EACCESS
774 # define ENCAPSULATE_EACCESS
775 #endif
776 # define ENCAPSULATE_ACCESS
777 # define ENCAPSULATE_LSTAT
778 # define ENCAPSULATE_READLINK
779 # define ENCAPSULATE_STAT
780
781 /* file-manipulation calls */
782
783 # define ENCAPSULATE_CHMOD
784 # define ENCAPSULATE_CREAT
785 # define ENCAPSULATE_LINK
786 # define ENCAPSULATE_RENAME
787 # define ENCAPSULATE_SYMLINK
788 # define ENCAPSULATE_UNLINK
789 # define ENCAPSULATE_EXECVP
790 #endif /* defined (MULE) || defined (DEBUG_ENCAPSULATION) */
791
792 #ifdef HAVE_CANNA
793 #  define CANNA2
794 #  define CANNA_MULE
795 #  define CANNA_PURESIZE 0
796 #else  /* not CANNA */
797 #  define CANNA_PURESIZE 0
798 #endif /* not CANNA */
799
800 #if (defined (MSDOS) && defined (FEPCTRL)) || (defined (WIN32) && defined (USE_IME))
801 #define HAVE_FEP
802 #endif
803
804 #if defined (HAVE_SOCKS) && !defined (DO_NOT_SOCKSIFY)
805 #define accept Raccept
806 #define bind Rbind
807 #define connect Rconnect
808 #define getsockname Rgetsockname
809 #define listen Rlisten
810 #endif /* HAVE_SOCKS && !DO_NOT_SOCKSIFY */
811
812 #undef SIZEOF_SHORT
813 #undef SIZEOF_INT
814 #undef SIZEOF_LONG
815 #undef SIZEOF_LONG_LONG
816 #undef SIZEOF_VOID_P
817
818 #ifndef BITS_PER_CHAR
819 #define BITS_PER_CHAR 8
820 #endif
821 #define SHORTBITS (SIZEOF_SHORT * BITS_PER_CHAR)
822 #define INTBITS (SIZEOF_INT * BITS_PER_CHAR)
823 #define LONGBITS (SIZEOF_LONG * BITS_PER_CHAR)
824 #define LONG_LONG_BITS (SIZEOF_LONG_LONG * BITS_PER_CHAR)
825 #define VOID_P_BITS (SIZEOF_VOID_P * BITS_PER_CHAR)
826
827 /* Use `INLINE_HEADER' to define inline functions in .h files.
828    Use `inline static' to define inline functions in .c files.
829    See the Internals manual for examples and more information. */
830
831 /* Does the keyword `inline' exist?  */
832 #undef inline
833
834 #if defined (__cplusplus) || ! defined (__GNUC__)
835 # define INLINE_HEADER inline static
836 #elif defined (DONT_EXTERN_INLINE_HEADER_FUNCTIONS)
837 # define INLINE_HEADER inline
838 #else
839 # define INLINE_HEADER inline extern
840 #endif
841
842 #if defined (__cplusplus) && !defined (NOT_C_CODE)
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 #endif /* C++ */
849
850 /* Strictly speaking, only int or unsigned int are valid types in a
851    bitfield.  In practice, we would like to use enums as bitfields.
852    The following should just result in warning avoidance:
853    warning: nonportable bit-field type */
854 #ifdef __GNUC__
855 #define enum_field(enumeration_type) enum enumeration_type
856 #else
857 #define enum_field(enumeration_type) unsigned int
858 #endif
859
860 /* We want to avoid saving the signal mask if possible, because
861    that necessitates a system call. */
862 #ifdef HAVE_SIGSETJMP
863 # define SETJMP(x) sigsetjmp (x, 0)
864 # define LONGJMP(x, y) siglongjmp (x, y)
865 # define JMP_BUF sigjmp_buf
866 #else
867 # define SETJMP(x) setjmp (x)
868 # define LONGJMP(x, y) longjmp (x, y)
869 # define JMP_BUF jmp_buf
870 #endif
871
872 /* movemail options */
873 /* Should movemail use POP3 for mail access? */
874 #undef MAIL_USE_POP
875 /* Should movemail use kerberos for POP authentication? */
876 #undef KERBEROS
877 /* Should movemail use hesiod for getting POP server host? */
878 #undef HESIOD
879 /* Determine type of mail locking. */
880 #undef MAIL_LOCK_LOCKF
881 #undef MAIL_LOCK_FLOCK
882 #undef MAIL_LOCK_DOT
883 #undef MAIL_LOCK_LOCKING
884 #undef MAIL_LOCK_MMDF
885
886 #undef PREFIX_USER_DEFINED
887 #undef EXEC_PREFIX_USER_DEFINED
888 #undef MODULEDIR_USER_DEFINED
889 #undef SITEMODULEDIR_USER_DEFINED
890 #undef DOCDIR_USER_DEFINED
891 #undef LISPDIR_USER_DEFINED
892 #undef PACKAGE_PATH_USER_DEFINED
893 #undef SITELISPDIR_USER_DEFINED
894 #undef ARCHLIBDIR_USER_DEFINED
895 #undef ETCDIR_USER_DEFINED
896 #undef LOCKDIR_USER_DEFINED
897 #undef INFODIR_USER_DEFINED
898 #undef INFOPATH_USER_DEFINED
899
900 #undef PDUMP
901
902 #endif /* _SRC_CONFIG_H_ */