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