1 /* XEmacs configuration file for Win32 -*- C -*-
2 Copyright (C) 1986, 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
4 This file is part of XEmacs.
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
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
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. */
21 /* Synched up with: FSF 19.30 (more or less). */
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_
29 #define NTHEAP_PROBE_BASE 1
30 #undef LOSING_BYTECODE
32 /* Use this to add code in a structured way to FSF-maintained source
33 files so as to make it obvious where XEmacs changes are. */
36 /* Allow s&m files to differentiate OS versions without having
37 multiple files to maintain. */
40 /* The configuration name. This is used as the install directory name
41 for the lib-src programs. */
42 /* #undef EMACS_CONFIGURATION -- defined in xemacs.mak */
44 /* The configuration options. This is exported to Lisp. */
45 #undef EMACS_CONFIG_OPTIONS
47 /* The version info from xemacs.mak via version.sh. Used in #pragma ident
50 #undef EMACS_MAJOR_VERSION
51 #undef EMACS_MINOR_VERSION
52 #undef EMACS_BETA_VERSION
54 #undef XEMACS_CODENAME
57 /* Make all functions available on AIX. See AC_AIX. */
60 /* Used to identify the XEmacs version in stack traces. */
61 #undef STACK_TRACE_EYE_CATCHER
63 /* Allow the configurer to specify (additional) package directories. */
64 /* #undef PACKAGE_PATH */
66 /* Define LISP_FLOAT_TYPE if you want XEmacs to support floating-point
68 #undef LISP_FLOAT_TYPE
70 /* Define HAVE_TTY if you want TTY support compiled in. */
73 /* Compile in support for the X window system? */
74 /* #undef HAVE_X_WINDOWS -- defined in xemacs.mak */
76 /* Defines for building X applications */
78 /* The following will be defined if xmkmf thinks they are necessary */
87 /* The following should always be defined, no matter what xmkmf thinks. */
88 #ifndef NeedFunctionPrototypes
89 #define NeedFunctionPrototypes 1
95 #define HAVE_XREGISTERIMINSTANTIATECALLBACK
96 #undef XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE
100 #define THIS_IS_X11R6
102 /* Define HAVE_XPM if you have the `xpm' library and want XEmacs to use it. */
105 /* Define HAVE_XFACE if you have the `compface' library and want to use it.
106 This will permit X-face pixmaps in mail and news messages to display
110 /* #define HAVE_IMAGEMAGICK */
112 /* Define HAVE_XMU if you have the Xmu library. This should always be
113 the case except on losing HPUX systems. */
116 /* Define HAVE_XAUTH if the Xauth library is present. This will add
117 some extra functionality to gnuserv. */
120 /* Define HAVE_XLOCALE_H if X11/Xlocale.h is present. */
121 #define HAVE_XLOCALE_H
122 #define HAVE_UNIXOID_EVENT_LOOP
124 #endif /* HAVE_X_WINDOWS */
126 /* Define HAVE_WINDOW_SYSTEM if any windowing system is available. */
127 #if defined (HAVE_X_WINDOWS) || defined (HAVE_NEXTSTEP) || defined (HAVE_MS_WINDOWS)
128 #define HAVE_WINDOW_SYSTEM
133 /* Define USER_FULL_NAME to return a string
134 that is the user's full name.
135 It can assume that the variable `pw'
136 points to the password file entry for this user.
138 At some sites, the pw_gecos field contains
139 the user's full name. If neither this nor any other
140 field contains the right thing, use pw_name,
141 giving the user's login name, since that is better than nothing. */
142 #define USER_FULL_NAME pw->pw_gecos
144 /* Define AMPERSAND_FULL_NAME if you use the convention
145 that & in the full name stands for the login id. */
146 #undef AMPERSAND_FULL_NAME
148 /* Some things figured out by the configure script, grouped as they are in
150 #undef HAVE_MACH_MACH_H
151 #undef HAVE_SYS_TIMEB_H
153 #undef HAVE_SYS_WAIT_H
155 #undef WORDS_BIGENDIAN
156 #undef TIME_WITH_SYS_TIME
158 #undef HAVE_SYS_TIME_H
159 #define HAVE_LOCALE_H
160 #ifdef HAVE_X_WINDOWS
161 #define HAVE_X11_LOCALE_H
164 #define HAVE_LIMITS_H
167 #define HAVE_LONG_FILE_NAMES
172 #undef HAVE_LIBRESOLV
174 /* Define if `sys_siglist' is declared by <signal.h>. */
175 #undef SYS_SIGLIST_DECLARED
177 /* Define if `struct timeval' is declared by <sys/time.h>. */
180 #undef TM_IN_SYS_TIME
184 /* Define if netdb.h declares h_errno. */
187 /* Define if localtime caches TZ */
188 #undef LOCALTIME_CACHE
190 /* Define if gettimeofday can't accept two arguments */
191 #ifdef HAVE_X_WINDOWS
192 #define GETTIMEOFDAY_ONE_ARGUMENT
194 #undef GETTIMEOFDAY_ONE_ARGUMENT
197 /* Is the timezone variable already declared in system headers? */
198 #undef HAVE_TIMEZONE_DECL
208 #undef SIZEOF_LONG_LONG
215 #if defined (HAVE_ACOSH) && defined (HAVE_ASINH) && defined (HAVE_ATANH)
216 #define HAVE_INVERSE_HYPERBOLIC
220 #define HAVE_CLOSEDIR
224 #undef HAVE_FPATHCONF
227 #undef HAVE_GETHOSTNAME
229 #define HAVE_GETPAGESIZE
230 #define getpagesize() 4096
232 #define HAVE_GETTIMEOFDAY
248 #undef HAVE_SETITIMER
253 #undef HAVE_SIGPROCMASK
254 #undef HAVE_SIGSETJMP
255 #define HAVE_STRERROR
260 #undef HAVE_VSNPRINTF
262 /* PTY support functions */
263 #undef HAVE_GETPT /* glibc's easy pty allocation function */
264 #undef HAVE__GETPTY /* SGI's easy pty allocation function */
265 #undef HAVE_OPENPTY /* BSD's easy pty allocation function */
266 #undef HAVE_GRANTPT /* Unix98 */
267 #undef HAVE_UNLOCKPT /* Unix98 */
268 #undef HAVE_PTSNAME /* Unix98 */
269 #undef HAVE_KILLPG /* BSD */
270 #undef HAVE_TCGETPGRP /* Posix 1 */
271 #undef HAVE_ISASTREAM /* SysV streams */
272 #undef HAVE_PTY_H /* Linux, Tru64 openpty */
273 #undef HAVE_LIBUTIL_H /* BSD openpty */
274 #undef HAVE_STROPTS_H /* SysV streams */
275 #undef HAVE_STRTIO_H /* SysV streams TIOCSIGNAL */
278 #undef HAVE_SOCKADDR_SUN_LEN
281 #undef SYSV_SYSTEM_DIR
282 #undef NONSYSTEM_DIR_LIBRARY
289 /* Define HAVE_SOCKS if you have the `socks' library and want XEmacs to
293 /* Define HAVE_TERM if you run the `term' program (e.g. under Linux) and
294 want XEmacs to use it. */
297 /* Define HAVE_DBM if you want to use the DBM libraries */
300 /* Define HAVE_BERKELEY_DB if you want to use the BerkDB libraries */
301 #undef HAVE_BERKELEY_DB
302 /* Full #include file path for Berkeley DB's db.h */
305 #if defined (HAVE_DBM) || defined (HAVE_BERKELEY_DB)
306 # define HAVE_DATABASE
309 /* Define HAVE_NCURSES if -lncurses is present. */
311 /* Full #include file paths for ncurses' curses.h and term.h. */
319 /* Define USE_ASSERTIONS if you want the abort() to be changed to assert()
320 If the assertion fails, assert_failed() will be called. This is
321 recommended for general use because it gives more info about the crash
322 than just the abort() message. Too many people "Can't find the corefile"
323 or have limited core dumps out of existence. */
324 #define USE_ASSERTIONS
326 /* Check the entire extent structure of a buffer each time an extent
327 change is done, and do other extent-related checks. */
328 #define ERROR_CHECK_EXTENTS
330 /* Make sure that all X... macros are dereferencing the correct type,
331 and that all XSET... macros (as much as possible) are setting the
332 correct type of structure. Highly recommended for all
334 #define ERROR_CHECK_TYPECHECK
335 /* Make sure valid buffer positions are passed to BUF_* macros. */
336 #define ERROR_CHECK_BUFPOS
337 /* Attempt to catch bugs related to garbage collection (e.g.
338 insufficient GCPRO'ing). */
339 #define ERROR_CHECK_GC
340 /* Attempt to catch freeing of a non-malloc()ed block, heap corruption,
342 #define ERROR_CHECK_MALLOC
344 #endif /* DEBUG_XEMACS */
346 /* Define convenient conditionally defined assertion macros. */
347 #ifdef ERROR_CHECK_TYPECHECK
348 #define type_checking_assert(assertion) assert (assertion)
350 #define type_checking_assert(assertion)
353 #ifdef ERROR_CHECK_BUFPOS
354 #define bufpos_checking_assert(assertion) assert (assertion)
356 #define bufpos_checking_assert(assertion)
359 #ifdef ERROR_CHECK_GC
360 #define gc_checking_assert(assertion) assert (assertion)
362 #define gc_checking_assert(assertion)
365 /* Define MEMORY_USAGE_STATS if you want extra code compiled in to
366 determine where XEmacs's memory is going. */
367 #undef MEMORY_USAGE_STATS
369 /* Define QUANTIFY if using Quantify from Pure Software. This adds
370 some additional calls to control data collection. This is only
371 intended for use by the developers. */
374 /* Define EXTERNAL_WIDGET to compile support for using the editor as a
375 widget in another program. */
376 #undef EXTERNAL_WIDGET
378 /* There are some special-case defines for gcc and lcc. */
382 /* Allow the user to override the default value of PURESIZE at configure
383 time. This must come before we include the sys files in order for
384 it to be able to override any changes in them. */
387 /* Define this if you want level 2 internationalization compliance
388 (localized collation and formatting). Generally this should be
389 defined, unless your system doesn't have the strcoll() and
390 setlocale() library routines. This really should be (NOT! -mrb)
391 defined in the appropriate s/ or m/ file. */
394 /* Define this if you want level 3 internationalization compliance
395 (localized messaging). This will cause a small runtime performance
396 penalty, as the strings are read from the message catalog(s).
397 For this you need the gettext() and dgetext() library routines.
398 WARNING, this code is under construction. */
401 /* Compile in support for CDE (Common Desktop Environment) drag and drop?
402 Requires libDtSvc, which typically must be present at runtime. */
405 /* Compile in support for OffiX Drag and Drop? */
406 #undef HAVE_OFFIX_DND
408 /* Compile in generic Drag'n'Drop API */
409 #define HAVE_DRAGNDROP
411 /* Compile in support for proper session-management. */
414 /* Define this if you want Mule support (multi-byte character support).
415 There may be some performance penalty, although it should be small
416 if you're working with ASCII files. */
420 /* Do we want to use X window input methods for use with Mule? (requires X11R5)
421 If so, use raw Xlib or higher level Motif interface? */
426 /* Non-XIM input methods for use with Mule. */
433 /* enable special GNU Make features in the Makefiles. */
436 /* Undocumented debugging option: Don't automatically rebuild the DOC
437 file. This saves a lot of time when you're repeatedly
438 compiling-running-crashing. */
441 /* If not defined, use unions instead of ints. A few systems (DEC Alpha)
442 seem to require this, probably because something with the int
443 definitions isn't right with 64-bit systems.
445 (It's NO_UNION_TYPE instead of USE_UNION_TYPE for historical reasons.)
449 /* The configuration script defines opsysfile to be the name of the
450 s/...h file that describes the system type you are using. The file
451 is chosen based on the configuration name you give.
453 See the file ../etc/MACHINES for a list of systems and the
454 configuration names to use for them.
456 See s/template.h for documentation on writing s/...h files. */
457 #include "s/windowsnt.h"
459 /* The configuration script defines machfile to be the name of the
460 m/...h file that describes the machine you are using. The file is
461 chosen based on the configuration name you give.
463 See the file ../etc/MACHINES for a list of machines and the
464 configuration names to use for them.
466 See m/template.h for documentation on writing m/...h files. */
467 #include "m/windowsnt.h"
469 #if defined (USE_SYSTEM_MALLOC) && !defined (SYSTEM_MALLOC)
470 #define SYSTEM_MALLOC
473 /* Define REL_ALLOC if you want to use the relocating allocator for
477 /* Define the return type of signal handlers if the s-xxx file
478 did not already do so. */
479 #define RETSIGTYPE void
481 /* SIGTYPE is the macro we actually use. */
483 #define SIGTYPE RETSIGTYPE
484 #define SIGRETURN return
487 /* Allow the source to use standard types */
495 /* Define DYNODUMP if it is necessary to properly dump on this system.
496 Currently this is only Solaris. */
499 /* Define SUNPRO to compiled in support for Sun Sparcworks. */
502 /* Sun SparcStations, SGI machines, and HP9000s700s have support for playing
503 different sound files as beeps. If you are on a SparcStation but do not
504 have the sound option installed for some reason, then undefine
505 HAVE_NATIVE_SOUND. (It's usually found in /usr/demo/SOUND/ on SunOS 4
506 and Solaris systems; on Solaris, you may need to install the "SUNWaudmo"
509 /* #undef HAVE_NATIVE_SOUND */
511 /* If you wish to compile with support for the Network Audio System
512 system define HAVE_NAS_SOUND.
513 NAS_NO_ERROR_JUMP means that the NAS libraries don't include some
514 error handling changes.
516 #undef HAVE_NAS_SOUND
517 #undef NAS_NO_ERROR_JUMP
519 /* Compile in support for SunPro usage-tracking code. */
520 #undef USAGE_TRACKING
522 /* Define TOOLTALK if your site supports the ToolTalk library. */
525 #ifdef HAVE_X_WINDOWS
527 #undef LWLIB_USES_MOTIF
528 #define LWLIB_MENUBARS_LUCID
529 #undef LWLIB_MENUBARS_MOTIF
530 #define LWLIB_SCROLLBARS_LUCID
531 #undef LWLIB_SCROLLBARS_MOTIF
532 #undef LWLIB_SCROLLBARS_ATHENA
533 #undef LWLIB_DIALOGS_MOTIF
534 #define LWLIB_DIALOGS_ATHENA
536 /* Other things that can be disabled by configure. */
537 #define HAVE_MENUBARS
538 #define HAVE_SCROLLBARS
544 #if defined (HAVE_MENUBARS) || defined (HAVE_DIALOGS)
548 /* If you are using SunOS 4.1.1 and X11r5, then you need this patch.
549 There is a stupid bug in the SunOS libc.a: two functions which X11r5
550 uses, mbstowcs() and wcstombs(), are unusable when programs are
551 statically linked (as XEmacs must be) because the static version of
552 libc.a contains the *dynamic* versions of these functions. These
553 functions don't seem to be called when XEmacs is running, so it's
554 enough to define stubs for them.
556 This appears to be fixed in SunOS 4.1.2.
558 Also, SunOS 4.1.1 contains buggy versions of strcmp and strcpy that
559 sometimes reference memory past the end of the string, which can segv.
560 I don't know whether this is has been fixed as of 4.1.2 or 4.1.3.
562 #if defined (sparc) && !defined (USG)
563 #define OBJECTS_SYSTEM sunOS-fix.o strcmp.o strcpy.o
566 /* If you turn this flag on, it forces encapsulation in all
567 circumstances; this can be used to make sure things compile OK
568 on various systems. */
569 #undef DEBUG_ENCAPSULATION
571 /* System calls that are encapsulated */
572 #define ENCAPSULATE_RENAME
573 #define ENCAPSULATE_OPEN
574 #define ENCAPSULATE_FOPEN
575 #define ENCAPSULATE_MKDIR
576 #define ENCAPSULATE_STAT
577 #define ENCAPSULATE_FSTAT
579 #if defined (HAVE_SOCKS) && !defined (DO_NOT_SOCKSIFY)
580 #define accept Raccept
582 #define connect Rconnect
583 #define getsockname Rgetsockname
584 #define listen Rlisten
585 #endif /* HAVE_SOCKS && !DO_NOT_SOCKSIFY */
587 #ifndef BITS_PER_CHAR
588 #define BITS_PER_CHAR 8
590 #define SHORTBITS (SIZEOF_SHORT * BITS_PER_CHAR)
591 #define INTBITS (SIZEOF_INT * BITS_PER_CHAR)
592 #define LONGBITS (SIZEOF_LONG * BITS_PER_CHAR)
593 #define LONG_LONG_BITS (SIZEOF_LONG_LONG * BITS_PER_CHAR)
594 #define VOID_P_BITS (SIZEOF_VOID_P * BITS_PER_CHAR)
596 /* MSVC version >= 2.x without /Za supports __inline */
597 #if (_MSC_VER < 900) || defined(__STDC__)
600 # define inline __inline
603 #define INLINE_HEADER inline static
605 /* MSVC warnings no-no crap. When adding one to this section,
607 2. Insert textual description of the warning.
608 3. Think twice. Undo still works */
609 #if (_MSC_VER >= 800)
611 /* 'expression' : signed/unsigned mismatch */
612 #pragma warning ( disable : 4018 )
613 /* unnamed type definition in parentheses
614 (Martin added a pedantically correct definition of ALIGNOF, which
615 generates temporary anonymous structures, and MSVC complains) */
616 #pragma warning ( disable : 4116 )
618 #endif /* compiler understands #pragma warning*/
620 #ifndef NOT_C_CODE /* Actually means C or C++ */
621 # if defined (__cplusplus)
622 /* Avoid C++ keywords used as ordinary C identifiers */
623 # define class c_class
626 # define catch c_catch
629 # define EXTERN_C extern "C"
631 # define EXTERN_C extern
633 #endif /* C or C++ */
635 #define enum_field(enumeration_type) unsigned int
637 /* We want to avoid saving the signal mask if possible, because
638 that necessitates a system call. */
639 #ifdef HAVE_SIGSETJMP
640 # define SETJMP(x) sigsetjmp (x, 0)
641 # define LONGJMP(x, y) siglongjmp (x, y)
642 # define JMP_BUF sigjmp_buf
644 # define SETJMP(x) setjmp (x)
645 # define LONGJMP(x, y) longjmp (x, y)
646 # define JMP_BUF jmp_buf
649 /* movemail options */
650 /* Should movemail use POP3 for mail access? */
651 /* #undef MAIL_USE_POP */
652 /* Should movemail use kerberos for POP authentication? */
654 /* Should movemail use hesiod for getting POP server host? */
656 /* Determine type of mail locking. */
657 #undef MAIL_LOCK_LOCKF
658 #undef REAL_LOCK_FLOCK
661 #endif /* _SRC_CONFIG_H_ */