annotate nt/config.h @ 565:e9162e1ea200

[xemacs-hg @ 2001-05-24 09:53:05 by yoshiki] Fix build on Linux with MULE. * mule-ccl.c (Qccl_error): New error * mule-ccl.c (syms_of_mule_ccl): Initialize Qccl_error. * mule-charset.c (Fmake_charset): Call signal_error.
author yoshiki
date Thu, 24 May 2001 09:53:18 +0000
parents 0784d089fdc9
children b39c14581166
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
1 /* XEmacs configuration file for Win32 -*- C -*-
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
2 Copyright (C) 1986, 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
3
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
4 This file is part of XEmacs.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
5
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
6 XEmacs is free software; you can redistribute it and/or modify it
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
7 under the terms of the GNU General Public License as published by the
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
8 Free Software Foundation; either version 2, or (at your option) any
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
9 later version.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
10
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
11 XEmacs is distributed in the hope that it will be useful, but WITHOUT
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
12 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
13 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
14 for more details.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
15
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
16 You should have received a copy of the GNU General Public License
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
17 along with XEmacs; see the file COPYING. If not, write to
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
18 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
19 Boston, MA 02111-1307, USA. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
20
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
21 /* Synched up with: FSF 19.30 (more or less). */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
22
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
23 /* No code in XEmacs #includes config.h twice, but some of the code
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
24 intended to work with other packages as well (like gmalloc.c)
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
25 think they can include it as many times as they like. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
26 #ifndef _SRC_CONFIG_H_
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
27 #define _SRC_CONFIG_H_
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
28
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
29 #define NTHEAP_PROBE_BASE 1
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
30 #undef LOSING_BYTECODE
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
31
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
32 /* Use this to add code in a structured way to FSF-maintained source
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
33 files so as to make it obvious where XEmacs changes are. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
34 #define XEMACS 1
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
35
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
36 /* Allow s&m files to differentiate OS versions without having
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
37 multiple files to maintain. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
38 #undef OS_RELEASE
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
39
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
40 /* The configuration name. This is used as the install directory name
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
41 for the lib-src programs. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
42 /* #undef EMACS_CONFIGURATION -- defined in xemacs.mak */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
43
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
44 /* The configuration options. This is exported to Lisp. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
45 #undef EMACS_CONFIG_OPTIONS
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
46
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
47 /* The version info from xemacs.mak via version.sh. Used in #pragma ident
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
48 in emacs.c */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
49 #if 0
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
50 #undef EMACS_MAJOR_VERSION
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
51 #undef EMACS_MINOR_VERSION
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
52 #undef EMACS_BETA_VERSION
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
53 #undef EMACS_VERSION
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
54 #undef XEMACS_CODENAME
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
55 #endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
56
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
57 /* Make all functions available on AIX. See AC_AIX. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
58 #undef _ALL_SOURCE
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
59
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
60 /* Used to identify the XEmacs version in stack traces. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
61 #undef STACK_TRACE_EYE_CATCHER
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
62
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
63 /* Allow the configurer to specify (additional) package directories. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
64 /* #undef PACKAGE_PATH */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
65
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
66 /* Define LISP_FLOAT_TYPE if you want XEmacs to support floating-point
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
67 numbers. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
68 #undef LISP_FLOAT_TYPE
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
69
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
70 /* Define HAVE_TTY if you want TTY support compiled in. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
71 #undef HAVE_TTY
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
72
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
73 /* Compile in support for the X window system? */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
74 /* #undef HAVE_X_WINDOWS -- defined in xemacs.mak */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
75
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
76 /* Defines for building X applications */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
77 #ifdef HAVE_X_WINDOWS
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
78 /* The following will be defined if xmkmf thinks they are necessary */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
79 #undef SVR4
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
80 #undef SYSV
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
81 #undef AIXV3
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
82 #undef _POSIX_SOURCE
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
83 #undef _BSD_SOURCE
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
84 #undef _GNU_SOURCE
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
85 #undef X_LOCALE
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
86 #undef NARROWPROTO
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
87 /* The following should always be defined, no matter what xmkmf thinks. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
88 #ifndef NeedFunctionPrototypes
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
89 #define NeedFunctionPrototypes 1
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
90 #endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
91 #ifndef FUNCPROTO
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
92 #define FUNCPROTO 15
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
93 #endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
94
444
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
95 #define HAVE_XREGISTERIMINSTANTIATECALLBACK
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
96 #undef XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
97
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
98 #undef THIS_IS_X11R4
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
99 #undef THIS_IS_X11R5
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
100 #define THIS_IS_X11R6
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
101
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
102 /* Define HAVE_XPM if you have the `xpm' library and want XEmacs to use it. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
103 #undef HAVE_XPM
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
104
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
105 /* Define HAVE_XFACE if you have the `compface' library and want to use it.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
106 This will permit X-face pixmaps in mail and news messages to display
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
107 quickly. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
108 #undef HAVE_XFACE
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
109
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
110 /* #define HAVE_IMAGEMAGICK */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
111
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
112 /* Define HAVE_XMU if you have the Xmu library. This should always be
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
113 the case except on losing HPUX systems. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
114 #define HAVE_XMU
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
115
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
116 /* Define HAVE_XAUTH if the Xauth library is present. This will add
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
117 some extra functionality to gnuserv. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
118 #undef HAVE_XAUTH
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
119
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
120 /* Define HAVE_XLOCALE_H if X11/Xlocale.h is present. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
121 #define HAVE_XLOCALE_H
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
122 #define HAVE_UNIXOID_EVENT_LOOP
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
123
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
124 #endif /* HAVE_X_WINDOWS */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
125
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
126 /* Define HAVE_WINDOW_SYSTEM if any windowing system is available. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
127 #if defined (HAVE_X_WINDOWS) || defined (HAVE_NEXTSTEP) || defined (HAVE_MS_WINDOWS)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
128 #define HAVE_WINDOW_SYSTEM
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
129 #endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
130
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
131
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
132
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
133 /* Define USER_FULL_NAME to return a string
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
134 that is the user's full name.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
135 It can assume that the variable `pw'
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
136 points to the password file entry for this user.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
137
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
138 At some sites, the pw_gecos field contains
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
139 the user's full name. If neither this nor any other
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
140 field contains the right thing, use pw_name,
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
141 giving the user's login name, since that is better than nothing. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
142 #define USER_FULL_NAME pw->pw_gecos
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
143
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
144 /* Define AMPERSAND_FULL_NAME if you use the convention
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
145 that & in the full name stands for the login id. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
146 #undef AMPERSAND_FULL_NAME
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
147
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
148 /* Some things figured out by the configure script, grouped as they are in
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
149 configure.in. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
150 #undef HAVE_MACH_MACH_H
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
151 #undef HAVE_SYS_TIMEB_H
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
152 #undef HAVE_UNISTD_H
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
153 #undef HAVE_SYS_WAIT_H
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
154 #undef HAVE_LIBGEN_H
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
155 #undef WORDS_BIGENDIAN
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
156 #undef TIME_WITH_SYS_TIME
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
157
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
158 #undef HAVE_SYS_TIME_H
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
159 #define HAVE_LOCALE_H
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
160 #ifdef HAVE_X_WINDOWS
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
161 #define HAVE_X11_LOCALE_H
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
162 #endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
163 #define STDC_HEADERS
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
164 #define HAVE_LIMITS_H
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
165 #define HAVE_GETCWD
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
166
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
167 #define HAVE_LONG_FILE_NAMES
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
168
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
169 #undef HAVE_LIBKSTAT
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
170 #undef HAVE_LIBINTL
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
171 #undef HAVE_LIBDNET
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
172 #undef HAVE_LIBRESOLV
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
173
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
174 /* Define if `sys_siglist' is declared by <signal.h>. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
175 #undef SYS_SIGLIST_DECLARED
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
176
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
177 /* Define if `struct timeval' is declared by <sys/time.h>. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
178 #define HAVE_TIMEVAL
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
179
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
180 #undef TM_IN_SYS_TIME
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
181 #undef HAVE_TM_ZONE
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
182 #undef HAVE_TZNAME
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
183
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
184 /* Define if netdb.h declares h_errno. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
185 #undef HAVE_H_ERRNO
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
186
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
187 /* Define if localtime caches TZ */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
188 #undef LOCALTIME_CACHE
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
189
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
190 /* Define if gettimeofday can't accept two arguments */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
191 #ifdef HAVE_X_WINDOWS
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
192 #define GETTIMEOFDAY_ONE_ARGUMENT
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
193 #else
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
194 #undef GETTIMEOFDAY_ONE_ARGUMENT
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
195 #endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
196
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
197 /* Is the timezone variable already declared in system headers? */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
198 #undef HAVE_TIMEZONE_DECL
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
199
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
200 #undef HAVE_MMAP
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
201 #undef HAVE_STRCOLL
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
202 #undef HAVE_GETPGRP
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
203 #undef GETPGRP_VOID
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
204
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
205 #undef SIZEOF_SHORT
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
206 #undef SIZEOF_INT
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
207 #undef SIZEOF_LONG
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
208 #undef SIZEOF_LONG_LONG
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
209 #undef SIZEOF_VOID_P
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
210
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
211 #undef HAVE_ACOSH
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
212 #undef HAVE_ASINH
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
213 #undef HAVE_ATANH
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
214
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
215 #if defined (HAVE_ACOSH) && defined (HAVE_ASINH) && defined (HAVE_ATANH)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
216 #define HAVE_INVERSE_HYPERBOLIC
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
217 #endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
218
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
219 #undef HAVE_CBRT
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
220 #define HAVE_CLOSEDIR
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
221 #undef HAVE_DUP2
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
222 #undef HAVE_EACCESS
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
223 #undef HAVE_FMOD
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
224 #undef HAVE_FPATHCONF
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
225 #undef HAVE_FREXP
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
226 #undef HAVE_FTIME
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
227 #undef HAVE_GETHOSTNAME
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
228
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
229 #define HAVE_GETPAGESIZE
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
230 #define getpagesize() 4096
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
231
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
232 #define HAVE_GETTIMEOFDAY
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
233 #define HAVE_GETWD
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
234 #undef HAVE_LOGB
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
235 #undef HAVE_LRAND48
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
236 #undef HAVE_MATHERR
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
237 #undef HAVE_MKDIR
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
238 #undef HAVE_MKTIME
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
239 #undef HAVE_PERROR
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
240 #undef HAVE_POLL
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
241 #undef HAVE_RANDOM
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
242 #undef HAVE_REALPATH
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
243 #undef HAVE_RENAME
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
244 #undef HAVE_RES_INIT
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
245 #undef HAVE_RINT
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
246 #undef HAVE_RMDIR
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
247 #define HAVE_SELECT
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
248 #undef HAVE_SETITIMER
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
249 #undef HAVE_SETPGID
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
250 #undef HAVE_SETSID
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
251 #undef HAVE_SIGBLOCK
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
252 #undef HAVE_SIGHOLD
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
253 #undef HAVE_SIGPROCMASK
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
254 #undef HAVE_SIGSETJMP
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
255 #define HAVE_STRERROR
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
256 #undef HAVE_TZSET
460
223736d75acb Import from CVS: tag r21-2-45
cvs
parents: 444
diff changeset
257 #undef HAVE_UTIME
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
258 #undef HAVE_UTIMES
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
259 #undef HAVE_WAITPID
444
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
260 #undef HAVE_VSNPRINTF
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
261
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
262 /* PTY support functions */
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
263 #undef HAVE_GETPT /* glibc's easy pty allocation function */
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
264 #undef HAVE__GETPTY /* SGI's easy pty allocation function */
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
265 #undef HAVE_OPENPTY /* BSD's easy pty allocation function */
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
266 #undef HAVE_GRANTPT /* Unix98 */
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
267 #undef HAVE_UNLOCKPT /* Unix98 */
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
268 #undef HAVE_PTSNAME /* Unix98 */
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
269 #undef HAVE_KILLPG /* BSD */
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
270 #undef HAVE_TCGETPGRP /* Posix 1 */
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
271 #undef HAVE_ISASTREAM /* SysV streams */
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
272 #undef HAVE_PTY_H /* Linux, Tru64 openpty */
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
273 #undef HAVE_LIBUTIL_H /* BSD openpty */
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
274 #undef HAVE_STROPTS_H /* SysV streams */
576fb035e263 Import from CVS: tag r21-2-37
cvs
parents: 442
diff changeset
275 #undef HAVE_STRTIO_H /* SysV streams TIOCSIGNAL */
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
276
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
277 #define HAVE_SOCKETS
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
278 #undef HAVE_SOCKADDR_SUN_LEN
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
279 #undef HAVE_SYSVIPC
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
280
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
281 #undef SYSV_SYSTEM_DIR
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
282 #undef NONSYSTEM_DIR_LIBRARY
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
283
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
284 #undef HAVE_TERMIOS
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
285 #undef HAVE_TERMIO
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
286
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
287 #undef NLIST_STRUCT
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
288
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
289 /* Define HAVE_SOCKS if you have the `socks' library and want XEmacs to
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
290 use it. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
291 #undef HAVE_SOCKS
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
292
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
293 /* Define HAVE_TERM if you run the `term' program (e.g. under Linux) and
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
294 want XEmacs to use it. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
295 #undef HAVE_TERM
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
296
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
297 /* Define HAVE_DBM if you want to use the DBM libraries */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
298 #undef HAVE_DBM
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
299
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
300 /* Define HAVE_BERKELEY_DB if you want to use the BerkDB libraries */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
301 #undef HAVE_BERKELEY_DB
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
302 /* Full #include file path for Berkeley DB's db.h */
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
303 #undef DB_H_FILE
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
304
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
305 #if defined (HAVE_DBM) || defined (HAVE_BERKELEY_DB)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
306 # define HAVE_DATABASE
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
307 #endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
308
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
309 /* Define HAVE_NCURSES if -lncurses is present. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
310 #undef HAVE_NCURSES
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
311 /* Full #include file paths for ncurses' curses.h and term.h. */
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
312 #undef CURSES_H_FILE
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
313 #undef TERM_H_FILE
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
314
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
315 #define LOWTAGS
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
316
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
317 #ifdef DEBUG_XEMACS
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
318
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
319 /* Define USE_ASSERTIONS if you want the abort() to be changed to assert()
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
320 If the assertion fails, assert_failed() will be called. This is
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
321 recommended for general use because it gives more info about the crash
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
322 than just the abort() message. Too many people "Can't find the corefile"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
323 or have limited core dumps out of existence. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
324 #define USE_ASSERTIONS
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
325
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
326 /* Check the entire extent structure of a buffer each time an extent
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
327 change is done, and do other extent-related checks. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
328 #define ERROR_CHECK_EXTENTS
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
329
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
330 /* Make sure that all X... macros are dereferencing the correct type,
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
331 and that all XSET... macros (as much as possible) are setting the
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
332 correct type of structure. Highly recommended for all
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
333 development work. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
334 #define ERROR_CHECK_TYPECHECK
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
335 /* Make sure valid buffer positions are passed to BUF_* macros. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
336 #define ERROR_CHECK_BUFPOS
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
337 /* Attempt to catch bugs related to garbage collection (e.g.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
338 insufficient GCPRO'ing). */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
339 #define ERROR_CHECK_GC
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
340 /* Attempt to catch freeing of a non-malloc()ed block, heap corruption,
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
341 etc. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
342 #define ERROR_CHECK_MALLOC
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
343
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
344 #endif /* DEBUG_XEMACS */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
345
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
346 /* Define convenient conditionally defined assertion macros. */
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
347 #ifdef ERROR_CHECK_TYPECHECK
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
348 #define type_checking_assert(assertion) assert (assertion)
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
349 #else
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
350 #define type_checking_assert(assertion)
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
351 #endif
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
352
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
353 #ifdef ERROR_CHECK_BUFPOS
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
354 #define bufpos_checking_assert(assertion) assert (assertion)
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
355 #else
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
356 #define bufpos_checking_assert(assertion)
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
357 #endif
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
358
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
359 #ifdef ERROR_CHECK_GC
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
360 #define gc_checking_assert(assertion) assert (assertion)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
361 #else
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
362 #define gc_checking_assert(assertion)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
363 #endif
440
8de8e3f6228a Import from CVS: tag r21-2-28
cvs
parents: 438
diff changeset
364
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
365 /* Define MEMORY_USAGE_STATS if you want extra code compiled in to
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
366 determine where XEmacs's memory is going. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
367 #undef MEMORY_USAGE_STATS
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
368
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
369 /* Define QUANTIFY if using Quantify from Pure Software. This adds
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
370 some additional calls to control data collection. This is only
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
371 intended for use by the developers. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
372 #undef QUANTIFY
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
373
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
374 /* Define EXTERNAL_WIDGET to compile support for using the editor as a
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
375 widget in another program. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
376 #undef EXTERNAL_WIDGET
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
377
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
378 /* There are some special-case defines for gcc and lcc. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
379 #undef USE_GCC
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
380 #undef USE_LCC
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
381
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
382 /* Allow the user to override the default value of PURESIZE at configure
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
383 time. This must come before we include the sys files in order for
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
384 it to be able to override any changes in them. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
385 #undef RAW_PURESIZE
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
386
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
387 /* Define this if you want level 2 internationalization compliance
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
388 (localized collation and formatting). Generally this should be
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
389 defined, unless your system doesn't have the strcoll() and
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
390 setlocale() library routines. This really should be (NOT! -mrb)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
391 defined in the appropriate s/ or m/ file. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
392 #undef I18N2
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
393
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
394 /* Define this if you want level 3 internationalization compliance
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
395 (localized messaging). This will cause a small runtime performance
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
396 penalty, as the strings are read from the message catalog(s).
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
397 For this you need the gettext() and dgetext() library routines.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
398 WARNING, this code is under construction. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
399 #undef I18N3
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
400
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
401 /* Compile in support for CDE (Common Desktop Environment) drag and drop?
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
402 Requires libDtSvc, which typically must be present at runtime. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
403 #undef HAVE_CDE
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
404
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
405 /* Compile in support for OffiX Drag and Drop? */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
406 #undef HAVE_OFFIX_DND
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
407
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
408 /* Compile in generic Drag'n'Drop API */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
409 #define HAVE_DRAGNDROP
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
410
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
411 /* Compile in support for proper session-management. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
412 #undef HAVE_SESSION
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
413
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
414 /* Define this if you want Mule support (multi-byte character support).
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
415 There may be some performance penalty, although it should be small
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
416 if you're working with ASCII files. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
417 /* #undef MULE */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
418
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
419 #ifdef MULE
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
420 /* Do we want to use X window input methods for use with Mule? (requires X11R5)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
421 If so, use raw Xlib or higher level Motif interface? */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
422 #undef HAVE_XIM
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
423 #undef XIM_XLIB
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
424 #undef XIM_MOTIF
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
425
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
426 /* Non-XIM input methods for use with Mule. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
427 #undef HAVE_CANNA
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
428 #undef HAVE_WNN
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
429 #undef WNN6
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
430
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
431 #endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
432
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
433 /* enable special GNU Make features in the Makefiles. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
434 #undef USE_GNU_MAKE
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
435
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
436 /* Undocumented debugging option: Don't automatically rebuild the DOC
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
437 file. This saves a lot of time when you're repeatedly
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
438 compiling-running-crashing. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
439 #undef NO_DOC_FILE
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
440
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
441 /* If not defined, use unions instead of ints. A few systems (DEC Alpha)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
442 seem to require this, probably because something with the int
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
443 definitions isn't right with 64-bit systems.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
444
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
445 (It's NO_UNION_TYPE instead of USE_UNION_TYPE for historical reasons.)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
446 */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
447 #undef NO_UNION_TYPE
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
448
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
449 /* The configuration script defines opsysfile to be the name of the
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
450 s/...h file that describes the system type you are using. The file
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
451 is chosen based on the configuration name you give.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
452
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
453 See the file ../etc/MACHINES for a list of systems and the
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
454 configuration names to use for them.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
455
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
456 See s/template.h for documentation on writing s/...h files. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
457 #include "s/windowsnt.h"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
458
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
459 /* The configuration script defines machfile to be the name of the
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
460 m/...h file that describes the machine you are using. The file is
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
461 chosen based on the configuration name you give.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
462
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
463 See the file ../etc/MACHINES for a list of machines and the
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
464 configuration names to use for them.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
465
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
466 See m/template.h for documentation on writing m/...h files. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
467 #include "m/windowsnt.h"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
468
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
469 #if defined (USE_SYSTEM_MALLOC) && !defined (SYSTEM_MALLOC)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
470 #define SYSTEM_MALLOC
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
471 #endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
472
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
473 /* Define REL_ALLOC if you want to use the relocating allocator for
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
474 buffer space. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
475 #undef REL_ALLOC
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
476
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
477 /* Define the return type of signal handlers if the s-xxx file
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
478 did not already do so. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
479 #define RETSIGTYPE void
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
480
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
481 /* SIGTYPE is the macro we actually use. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
482 #ifndef SIGTYPE
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
483 #define SIGTYPE RETSIGTYPE
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
484 #define SIGRETURN return
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
485 #endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
486
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
487 /* Allow the source to use standard types */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
488 #undef size_t
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
489 #undef pid_t
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
490 #undef mode_t
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
491 #undef off_t
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
492 #undef uid_t
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
493 #undef gid_t
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
494
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
495 /* Define DYNODUMP if it is necessary to properly dump on this system.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
496 Currently this is only Solaris. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
497 #undef DYNODUMP
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
498
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
499 /* Define SUNPRO to compiled in support for Sun Sparcworks. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
500 #undef SUNPRO
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
501
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
502 /* Sun SparcStations, SGI machines, and HP9000s700s have support for playing
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
503 different sound files as beeps. If you are on a SparcStation but do not
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
504 have the sound option installed for some reason, then undefine
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
505 HAVE_NATIVE_SOUND. (It's usually found in /usr/demo/SOUND/ on SunOS 4
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
506 and Solaris systems; on Solaris, you may need to install the "SUNWaudmo"
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
507 package.)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
508 */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
509 /* #undef HAVE_NATIVE_SOUND */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
510
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
511 /* If you wish to compile with support for the Network Audio System
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
512 system define HAVE_NAS_SOUND.
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
513 NAS_NO_ERROR_JUMP means that the NAS libraries don't include some
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
514 error handling changes.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
515 */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
516 #undef HAVE_NAS_SOUND
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
517 #undef NAS_NO_ERROR_JUMP
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
518
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
519 /* Compile in support for SunPro usage-tracking code. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
520 #undef USAGE_TRACKING
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
521
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
522 /* Define TOOLTALK if your site supports the ToolTalk library. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
523 #undef TOOLTALK
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
524
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
525 #ifdef HAVE_X_WINDOWS
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
526
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
527 #undef LWLIB_USES_MOTIF
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
528 #define LWLIB_MENUBARS_LUCID
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
529 #undef LWLIB_MENUBARS_MOTIF
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
530 #define LWLIB_SCROLLBARS_LUCID
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
531 #undef LWLIB_SCROLLBARS_MOTIF
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
532 #undef LWLIB_SCROLLBARS_ATHENA
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
533 #undef LWLIB_DIALOGS_MOTIF
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
534 #define LWLIB_DIALOGS_ATHENA
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
535
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
536 /* Other things that can be disabled by configure. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
537 #define HAVE_MENUBARS
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
538 #define HAVE_SCROLLBARS
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
539 #define HAVE_DIALOGS
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
540 #undef HAVE_TOOLBARS
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
541
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
542 #endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
543
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
544 #if defined (HAVE_MENUBARS) || defined (HAVE_DIALOGS)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
545 #define HAVE_POPUPS
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
546 #endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
547
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
548 /* If you are using SunOS 4.1.1 and X11r5, then you need this patch.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
549 There is a stupid bug in the SunOS libc.a: two functions which X11r5
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
550 uses, mbstowcs() and wcstombs(), are unusable when programs are
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
551 statically linked (as XEmacs must be) because the static version of
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
552 libc.a contains the *dynamic* versions of these functions. These
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
553 functions don't seem to be called when XEmacs is running, so it's
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
554 enough to define stubs for them.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
555
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
556 This appears to be fixed in SunOS 4.1.2.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
557
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
558 Also, SunOS 4.1.1 contains buggy versions of strcmp and strcpy that
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
559 sometimes reference memory past the end of the string, which can segv.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
560 I don't know whether this is has been fixed as of 4.1.2 or 4.1.3.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
561 */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
562 #if defined (sparc) && !defined (USG)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
563 #define OBJECTS_SYSTEM sunOS-fix.o strcmp.o strcpy.o
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
564 #endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
565
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
566 /* If you turn this flag on, it forces encapsulation in all
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
567 circumstances; this can be used to make sure things compile OK
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
568 on various systems. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
569 #undef DEBUG_ENCAPSULATION
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
570
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
571 /* System calls that are encapsulated */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
572 #define ENCAPSULATE_RENAME
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
573 #define ENCAPSULATE_OPEN
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
574 #define ENCAPSULATE_FOPEN
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
575 #define ENCAPSULATE_MKDIR
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
576 #define ENCAPSULATE_STAT
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
577 #define ENCAPSULATE_FSTAT
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
578
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
579 #if defined (HAVE_SOCKS) && !defined (DO_NOT_SOCKSIFY)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
580 #define accept Raccept
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
581 #define bind Rbind
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
582 #define connect Rconnect
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
583 #define getsockname Rgetsockname
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
584 #define listen Rlisten
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
585 #endif /* HAVE_SOCKS && !DO_NOT_SOCKSIFY */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
586
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
587 #ifndef BITS_PER_CHAR
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
588 #define BITS_PER_CHAR 8
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
589 #endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
590 #define SHORTBITS (SIZEOF_SHORT * BITS_PER_CHAR)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
591 #define INTBITS (SIZEOF_INT * BITS_PER_CHAR)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
592 #define LONGBITS (SIZEOF_LONG * BITS_PER_CHAR)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
593 #define LONG_LONG_BITS (SIZEOF_LONG_LONG * BITS_PER_CHAR)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
594 #define VOID_P_BITS (SIZEOF_VOID_P * BITS_PER_CHAR)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
595
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
596 /* MSVC version >= 2.x without /Za supports __inline */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
597 #if (_MSC_VER < 900) || defined(__STDC__)
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
598 # define inline
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
599 #else
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
600 # define inline __inline
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
601 #endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
602
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
603 #define INLINE_HEADER inline static
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
604
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
605 /* MSVC warnings no-no crap. When adding one to this section,
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
606 1. Think twice
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
607 2. Insert textual description of the warning.
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
608 3. Think twice. Undo still works */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
609 #if (_MSC_VER >= 800)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
610
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
611 /* 'expression' : signed/unsigned mismatch */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
612 #pragma warning ( disable : 4018 )
462
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
613 /* unnamed type definition in parentheses
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
614 (Martin added a pedantically correct definition of ALIGNOF, which
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
615 generates temporary anonymous structures, and MSVC complains) */
0784d089fdc9 Import from CVS: tag r21-2-46
cvs
parents: 460
diff changeset
616 #pragma warning ( disable : 4116 )
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
617
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
618 #endif /* compiler understands #pragma warning*/
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
619
442
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
620 #ifndef NOT_C_CODE /* Actually means C or C++ */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
621 # if defined (__cplusplus)
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
622 /* Avoid C++ keywords used as ordinary C identifiers */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
623 # define class c_class
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
624 # define new c_new
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
625 # define this c_this
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
626 # define catch c_catch
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
627 # define not c_not
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
628
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
629 # define EXTERN_C extern "C"
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
630 # else /* C code */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
631 # define EXTERN_C extern
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
632 # endif
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
633 #endif /* C or C++ */
abe6d1db359e Import from CVS: tag r21-2-36
cvs
parents: 440
diff changeset
634
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
635 #define enum_field(enumeration_type) unsigned int
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
636
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
637 /* We want to avoid saving the signal mask if possible, because
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
638 that necessitates a system call. */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
639 #ifdef HAVE_SIGSETJMP
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
640 # define SETJMP(x) sigsetjmp (x, 0)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
641 # define LONGJMP(x, y) siglongjmp (x, y)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
642 # define JMP_BUF sigjmp_buf
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
643 #else
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
644 # define SETJMP(x) setjmp (x)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
645 # define LONGJMP(x, y) longjmp (x, y)
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
646 # define JMP_BUF jmp_buf
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
647 #endif
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
648
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
649 /* movemail options */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
650 /* Should movemail use POP3 for mail access? */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
651 /* #undef MAIL_USE_POP */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
652 /* Should movemail use kerberos for POP authentication? */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
653 #undef KERBEROS
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
654 /* Should movemail use hesiod for getting POP server host? */
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
655 #undef HESIOD
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
656 /* Determine type of mail locking. */
438
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 428
diff changeset
657 #undef MAIL_LOCK_LOCKF
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 428
diff changeset
658 #undef REAL_LOCK_FLOCK
84b14dcb0985 Import from CVS: tag r21-2-27
cvs
parents: 428
diff changeset
659 #undef MAIL_LOCK_DOT
428
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
660
3ecd8885ac67 Import from CVS: tag r21-2-22
cvs
parents:
diff changeset
661 #endif /* _SRC_CONFIG_H_ */