Mercurial > hg > xemacs-beta
annotate src/config.h.in @ 5228:5efbd1253905
Remove all support for InfoDock.
src/ChangeLog addition:
2010-06-02 Aidan Kehoe <kehoea@parhasard.net>
* lread.c (vars_of_lread):
* emacs.c:
(shut_down_emacs, vars_of_emacs, complex_vars_of_emacs):
* device-x.c (get_device_from_display)
(have_xemacs_resources_in_xrdb):
* device-gtk.c (Fgtk_init):
* config.h.in:
Remove all checks for InfoDock.
lisp/ChangeLog addition:
2010-06-02 Aidan Kehoe <kehoea@parhasard.net>
* version.el:
(emacs-version):
* startup.el (command-line):
* simple.el (display-warning, emacs-name):
* packages.el (packages-package-hierarchy-directory-names):
* loadup.el (Dumping):
* dumped-lisp.el (preloaded-file-list):
Remove all InfoDock-specific code.
author | Aidan Kehoe <kehoea@parhasard.net> |
---|---|
date | Mon, 07 Jun 2010 18:42:10 +0100 |
parents | 18c0b5909d16 |
children | d967d96ca043 308d34e9f07d |
rev | line source |
---|---|
428 | 1 /* XEmacs site configuration template file. -*- C -*- |
2 Copyright (C) 1986, 1991-1994, 1998, 1999 Free Software Foundation, Inc. | |
4991
97c45e3ad810
implement configure test for whether ndbm.h prototypes are broken
Ben Wing <ben@xemacs.org>
parents:
4969
diff
changeset
|
3 Copyright (C) 2000, 2001, 2002, 2004, 2005, 2010 Ben Wing. |
428 | 4 |
5 This file is part of XEmacs. | |
6 | |
7 XEmacs is free software; you can redistribute it and/or modify it | |
8 under the terms of the GNU General Public License as published by the | |
9 Free Software Foundation; either version 2, or (at your option) any | |
10 later version. | |
11 | |
12 XEmacs is distributed in the hope that it will be useful, but WITHOUT | |
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
15 for more details. | |
16 | |
17 You should have received a copy of the GNU General Public License | |
18 along with XEmacs; see the file COPYING. If not, write to | |
19 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | |
20 Boston, MA 02111-1307, USA. */ | |
21 | |
22 /* Significantly divergent from FSF. */ | |
23 | |
24 /* No code in XEmacs #includes config.h twice, but some of the code | |
25 intended to work with other packages as well (like gmalloc.c) | |
26 think they can include it as many times as they like. */ | |
27 #ifndef _SRC_CONFIG_H_ | |
28 #define _SRC_CONFIG_H_ | |
29 | |
2367 | 30 /* The proper format of this file: |
31 | |
32 1. All #undef statements that are changed by configure should go together, | |
33 BEFORE the inclusion of the s&m files, and need to be bracketed by | |
34 #ifndef WIN32_NO_CONFIGURE. There is currently only one exception to | |
35 this: SYSTEM_TYPE. | |
36 | |
37 2. All other code, except for the things that may be referenced in s&m | |
38 files (there is very very little of this) need to go AFTER the inclusion | |
39 of s&m files. | |
40 | |
41 Together, this ensures that the s&m files can override configure | |
42 determinations as necessary, and we will properly notice this. | |
43 */ | |
44 | |
771 | 45 /* |
46 This file now serves both as config.h.in and simply as config.h under | |
47 Windows NT. Under Windows NT, there is no configure script that | |
48 operates, so it is necessary for the relevant constants to be set | |
49 manually, either by the user (for user options) or in s/windowsnt.h. | |
50 | |
51 Formerly, under NT there were three different places where constants | |
52 were defined -- nt/config.h, nt/xemacs.mak and s/windowsnt.h; now only | |
53 the latter two are used. (This separate config.h was a hassle because | |
54 it required constant synchronization between it and src/config.h.in.) | |
55 Since the options that are substituted by configure are written in | |
56 config.h.in with #undef, it is easy to make this file serve as | |
57 config.h under Windows NT. Options that are set by the user are | |
58 specified in the file config.inc.samp, which is included by xemacs.mak | |
872 | 59 \(the makefile) and used to set command-line options to the |
771 | 60 compiler. The sorts of options that relate to the system and not to |
61 the user and which are normally auto-determined by configure are set | |
62 in windowsnt.h. | |
63 | |
64 What this means is that a little more care has to be taken in the way | |
65 things are arranged in config.h.in. In particular: | |
66 | |
67 -- Everything that is written with a #undef should be bracketed by | |
68 #ifdef WIN32_NO_CONFIGURE, and these #ifdefs should in general be | |
69 grouped together as much as possible. | |
70 | |
71 -- Things that are not #undefs should not go inside this bracketed | |
72 #ifdef, because these things typically set constants based on other | |
73 constants and those latter constants may be set elsewhere under | |
74 Windows NT. | |
75 | |
76 -- Any #ifdefs that depend on constants that may be set in windowsnt.h | |
77 need to be moved after the point at which this file is | |
78 included. This applies for example to the error checking macros. | |
79 */ | |
80 | |
81 #if defined (WIN32_NATIVE) && !defined (MINGW) | |
82 # define WIN32_NO_CONFIGURE | |
83 #endif | |
84 | |
428 | 85 /* Use this to add code in a structured way to FSF-maintained source |
86 files so as to make it obvious where XEmacs changes are. */ | |
87 #define XEMACS 1 | |
88 | |
771 | 89 #ifndef WIN32_NO_CONFIGURE /* Defined in xemacs.mak or s/windowsnt.h: */ |
90 | |
442 | 91 /* Program name */ |
92 #undef EMACS_PROGNAME | |
93 | |
4448
fd8a9a4d81d9
Support #!, to allow XEmacs to be called as a script interpreter.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4389
diff
changeset
|
94 /* Name of the link to the program to be used with #! scripts */ |
fd8a9a4d81d9
Support #!, to allow XEmacs to be called as a script interpreter.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4389
diff
changeset
|
95 #undef SHEBANG_PROGNAME |
fd8a9a4d81d9
Support #!, to allow XEmacs to be called as a script interpreter.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4389
diff
changeset
|
96 |
428 | 97 /* Allow s&m files to differentiate OS versions without having |
98 multiple files to maintain. */ | |
99 #undef OS_RELEASE | |
100 | |
101 /* The configuration name. This is used as the install directory name | |
102 for the lib-src programs. */ | |
103 #undef EMACS_CONFIGURATION | |
104 | |
105 /* The configuration options. This is exported to Lisp. */ | |
106 #undef EMACS_CONFIG_OPTIONS | |
107 | |
108 /* The version info from version.sh. Used in #pragma ident in emacs.c */ | |
109 #undef EMACS_MAJOR_VERSION | |
110 #undef EMACS_MINOR_VERSION | |
111 #undef EMACS_PATCH_LEVEL | |
112 #undef EMACS_BETA_VERSION | |
113 #undef EMACS_VERSION | |
114 #undef XEMACS_CODENAME | |
975 | 115 #undef XEMACS_EXTRA_NAME |
2602 | 116 #undef XEMACS_RELEASE_DATE |
428 | 117 |
442 | 118 /* Make functions from IEEE Stds 1003.[123] available. */ |
119 #undef _POSIX_C_SOURCE | |
120 | |
121 /* Make some functions from Unix98 available. */ | |
122 #undef _XOPEN_SOURCE | |
123 | |
124 /* Make "extensions" from Unix98 available. */ | |
125 #undef _XOPEN_SOURCE_EXTENDED | |
126 | |
428 | 127 /* Make all functions available on AIX. See AC_AIX. */ |
1294 | 128 /* Some AIX compilers (cc) pre-define _ALL_SOURCE, some (xlc) don't. */ |
1284 | 129 #ifndef _ALL_SOURCE |
428 | 130 #undef _ALL_SOURCE |
1284 | 131 #endif |
428 | 132 |
133 /* Make all functions available on GNU libc systems. See features.h. */ | |
134 #undef _GNU_SOURCE | |
135 | |
442 | 136 /* Make all functions available on Solaris 2 systems. */ |
137 #undef __EXTENSIONS__ | |
138 | |
1799 | 139 /* Define to the name of the typeof extension, if the compiler supports one */ |
140 #undef TYPEOF | |
141 | |
428 | 142 /* Used to identify the XEmacs version in stack traces. */ |
143 #undef STACK_TRACE_EYE_CATCHER | |
144 | |
145 /* Allow the configurer to specify if she wants site-lisp. */ | |
146 #undef INHIBIT_SITE_LISP | |
147 | |
148 /* Allow the configurer to specify if she wants site-modules. */ | |
149 #undef INHIBIT_SITE_MODULES | |
150 | |
151 /* Undefine on systems which don't have processes */ | |
152 #undef HAVE_UNIX_PROCESSES | |
153 | |
154 /* Define if you are using the GNU C Library. -- experimental. */ | |
155 #undef DOUG_LEA_MALLOC | |
156 | |
157 /* Define if you are using libmcheck.a from the GNU C Library. */ | |
158 #undef HAVE_LIBMCHECK | |
159 | |
160 /* Define if you are using dlmalloc from the Linux C library. */ | |
161 #undef _NO_MALLOC_WARNING_ | |
162 | |
163 /* Use the system malloc? */ | |
164 #undef USE_SYSTEM_MALLOC | |
165 | |
166 /* Use a debugging malloc? -- experimental */ | |
167 #undef USE_DEBUG_MALLOC | |
168 | |
2367 | 169 /* Use the relocating allocator for buffer space? */ |
170 #undef REL_ALLOC | |
171 | |
172 /* If using the C implementation of alloca, define if you know the | |
173 direction of stack growth for your system; otherwise it will be | |
174 automatically deduced at run-time. | |
175 STACK_DIRECTION > 0 => grows toward higher addresses | |
176 STACK_DIRECTION < 0 => grows toward lower addresses | |
177 STACK_DIRECTION = 0 => direction of growth unknown */ | |
178 #undef STACK_DIRECTION | |
179 | |
180 /* Is alloca() broken when part of an argument to a function call? */ | |
181 #undef BROKEN_ALLOCA_IN_FUNCTION_CALLS | |
182 | |
183 /* Define to 1 if you have `alloca', as a function or macro. */ | |
184 #undef HAVE_ALLOCA | |
185 | |
4759
aa5ed11f473b
Remove support for obsolete systems. See xemacs-patches message with ID
Jerry James <james@xemacs.org>
parents:
4738
diff
changeset
|
186 /* Define to 1 if you have <alloca.h> and it should be used. */ |
2367 | 187 #undef HAVE_ALLOCA_H |
188 | |
189 /* Define to 1 if using `alloca.c'. */ | |
190 #undef C_ALLOCA | |
191 | |
428 | 192 /* Compile in TTY support? */ |
193 #undef HAVE_TTY | |
194 | |
195 /* Compile in support for MS windows? */ | |
196 #undef HAVE_MS_WINDOWS | |
197 | |
198 /* special cygwin process handling? */ | |
199 #undef HAVE_MSG_SELECT | |
200 | |
201 /* Compile in support for the X window system? */ | |
202 #undef HAVE_X_WINDOWS | |
203 | |
3354 | 204 /* Compile with support for fontconfig? */ |
205 #undef HAVE_FONTCONFIG | |
206 | |
4328
dfd878799ef0
Autoconfiscate the recent fontconfig spelling change.
Aidan Kehoe <kehoea@parhasard.net>
parents:
3959
diff
changeset
|
207 /* Was the spelling of FcConfigGetRescanInterval corrected in this |
dfd878799ef0
Autoconfiscate the recent fontconfig spelling change.
Aidan Kehoe <kehoea@parhasard.net>
parents:
3959
diff
changeset
|
208 fontconfig version? */ |
dfd878799ef0
Autoconfiscate the recent fontconfig spelling change.
Aidan Kehoe <kehoea@parhasard.net>
parents:
3959
diff
changeset
|
209 #undef HAVE_FCCONFIGGETRESCANINTERVAL |
dfd878799ef0
Autoconfiscate the recent fontconfig spelling change.
Aidan Kehoe <kehoea@parhasard.net>
parents:
3959
diff
changeset
|
210 |
dfd878799ef0
Autoconfiscate the recent fontconfig spelling change.
Aidan Kehoe <kehoea@parhasard.net>
parents:
3959
diff
changeset
|
211 /* Was the spelling of FcConfigSetRescanInterval corrected in this |
dfd878799ef0
Autoconfiscate the recent fontconfig spelling change.
Aidan Kehoe <kehoea@parhasard.net>
parents:
3959
diff
changeset
|
212 fontconfig version? */ |
dfd878799ef0
Autoconfiscate the recent fontconfig spelling change.
Aidan Kehoe <kehoea@parhasard.net>
parents:
3959
diff
changeset
|
213 #undef HAVE_FCCONFIGSETRESCANINTERVAL |
dfd878799ef0
Autoconfiscate the recent fontconfig spelling change.
Aidan Kehoe <kehoea@parhasard.net>
parents:
3959
diff
changeset
|
214 |
3094 | 215 /* Compile with support for Xft? */ |
4916
a6c778975d7d
split USE_XFT into HAVE_XFT/USE_XFT
Ben Wing <ben@xemacs.org>
parents:
4865
diff
changeset
|
216 #undef HAVE_XFT |
3094 | 217 /* Per-widget stuff will go away? */ |
4916
a6c778975d7d
split USE_XFT into HAVE_XFT/USE_XFT
Ben Wing <ben@xemacs.org>
parents:
4865
diff
changeset
|
218 #undef HAVE_XFT_MENUBARS |
a6c778975d7d
split USE_XFT into HAVE_XFT/USE_XFT
Ben Wing <ben@xemacs.org>
parents:
4865
diff
changeset
|
219 #undef HAVE_XFT_TABS |
a6c778975d7d
split USE_XFT into HAVE_XFT/USE_XFT
Ben Wing <ben@xemacs.org>
parents:
4865
diff
changeset
|
220 #undef HAVE_XFT_GAUGES |
3094 | 221 |
428 | 222 /* Defines for building X applications */ |
223 #ifdef HAVE_X_WINDOWS | |
224 /* The following will be defined if xmkmf thinks they are necessary */ | |
225 #undef SVR4 | |
226 #undef SYSV | |
227 #undef AIXV3 | |
228 #undef _POSIX_SOURCE | |
229 #undef _BSD_SOURCE | |
230 #undef _SVID_SOURCE | |
231 #undef X_LOCALE | |
232 #undef NARROWPROTO | |
771 | 233 #endif /* HAVE_X_WINDOWS */ |
234 | |
462 | 235 /* Defines for building Gtk applications */ |
236 #undef HAVE_GNOME | |
237 #undef HAVE_GTK | |
238 #undef HAVE_GDK_IMLIB_INIT | |
239 #undef HAVE_GLADE_GLADE_H | |
240 #undef HAVE_GLADE_H | |
241 #undef LIBGLADE_XML_TXTDOMAIN | |
242 | |
444 | 243 /* XFree86 has a different prototype for this function */ |
244 #undef HAVE_XREGISTERIMINSTANTIATECALLBACK | |
245 #undef XREGISTERIMINSTANTIATECALLBACK_NONSTANDARD_PROTOTYPE | |
428 | 246 |
247 #undef THIS_IS_X11R4 | |
248 #undef THIS_IS_X11R5 | |
249 #undef THIS_IS_X11R6 | |
250 | |
442 | 251 #undef HAVE_XCONVERTCASE |
2625 | 252 #undef HAVE_XTREGISTERDRAWABLE |
442 | 253 |
254 #undef HAVE_BALLOON_HELP | |
255 | |
428 | 256 /* Where do we find bitmaps? */ |
257 #undef BITMAPDIR | |
258 | |
259 /* Define AMPERSAND_FULL_NAME if you use the convention | |
260 that & in the full name stands for the login id. */ | |
261 #undef AMPERSAND_FULL_NAME | |
262 | |
263 /* Some things figured out by the configure script, grouped as they are in | |
264 configure.in. */ | |
265 #undef HAVE_MCHECK_H | |
442 | 266 #undef HAVE_A_OUT_H |
446 | 267 #undef HAVE_ELF_H |
442 | 268 #undef HAVE_CYGWIN_VERSION_H |
269 #undef HAVE_FCNTL_H | |
270 #undef HAVE_INTTYPES_H | |
271 #undef HAVE_LIBGEN_H | |
272 #undef HAVE_LOCALE_H | |
912 | 273 #undef HAVE_WCHAR_H |
428 | 274 #undef HAVE_MACH_MACH_H |
442 | 275 #undef HAVE_SYS_PARAM_H |
276 #undef HAVE_SYS_PSTAT_H | |
2263 | 277 #undef HAVE_SYS_RESOURCE_H |
442 | 278 #undef HAVE_SYS_TIME_H |
428 | 279 #undef HAVE_SYS_TIMEB_H |
777 | 280 #undef HAVE_SYS_TIMES_H |
442 | 281 #undef HAVE_SYS_UN_H |
2263 | 282 #undef HAVE_SYS_VLIMIT_H |
442 | 283 #undef HAVE_ULIMIT_H |
428 | 284 #undef HAVE_UNISTD_H |
442 | 285 |
428 | 286 #undef HAVE_SYS_WAIT_H |
287 #undef HAVE_LIBINTL_H | |
288 #undef HAVE_X11_XLOCALE_H | |
872 | 289 |
290 /* About __STDC__: Different compilers differ wrt __STDC__. Sunpro C | |
291 defines it, but its value is 0 unless we disable non-ANSI extensions. | |
292 VC++ doesn't define it at all unless we disable non-ANSI extensions. | |
293 But these compilers are all ANSI-compliant. So don't go testing | |
294 __STDC__ anywhere except in code that runs only on known | |
295 compilers. --ben | |
296 | |
297 Jamie wrote the following: | |
298 | |
299 [[ The ANSI standard says that defining __STDC__ to a non-zero value | |
300 means that the compiler conforms to that standard. The standard | |
301 requires certain header files and library functions to be present. | |
302 Therefore, if your compiler defines __STDC__ to non-0 but does not have | |
303 ANSI headers and the ANSI library routines, then your compiler is | |
304 buggy. Conversely, an ANSI-conforming environment (which has both the | |
305 ANSI headers and library routines, i.e., stdlib.h and `memmove') does | |
306 not necessarily define the STDC_HEADERS flag. Lucid Emacs requires an | |
307 ANSI compiler. Therefore, there is no need to consult the abominable | |
308 STDC_HEADERS flag. -- jwz ]] | |
309 | |
310 In reality, we should not be testing STDC_HEADERS at all except | |
311 possibly in code we're purposely keeping in close sync with FSF code. | |
312 STDC_HEADERS should be defined on *ALL* compilers. | |
313 */ | |
314 | |
428 | 315 #undef STDC_HEADERS |
872 | 316 |
428 | 317 #undef TIME_WITH_SYS_TIME |
318 #undef WORDS_BIGENDIAN | |
319 | |
320 #undef HAVE_LONG_FILE_NAMES | |
321 | |
322 /* Use lock files to detect multiple edits of the same file? */ | |
323 #undef CLASH_DETECTION | |
324 | |
325 /* Have shared library support */ | |
326 #undef HAVE_DLOPEN | |
327 #undef HAVE_DLERROR | |
328 #undef HAVE__DLERROR | |
329 #undef HAVE_SHL_LOAD | |
1383 | 330 #undef HAVE_DYLD |
2078 | 331 #undef HAVE_LTDL |
1259 | 332 #undef DLSYM_NEEDS_UNDERSCORE |
1790 | 333 #undef HAVE_SHLIB |
428 | 334 |
4721
19d70297d866
Make readlink_or_correct_case function correctly on Darwin.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4699
diff
changeset
|
335 /* Darwin; realpath corrects for case: */ |
19d70297d866
Make readlink_or_correct_case function correctly on Darwin.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4699
diff
changeset
|
336 #ifdef HAVE_DYLD |
19d70297d866
Make readlink_or_correct_case function correctly on Darwin.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4699
diff
changeset
|
337 #define REALPATH_CORRECTS_CASE 1 |
5211
cdca98f2d36f
Move `default-file-system-ignore-case' to C; fix bug in directory hash tables
Aidan Kehoe <kehoea@parhasard.net>
parents:
4991
diff
changeset
|
338 #define DEFAULT_FILE_SYSTEM_IGNORE_CASE 1 |
4721
19d70297d866
Make readlink_or_correct_case function correctly on Darwin.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4699
diff
changeset
|
339 #endif |
19d70297d866
Make readlink_or_correct_case function correctly on Darwin.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4699
diff
changeset
|
340 |
428 | 341 #undef HAVE_LIBINTL |
342 #undef HAVE_LIBDNET | |
343 #undef HAVE_LIBRESOLV | |
344 | |
345 /* Is `sys_siglist' declared by <signal.h>? */ | |
2651 | 346 #undef HAVE_DECL_SYS_SIGLIST |
428 | 347 |
348 /* Is `struct timeval' declared by <sys/time.h>? */ | |
349 #undef HAVE_TIMEVAL | |
350 | |
351 | |
352 #undef TM_IN_SYS_TIME | |
353 #undef HAVE_TM_ZONE | |
354 #undef HAVE_TZNAME | |
355 | |
442 | 356 /* For `getloadavg' provided by system */ |
357 #undef HAVE_GETLOADAVG | |
358 #undef HAVE_SYS_LOADAVG_H | |
359 /* For implementing `getloadavg' ourselves */ | |
360 #undef HAVE_LIBKSTAT | |
361 #undef HAVE_KSTAT_H | |
362 | |
428 | 363 /* Is `h_errno' declared by <netdb.h>? */ |
364 #undef HAVE_H_ERRNO | |
365 | |
366 /* Does `localtime' cache TZ? */ | |
367 #undef LOCALTIME_CACHE | |
368 | |
369 /* Can `gettimeofday' accept two arguments? */ | |
370 #undef GETTIMEOFDAY_ONE_ARGUMENT | |
371 | |
2367 | 372 /* Is scanf() broken? (Under certain versions of Cygwin) */ |
373 #undef CYGWIN_SCANF_BUG | |
374 | |
4834
b3ea9c582280
Use new cygwin_conv_path API with Cygwin 1.7 for converting names between Win32 and POSIX, UTF-8-aware, with attendant changes elsewhere
Ben Wing <ben@xemacs.org>
parents:
4833
diff
changeset
|
375 /* UTF-8-aware path-conversion function in Cygwin 1.7 and on */ |
b3ea9c582280
Use new cygwin_conv_path API with Cygwin 1.7 for converting names between Win32 and POSIX, UTF-8-aware, with attendant changes elsewhere
Ben Wing <ben@xemacs.org>
parents:
4833
diff
changeset
|
376 #undef HAVE_CYGWIN_CONV_PATH |
b3ea9c582280
Use new cygwin_conv_path API with Cygwin 1.7 for converting names between Win32 and POSIX, UTF-8-aware, with attendant changes elsewhere
Ben Wing <ben@xemacs.org>
parents:
4833
diff
changeset
|
377 |
428 | 378 #undef HAVE_MMAP |
379 #undef HAVE_STRCOLL | |
380 #undef HAVE_GETPGRP | |
381 #undef GETPGRP_VOID | |
382 | |
383 #undef HAVE_INVERSE_HYPERBOLIC | |
384 | |
2367 | 385 /* Functions in the big list of functions checked for */ |
428 | 386 #undef HAVE_CBRT |
387 #undef HAVE_CLOSEDIR | |
388 #undef HAVE_DUP2 | |
389 #undef HAVE_EACCESS | |
390 #undef HAVE_FMOD | |
391 #undef HAVE_FPATHCONF | |
392 #undef HAVE_FREXP | |
2367 | 393 #undef HAVE_FSYNC |
428 | 394 #undef HAVE_FTIME |
2367 | 395 #undef HAVE_FTRUNCATE |
440 | 396 #undef HAVE_GETADDRINFO |
428 | 397 #undef HAVE_GETHOSTNAME |
440 | 398 #undef HAVE_GETNAMEINFO |
428 | 399 #undef HAVE_GETPAGESIZE |
2263 | 400 #undef HAVE_GETRLIMIT |
428 | 401 #undef HAVE_GETTIMEOFDAY |
402 #undef HAVE_GETCWD | |
771 | 403 #undef HAVE_LINK |
428 | 404 #undef HAVE_LOGB |
405 #undef HAVE_LRAND48 | |
406 #undef HAVE_MATHERR | |
407 #undef HAVE_MKDIR | |
408 #undef HAVE_MKTIME | |
409 #undef HAVE_PERROR | |
410 #undef HAVE_POLL | |
411 #undef HAVE_RANDOM | |
771 | 412 #undef HAVE_READLINK |
428 | 413 #undef HAVE_RENAME |
414 #undef HAVE_RES_INIT | |
415 #undef HAVE_RMDIR | |
416 #undef HAVE_SELECT | |
417 #undef HAVE_SETITIMER | |
418 #undef HAVE_SETPGID | |
419 #undef HAVE_SETSID | |
420 #undef HAVE_SIGBLOCK | |
421 #undef HAVE_SIGHOLD | |
422 #undef HAVE_SIGPROCMASK | |
423 #undef HAVE_SNPRINTF | |
424 #undef HAVE_STRERROR | |
1204 | 425 #undef HAVE_STRLWR |
426 #undef HAVE_STRUPR | |
771 | 427 #undef HAVE_SYMLINK |
428 | 428 #undef HAVE_TZSET |
429 #undef HAVE_ULIMIT | |
2367 | 430 #undef HAVE_UMASK |
428 | 431 #undef HAVE_USLEEP |
2367 | 432 #undef HAVE_VLIMIT |
433 #undef HAVE_VSNPRINTF | |
434 #undef HAVE_WAITPID | |
435 #undef HAVE_WCSCMP | |
436 #undef HAVE_WCSLEN | |
437 | |
3092 | 438 /* Functions and structs checked for vdb. */ |
439 #undef HAVE_MPROTECT | |
440 #undef HAVE_SIGACTION | |
441 #undef HAVE_STRUCT_SIGINFO_SI_ADDR | |
442 #undef HAVE_SIGINFO_T_SI_ADDR | |
443 #undef HAVE_SIGNAL | |
444 #undef HAVE_STRUCT_SIGCONTEXT_CR2 | |
445 | |
460 | 446 #undef HAVE_UTIME |
428 | 447 #undef HAVE_UTIMES |
2367 | 448 #undef HAVE_SIGSETJMP |
442 | 449 |
535 | 450 /* Many flavors of PTY support */ |
2651 | 451 /* glibc's easy pty allocation function */ |
452 #undef HAVE_GETPT | |
453 /* SGI's easy pty allocation function */ | |
454 #undef HAVE__GETPTY | |
455 /* BSD's easy pty allocation function */ | |
456 #undef HAVE_OPENPTY | |
457 /* Unix98 */ | |
458 #undef HAVE_GRANTPT | |
459 /* Unix98 */ | |
460 #undef HAVE_UNLOCKPT | |
461 /* Unix98 */ | |
462 #undef HAVE_PTSNAME | |
463 /* BSD */ | |
464 #undef HAVE_KILLPG | |
465 /* Posix 1 */ | |
466 #undef HAVE_TCGETPGRP | |
467 /* SysV streams */ | |
468 #undef HAVE_ISASTREAM | |
469 /* AIX */ | |
470 #undef HAVE_SYS_PTY_H | |
471 /* HP-UX */ | |
472 #undef HAVE_SYS_PTYIO_H | |
473 /* Linux, Tru64 */ | |
474 #undef HAVE_PTY_H | |
475 /* BSD openpty */ | |
476 #undef HAVE_LIBUTIL_H | |
477 /* NetBSD openpty */ | |
478 #undef HAVE_UTIL_H | |
479 /* SysV streams */ | |
480 #undef HAVE_STROPTS_H | |
481 /* SysV streams TIOCSIGNAL */ | |
482 #undef HAVE_STRTIO_H | |
442 | 483 |
428 | 484 #undef HAVE_SOCKETS |
485 #undef HAVE_SOCKADDR_SUN_LEN | |
486 #undef HAVE_MULTICAST | |
487 #undef HAVE_SYSVIPC | |
438 | 488 #undef HAVE_LOCKF |
489 #undef HAVE_FLOCK | |
428 | 490 |
491 #undef SYSV_SYSTEM_DIR | |
492 #undef NONSYSTEM_DIR_LIBRARY | |
493 | |
494 #undef HAVE_TERMIOS | |
495 #undef HAVE_TERMIO | |
496 #undef NO_TERMIO | |
497 #undef SIGNALS_VIA_CHARACTERS | |
498 | |
499 #undef NLIST_STRUCT | |
500 | |
724 | 501 /* Do IPv6 hostname canonicalization before IPv4 in getaddrinfo()? */ |
502 #undef IPV6_CANONICALIZE | |
503 | |
428 | 504 /* Compile in support for SOCKS? */ |
505 #undef HAVE_SOCKS | |
506 | |
507 /* Compile in support for X pixmaps via the `xpm' library? */ | |
508 #undef HAVE_XPM | |
509 #undef FOR_MSW | |
510 | |
511 /* Compile in support for "X faces" via the `compface' library? | |
512 This enables graphical display of X-face headers in mail/news messages */ | |
513 #undef HAVE_XFACE | |
514 | |
515 /* Compile in support for JPEG images */ | |
516 #undef HAVE_JPEG | |
517 | |
518 /* Compile in support for TIFF images */ | |
519 #undef HAVE_TIFF | |
520 | |
521 /* Compile in support for GIF images */ | |
522 #undef HAVE_GIF | |
523 | |
524 /* Compile in support for PNG images */ | |
525 #undef HAVE_PNG | |
526 | |
771 | 527 /* Compile in support for GZIP compression */ |
528 #undef HAVE_ZLIB | |
529 | |
428 | 530 /* Compile in support for DBM databases? May require libgdbm or libdbm. */ |
531 #undef HAVE_DBM | |
4699
0e1461b592ce
Check for gdbm/ndbm.h, too.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4497
diff
changeset
|
532 /* Full #include file path for GDBM's or platforms ndbm.h */ |
0e1461b592ce
Check for gdbm/ndbm.h, too.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4497
diff
changeset
|
533 #undef NDBM_H_FILE |
4991
97c45e3ad810
implement configure test for whether ndbm.h prototypes are broken
Ben Wing <ben@xemacs.org>
parents:
4969
diff
changeset
|
534 /* Can we trust the prototypes in ndbm.h? If not, we need to declare our own */ |
97c45e3ad810
implement configure test for whether ndbm.h prototypes are broken
Ben Wing <ben@xemacs.org>
parents:
4969
diff
changeset
|
535 #undef TRUST_NDBM_H_PROTOTYPES |
428 | 536 |
3739 | 537 /* Define to 1 if the system has the type `u_int8_t'. */ |
538 #undef HAVE_U_INT8_T | |
539 /* Define to 1 if the system has the type `u_int16_t'. */ | |
540 #undef HAVE_U_INT16_T | |
541 /* Define to 1 if the system has the type `u_int32_t'. */ | |
542 #undef HAVE_U_INT32_T | |
543 /* Define to 1 if the system has the type `u_int64_t'. */ | |
544 #undef HAVE_U_INT64_T | |
545 | |
428 | 546 /* Compile in support for Berkeley DB style databases? May require libdb. */ |
547 #undef HAVE_BERKELEY_DB | |
548 /* Full #include file path for Berkeley DB's db.h */ | |
442 | 549 #undef DB_H_FILE |
428 | 550 |
551 /* Do we have either DBM or Berkeley DB database support? */ | |
552 #undef HAVE_DATABASE | |
553 | |
554 /* Do we have LDAP support? */ | |
555 #undef HAVE_LDAP | |
556 /* Does the library define ldap_set_option () ? */ | |
557 #undef HAVE_LDAP_SET_OPTION | |
558 /* Does the library define ldap_get_lderrno () ? */ | |
559 #undef HAVE_LDAP_GET_LDERRNO | |
560 /* Does the library define ldap_result2error () ? */ | |
561 #undef HAVE_LDAP_RESULT2ERROR | |
562 /* Does the library define ldap_parse_result () ? */ | |
563 #undef HAVE_LDAP_PARSE_RESULT | |
564 | |
442 | 565 /* Do we have PostgreSQL RDBMS support? */ |
566 #undef HAVE_POSTGRESQL | |
567 #undef HAVE_POSTGRESQLV7 | |
2651 | 568 /* main PostgreSQL header file */ |
569 #undef LIBPQ_FE_H_FILE | |
442 | 570 |
428 | 571 /* Do you have the Xauth library present? This will add some extra |
572 functionality to gnuserv. */ | |
573 #undef HAVE_XAUTH | |
574 | |
575 /* Compile in support for gpm (General Purpose Mouse)? */ | |
576 #undef HAVE_GPM | |
577 | |
578 /* Compile in support for ncurses? */ | |
579 #undef HAVE_NCURSES | |
580 /* Full #include file paths for ncurses' curses.h and term.h. */ | |
442 | 581 #undef CURSES_H_FILE |
582 #undef TERM_H_FILE | |
428 | 583 |
584 /* Define USE_ASSERTIONS if you want the abort() to be changed to assert(). | |
585 If the assertion fails, assert_failed() will be called. This is | |
586 recommended for general use because it gives more info about the crash | |
587 than just the abort() message. Too many people "Can't find the corefile" | |
588 or have limit-ed core dumps out of existence. */ | |
589 #undef USE_ASSERTIONS | |
590 | |
591 /* Define one or more of the following if you want lots of extra checks | |
592 (e.g. structure validation) compiled in. These should be turned | |
3959 | 593 on during the beta-test cycle. |
594 | |
595 Keep macro names sorted to help with syncing this file to configure.ac. | |
596 Don't forget the ERROR_CHECK_ALL stuff at the end of this file. */ | |
597 | |
598 /* Minor sanity checking of the bytecode interpreter. Useful for | |
599 debugging the byte compiler. */ | |
600 #undef ERROR_CHECK_BYTE_CODE | |
601 | |
602 /* Sanity-check the redisplay structures after each modification. */ | |
603 #undef ERROR_CHECK_DISPLAY | |
428 | 604 |
605 /* Check the entire extent structure of a buffer each time an extent | |
606 change is done, and do other extent-related checks. */ | |
607 #undef ERROR_CHECK_EXTENTS | |
440 | 608 |
3959 | 609 /* Attempt to catch bugs related to garbage collection (e.g. not GCPRO'ing). */ |
610 #undef ERROR_CHECK_GC | |
611 | |
612 /* Minor sanity checking of glyphs, especially subwindows and | |
613 widgets. */ | |
614 #undef ERROR_CHECK_GLYPHS | |
615 | |
616 /* Attempt to catch freeing of a non-malloc()ed block, heap corruption, etc. */ | |
617 #undef ERROR_CHECK_MALLOC | |
618 | |
619 /* Define for any sanity checks on structures that are not handled by a | |
620 more specific error-checking type. */ | |
621 #undef ERROR_CHECK_STRUCTURES | |
440 | 622 |
800 | 623 /* Turn on checks related to text -- check that text in strings and buffers |
624 is in a valid format before we use it, check that buffer positions are | |
625 valid, etc. */ | |
626 #undef ERROR_CHECK_TEXT | |
440 | 627 |
3959 | 628 /* Turn on checks related to types -- make sure that all X... macros are |
629 dereferencing the correct type, and that all XSET... macros (as much as | |
630 possible) are setting the correct type of structure; check any other | |
631 places that a specific type is expected. */ | |
632 #undef ERROR_CHECK_TYPES | |
800 | 633 |
428 | 634 /* Define DEBUG_XEMACS if you want extra debugging code compiled in. |
635 This is mainly intended for use by developers. */ | |
636 #undef DEBUG_XEMACS | |
637 | |
638 /* Define MEMORY_USAGE_STATS if you want extra code compiled in to | |
639 determine where XEmacs' memory is going. */ | |
640 #undef MEMORY_USAGE_STATS | |
641 | |
460 | 642 /* Define QUANTIFY if using Quantify from Rational Software. |
428 | 643 This adds some additional calls to control data collection. |
644 It is only intended for use by the developers. */ | |
645 #undef QUANTIFY | |
646 | |
460 | 647 /* Define PURIFY if using Purify from Rational Software. |
428 | 648 It is only intended for use by the developers. */ |
649 #undef PURIFY | |
650 | |
4803
5d120deb60ca
Enable rudimentary support for valgrind, including functions that tell valgrind
Jerry James <james@xemacs.org>
parents:
4790
diff
changeset
|
651 /* Define USE_VALGRIND to compile valgrind hints into the code. |
5d120deb60ca
Enable rudimentary support for valgrind, including functions that tell valgrind
Jerry James <james@xemacs.org>
parents:
4790
diff
changeset
|
652 It is only intended for use by the developers. */ |
5d120deb60ca
Enable rudimentary support for valgrind, including functions that tell valgrind
Jerry James <james@xemacs.org>
parents:
4790
diff
changeset
|
653 #undef USE_VALGRIND |
5d120deb60ca
Enable rudimentary support for valgrind, including functions that tell valgrind
Jerry James <james@xemacs.org>
parents:
4790
diff
changeset
|
654 |
428 | 655 /* Define EXTERNAL_WIDGET to compile support for using the editor as a |
656 widget within another program. */ | |
657 #undef EXTERNAL_WIDGET | |
658 | |
4829
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
659 /* There are some special-case defines for gcc, g++ and lcc. */ |
428 | 660 #undef USE_GCC |
4829
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
661 #undef USE_GPLUSPLUS |
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
662 #undef USE_LCC /* #### Not currently set in configure */ |
428 | 663 |
664 /* Compile in support for CDE (Common Desktop Environment) drag and drop? | |
665 Requires libDtSvc, which typically must be present at runtime. */ | |
666 #undef HAVE_CDE | |
667 | |
668 /* Compile in generic Drag'n'Drop API */ | |
669 #undef HAVE_DRAGNDROP | |
670 | |
671 /* Compile in support for proper handling of WM_COMMAND. */ | |
672 #undef HAVE_WMCOMMAND | |
673 | |
674 /* Define this if you want Mule support (multi-byte character support). | |
675 There may be some performance penalty, although it should be small | |
676 if you're working with ASCII files. */ | |
677 #undef MULE | |
678 | |
771 | 679 /* Define this if you want EOL detection of files to be on by default |
680 in a non-Mule Unix; otherwise, defaults will be set so that all | |
681 files are read in as binary. Doesn't apply to Cygwin or MinGW. */ | |
682 #undef HAVE_DEFAULT_EOL_DETECTION | |
428 | 683 |
1259 | 684 /* Support X FontSets. Evil, yes, but if we're going to make it go away |
685 by using faces in the menubar we should do so. */ | |
686 #undef USE_XFONTSET | |
687 | |
428 | 688 /* Do we want to use X window input methods for use with Mule? (requires X11R5) |
689 If so, use raw Xlib or higher level Motif interface? */ | |
690 #undef HAVE_XIM | |
691 #undef XIM_XLIB | |
692 #undef XIM_MOTIF | |
693 | |
694 /* Non-XIM input methods for use with Mule. */ | |
695 #undef HAVE_CANNA | |
3830 | 696 #undef CANNA_NEW_WCHAR_AWARE |
428 | 697 #undef HAVE_WNN |
698 #undef WNN6 | |
699 | |
442 | 700 /* Debugging development option: Remove inessential but time consuming |
701 actions from happening during build. This saves a lot of time when | |
702 you're repeatedly compiling-running-crashing. This (1) doesn't | |
703 garbage-collect after loading each file during dumping, and (2) | |
704 doesn't automatically rebuild the DOC file. (Remove it by hand to | |
705 get it rebuilt.) | |
706 */ | |
707 #undef QUICK_BUILD | |
428 | 708 |
872 | 709 /* If true, run the compiler with many files at once rather than one at a |
710 time. May speed up compilation time with some compilers, particularly | |
711 if the entire compilation happens in a single process -- the process can | |
712 cache the results of processing include files. This definitely helps | |
713 with VC++ (although it doesn't use Makefile.in.in) but not with GCC, | |
714 which runs many processes per file to compile. */ | |
715 #undef BATCH_COMPILER_RUNS | |
716 | |
771 | 717 /* If defined, use unions instead of ints. A few systems (DEC Alpha) |
718 seem to require this, probably because something with the int | |
719 definitions isn't right with 64-bit systems. */ | |
720 #undef USE_UNION_TYPE | |
721 | |
926 | 722 /* If defined, use experimental pdump-based GC algorithms. */ |
723 #undef USE_KKCC | |
724 | |
3263 | 725 /* If defined, use experimental incremental garbage collector and new |
726 allocator. */ | |
3092 | 727 #undef NEW_GC |
728 | |
729 /* Virtual dirty bit implementation for incremental gc. */ | |
730 #undef VDB_POSIX | |
731 #undef VDB_MACH | |
732 #undef VDB_WIN32 | |
733 #undef VDB_FAKE | |
734 | |
771 | 735 /* Enable special GNU Make features in the Makefiles. */ |
736 #undef USE_GNU_MAKE | |
737 | |
428 | 738 /* Defined by AC_C_CONST in configure.in */ |
739 #undef const | |
740 | |
434 | 741 /* Allow the source to use standard types. Include these before the |
742 s&m files so that they can use them. */ | |
743 #undef ssize_t | |
744 #undef size_t | |
745 #undef pid_t | |
746 #undef mode_t | |
747 #undef off_t | |
748 #undef uid_t | |
749 #undef gid_t | |
442 | 750 #undef socklen_t |
434 | 751 |
2367 | 752 /* Enhanced numeric support */ |
753 #undef WITH_NUMBER_TYPES | |
754 #undef WITH_GMP | |
755 #undef WITH_MP | |
756 #undef MP_PREFIX | |
757 #undef HAVE_MP_MOVE | |
771 | 758 |
2367 | 759 #undef SIZEOF_SHORT |
760 #undef SIZEOF_INT | |
761 #undef SIZEOF_LONG | |
762 #undef SIZEOF_LONG_LONG | |
763 #undef SIZEOF_VOID_P | |
764 #undef SIZEOF_DOUBLE | |
615 | 765 |
2367 | 766 /* some systems (Cygwin) typedef u?intptr_t in <sys/types.h> |
767 but the standard is <inttypes.h> | |
768 ugliness due to last-resort conditional typedef'ing in lisp.h */ | |
769 #undef HAVE_INTPTR_T_IN_SYS_TYPES_H | |
770 | |
771 /* Does the keyword `inline' exist? */ | |
772 #undef inline | |
428 | 773 |
2367 | 774 /* movemail options */ |
775 /* Should movemail use POP3 for mail access? */ | |
776 #undef MAIL_USE_POP | |
777 /* Should movemail use kerberos for POP authentication? */ | |
778 #undef KERBEROS | |
779 /* Should movemail use hesiod for getting POP server host? */ | |
780 #undef HESIOD | |
781 /* Determine type of mail locking. */ | |
782 #undef MAIL_LOCK_LOCKF | |
783 #undef MAIL_LOCK_FLOCK | |
784 #undef MAIL_LOCK_DOT | |
785 #undef MAIL_LOCK_LOCKING | |
786 #undef MAIL_LOCK_MMDF | |
428 | 787 |
2367 | 788 #undef HAVE_MKSTEMP |
428 | 789 |
2367 | 790 #undef PREFIX_USER_DEFINED |
791 #undef EXEC_PREFIX_USER_DEFINED | |
792 #undef MODULEDIR_USER_DEFINED | |
793 #undef SITEMODULEDIR_USER_DEFINED | |
794 #undef DOCDIR_USER_DEFINED | |
795 #undef LISPDIR_USER_DEFINED | |
3179 | 796 #undef EARLY_PACKAGE_DIRECTORIES_USER_DEFINED |
797 #undef LATE_PACKAGE_DIRECTORIES_USER_DEFINED | |
798 #undef LAST_PACKAGE_DIRECTORIES_USER_DEFINED | |
2367 | 799 #undef PACKAGE_PATH_USER_DEFINED |
800 #undef SITELISPDIR_USER_DEFINED | |
801 #undef ARCHLIBDIR_USER_DEFINED | |
802 #undef ETCDIR_USER_DEFINED | |
803 #undef INFODIR_USER_DEFINED | |
804 #undef INFOPATH_USER_DEFINED | |
872 | 805 |
2367 | 806 #undef PDUMP |
872 | 807 |
2720 | 808 /* Define DUMP_IN_EXEC to include the dump file in the executable |
809 file. */ | |
810 #undef DUMP_IN_EXEC | |
811 | |
428 | 812 /* Compile in support for Sun Sparcworks/WorkShop? */ |
813 #undef SUNPRO | |
814 | |
815 /* Sun SparcStations, SGI machines, and HP9000s700s have built-in | |
816 support for playing sound files. (On Suns, the sound support is | |
817 usually found in /usr/demo/SOUND - you may need to install the | |
818 "SUNWaudmo" package.) */ | |
819 #undef HAVE_NATIVE_SOUND | |
771 | 820 |
428 | 821 /* Native sound may be provided via soundcard.h, in various directories */ |
442 | 822 #undef SOUNDCARD_H_FILE |
428 | 823 |
3308 | 824 /* Compile in support for ALSA (Advanced Linux Sound Architecture) */ |
825 #undef HAVE_ALSA_SOUND | |
826 | |
428 | 827 /* Compile in support for NAS (Network Audio System)? |
828 NAS_NO_ERROR_JUMP means that the NAS libraries don't include some | |
829 error handling changes. */ | |
830 #undef HAVE_NAS_SOUND | |
831 #undef NAS_NO_ERROR_JUMP | |
832 | |
833 /* Compile in support for ESD (Enlightened Sound Daemon)? */ | |
834 #undef HAVE_ESD_SOUND | |
835 | |
836 /* Compile in support for SunPro usage-tracking code? */ | |
837 #undef USAGE_TRACKING | |
838 | |
839 /* Compile in support for Tooltalk? */ | |
840 #undef TOOLTALK | |
841 /* tt_c.h might be in "Tt" or "desktop" subdirectories */ | |
442 | 842 #undef TT_C_H_FILE |
428 | 843 |
844 /* Toolkits used by lwlib for various widgets... */ | |
771 | 845 |
428 | 846 #undef LWLIB_USES_MOTIF |
847 #undef LWLIB_USES_ATHENA | |
848 #undef LWLIB_MENUBARS_LUCID | |
849 #undef LWLIB_MENUBARS_MOTIF | |
850 #undef LWLIB_SCROLLBARS_LUCID | |
851 #undef LWLIB_SCROLLBARS_MOTIF | |
852 #undef LWLIB_SCROLLBARS_ATHENA | |
853 #undef LWLIB_SCROLLBARS_ATHENA3D | |
854 #undef LWLIB_DIALOGS_MOTIF | |
855 #undef LWLIB_DIALOGS_ATHENA | |
856 #undef LWLIB_DIALOGS_ATHENA3D | |
857 #undef LWLIB_TABS_LUCID | |
858 #undef LWLIB_WIDGETS_MOTIF | |
859 #undef LWLIB_WIDGETS_ATHENA | |
440 | 860 #undef HAVE_ATHENA_3D |
428 | 861 |
862 /* Other things that can be disabled by configure. */ | |
863 #undef HAVE_MENUBARS | |
864 #undef HAVE_SCROLLBARS | |
865 #undef HAVE_DIALOGS | |
866 #undef HAVE_TOOLBARS | |
867 #undef HAVE_WIDGETS | |
868 | |
771 | 869 #endif /* WIN32_NO_CONFIGURE */ |
870 | |
2994 | 871 #ifdef _MSC_VER |
872 /* Turn off tons of C4996 warnings in VC 8 about standard functions being | |
873 "deprecated" in favor of Microsoft-specific "secure" ones (!) | |
874 This must go *before* the inclusion of any system files. */ | |
875 #define _CRT_SECURE_NO_DEPRECATE | |
4457
2fddd822ce87
#define _CRT_NONSTDC_NO_DEPRECATE on Win32
Aidan Kehoe <kehoea@parhasard.net>
parents:
4448
diff
changeset
|
876 #define _CRT_NONSTDC_NO_DEPRECATE |
2994 | 877 #endif |
878 | |
2367 | 879 /* alloca twiddling. |
880 Because we might be #including alloca.h here, feature test macros | |
881 such as _XOPEN_SOURCE must be defined above. | |
882 | |
883 #### This really should go below the inclusion of s&m files, like | |
884 everything else. */ | |
885 | |
886 #ifndef NOT_C_CODE | |
887 #if defined (__CYGWIN__) | |
888 /* We get complaints about redefinitions if we just use the __GNUC__ | |
889 definition: stdlib.h also includes alloca.h, which defines it slightly | |
890 differently */ | |
891 #include <alloca.h> | |
892 #elif defined (__GNUC__) | |
893 #define alloca __builtin_alloca | |
894 #elif defined (WIN32_NO_CONFIGURE) | |
895 /* Defines size_t and alloca (). */ | |
896 #include <malloc.h> | |
897 #elif defined (__DECC) | |
898 #include <alloca.h> | |
899 #pragma intrinsic(alloca) | |
900 #elif defined (HAVE_ALLOCA_H) | |
901 #include <alloca.h> | |
902 #elif defined (_AIX) | |
903 /* AIX requires this before any "real" code in the translation unit. */ | |
904 #pragma alloca | |
905 #elif ! defined (alloca) | |
906 #ifdef C_ALLOCA | |
907 #define alloca xemacs_c_alloca | |
908 #else | |
909 void *alloca (); | |
910 #endif /* C_ALLOCA */ | |
911 #endif /* !defined (alloca) */ | |
912 #endif /* C code */ | |
913 | |
914 /* The configuration script may define `opsysfile' to be the name of | |
915 the s/...h file that describes your operating system. | |
916 The file name is chosen based on the configuration name. */ | |
917 | |
918 #if defined (__cplusplus) && !defined (NOT_C_CODE) | |
919 extern "C" { | |
920 #endif | |
921 | |
922 #undef config_opsysfile | |
923 #ifdef WIN32_NO_CONFIGURE | |
924 #include "s/windowsnt.h" | |
925 #elif defined (config_opsysfile) | |
926 #include config_opsysfile | |
927 #endif | |
928 | |
4738
a6f27e2b3d84
Move functionality of s/darwin.h to configure.ac and config.h.in.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4735
diff
changeset
|
929 /* Darwin uses this to set BSD appropriately. */ |
a6f27e2b3d84
Move functionality of s/darwin.h to configure.ac and config.h.in.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4735
diff
changeset
|
930 #undef USE_PARAM_H |
a6f27e2b3d84
Move functionality of s/darwin.h to configure.ac and config.h.in.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4735
diff
changeset
|
931 #ifdef USE_PARAM_H |
a6f27e2b3d84
Move functionality of s/darwin.h to configure.ac and config.h.in.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4735
diff
changeset
|
932 # ifndef NOT_C_CODE |
a6f27e2b3d84
Move functionality of s/darwin.h to configure.ac and config.h.in.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4735
diff
changeset
|
933 # include <sys/param.h> |
a6f27e2b3d84
Move functionality of s/darwin.h to configure.ac and config.h.in.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4735
diff
changeset
|
934 # endif |
a6f27e2b3d84
Move functionality of s/darwin.h to configure.ac and config.h.in.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4735
diff
changeset
|
935 #endif |
a6f27e2b3d84
Move functionality of s/darwin.h to configure.ac and config.h.in.
Stephen J. Turnbull <stephen@xemacs.org>
parents:
4735
diff
changeset
|
936 |
2367 | 937 /* The configuration script may define `machfile' to be the name of |
938 the m/...h file that describes the machine you are using. | |
939 The file name is chosen based on the configuration name. */ | |
940 | |
941 #undef config_machfile | |
942 #ifdef WIN32_NO_CONFIGURE | |
943 #include "m/windowsnt.h" | |
944 #elif defined (config_machfile) | |
945 #include config_machfile | |
946 #endif | |
947 | |
948 #if defined (__cplusplus) && !defined (NOT_C_CODE) | |
949 } | |
950 #endif | |
951 | |
952 /* This will be removed in 19.15. */ | |
953 /* Hah! Try 20.3 ... */ | |
954 /* Hah! Try never ... */ | |
955 /* If at first you don't succeed, try, try again. */ | |
956 /* #define LOSING_BYTECODE */ | |
957 | |
958 /* USER_FULL_NAME returns a string that is the user's full name. | |
959 It can assume that the variable `pw' points to the password file | |
960 entry for this user. | |
961 | |
962 At some sites, the pw_gecos field contains the user's full name. | |
963 If neither this nor any other field contains the right thing, use | |
964 pw_name, giving the user's login name, since that is better than | |
965 nothing. */ | |
966 #define USER_FULL_NAME pw->pw_gecos | |
967 | |
968 #define XEMACS_WANTS_C_ALLOCA | |
969 | |
970 /* s&m files shouldn't be required to define anything, or even to exist. | |
971 If the s&m files don't define SYSTEM_TYPE, configure will select an | |
972 appropriate default value. */ | |
973 #ifndef SYSTEM_TYPE | |
974 #undef SYSTEM_TYPE | |
975 #endif | |
976 | |
977 #if defined (USE_SYSTEM_MALLOC) && !defined (SYSTEM_MALLOC) | |
978 #define SYSTEM_MALLOC | |
979 #endif | |
980 | |
2994 | 981 /* This enables type based information (updated during gc). The output |
982 is used by show-memory-usage to print memory information for each | |
983 type. Since the new allocator does not distinguish between types | |
984 anymore, this functionality is additionally implemented and | |
985 consumes a lot of time. That is why this functionality can be | |
986 disabled; for the moment, we keep it enabled. */ | |
987 #if !defined (MC_ALLOC) || 1 | |
988 # define ALLOC_TYPE_STATS 1 | |
989 #endif | |
990 | |
2367 | 991 /* Define the return type of signal handlers if the s/xxx.h file |
992 did not already do so. */ | |
993 #define RETSIGTYPE void | |
994 | |
995 #ifndef XCDECL | |
996 #define XCDECL | |
997 #endif | |
998 | |
999 /* SIGTYPE is the macro we actually use. */ | |
1000 #ifndef SIGTYPE | |
1001 #define SIGTYPE RETSIGTYPE XCDECL | |
1002 #define SIGRETURN return | |
1003 #endif | |
1004 | |
1005 /* Define HAVE_WINDOW_SYSTEM if any windowing system is available. */ | |
4759
aa5ed11f473b
Remove support for obsolete systems. See xemacs-patches message with ID
Jerry James <james@xemacs.org>
parents:
4738
diff
changeset
|
1006 #if defined (HAVE_GTK) || defined (HAVE_X_WINDOWS) || defined (HAVE_MS_WINDOWS) |
2367 | 1007 #define HAVE_WINDOW_SYSTEM |
1008 #endif | |
1009 | |
771 | 1010 #if defined (HAVE_MENUBARS) || defined (HAVE_SCROLLBARS) || defined (HAVE_DIALOGS) || defined (HAVE_TOOLBARS) || defined (HAVE_WIDGETS) |
1011 #define HAVE_GUI_OBJECTS | |
1012 #endif | |
1013 | |
2367 | 1014 #if defined (HAVE_MENUBARS) || defined (HAVE_DIALOGS) |
1015 #define HAVE_POPUPS | |
1016 #endif | |
1017 | |
1018 #if defined (HAVE_GTK) || defined (HAVE_X_WINDOWS) | |
1019 #define HAVE_XLIKE | |
1020 #endif | |
1021 | |
771 | 1022 /* For the moment, Athena widgets and dialogs may be very unstable and not |
1023 working well, but things under Windows work much better. configure by | |
1024 default tries to turn Windows widgets and dialogs on, but the Athena | |
1025 ones off, so let's separate the defines. */ | |
1026 #if defined (HAVE_WIDGETS) && (defined (LWLIB_WIDGETS_MOTIF) || defined (LWLIB_WIDGETS_ATHENA)) | |
1027 #define HAVE_X_WIDGETS | |
1028 #endif | |
1029 | |
1030 #if defined (HAVE_DIALOGS) && (defined (LWLIB_DIALOGS_MOTIF) || defined (LWLIB_DIALOGS_ATHENA) || defined (LWLIB_DIALOGS_ATHENA3D)) | |
1031 #define HAVE_X_DIALOGS | |
1032 #endif | |
428 | 1033 |
2367 | 1034 #ifdef HAVE_X_WINDOWS |
1035 /* The following should always be defined, no matter what xmkmf thinks. */ | |
1036 #ifndef NeedFunctionPrototypes | |
1037 #define NeedFunctionPrototypes 1 | |
1038 #endif | |
1039 #ifndef FUNCPROTO | |
1040 #define FUNCPROTO 15 | |
1041 #endif | |
1042 #endif /* HAVE_X_WINDOWS */ | |
1043 | |
1044 #if (defined (QUANTIFY) || defined (PURIFY)) && !defined (XLIB_ILLEGAL_ACCESS) | |
1045 #define XLIB_ILLEGAL_ACCESS 1 | |
1046 #endif | |
1047 | |
1048 /* Define HAVE_UNIXOID_EVENT_LOOP if we use select() to wait for events. */ | |
1049 #if defined (HAVE_X_WINDOWS) || defined (HAVE_TTY) || defined (HAVE_MSG_SELECT) | |
1050 #define HAVE_UNIXOID_EVENT_LOOP | |
428 | 1051 #endif |
1052 | |
1053 #ifdef HAVE_CANNA | |
1054 # define CANNA_MULE | |
1055 # define CANNA_PURESIZE 0 | |
1056 #else /* not CANNA */ | |
1057 # define CANNA_PURESIZE 0 | |
1058 #endif /* not CANNA */ | |
1059 | |
1060 #if defined (HAVE_SOCKS) && !defined (DO_NOT_SOCKSIFY) | |
1061 #define accept Raccept | |
1062 #define bind Rbind | |
1063 #define connect Rconnect | |
1064 #define getsockname Rgetsockname | |
1065 #define listen Rlisten | |
1066 #endif /* HAVE_SOCKS && !DO_NOT_SOCKSIFY */ | |
1067 | |
1068 #ifndef BITS_PER_CHAR | |
1069 #define BITS_PER_CHAR 8 | |
1070 #endif | |
1071 #define SHORTBITS (SIZEOF_SHORT * BITS_PER_CHAR) | |
1072 #define INTBITS (SIZEOF_INT * BITS_PER_CHAR) | |
1073 #define LONGBITS (SIZEOF_LONG * BITS_PER_CHAR) | |
1074 #define LONG_LONG_BITS (SIZEOF_LONG_LONG * BITS_PER_CHAR) | |
1075 #define VOID_P_BITS (SIZEOF_VOID_P * BITS_PER_CHAR) | |
1983 | 1076 #define DOUBLE_BITS (SIZEOF_DOUBLE * BITS_PER_CHAR) |
1077 | |
442 | 1078 /* Use `INLINE_HEADER' to define inline functions in .h files. |
1079 Use `inline static' to define inline functions in .c files. | |
1080 See the Internals manual for examples and more information. */ | |
1081 | |
4389
4c5cd87620e4
Check that __STDC_VERSION__ is defined before examining it.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4387
diff
changeset
|
1082 #if (defined ( __STDC_VERSION__) && __STDC_VERSION__ >= 199901L) \ |
4c5cd87620e4
Check that __STDC_VERSION__ is defined before examining it.
Aidan Kehoe <kehoea@parhasard.net>
parents:
4387
diff
changeset
|
1083 || defined (__cplusplus) || ! defined (__GNUC__) || ! defined(emacs) |
4829
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
1084 # define INLINE_HEADERS_ARE_STATIC |
442 | 1085 # define INLINE_HEADER inline static |
1086 #elif defined (DONT_EXTERN_INLINE_HEADER_FUNCTIONS) | |
1087 # define INLINE_HEADER inline | |
1088 #else | |
1089 # define INLINE_HEADER inline extern | |
1090 #endif | |
428 | 1091 |
771 | 1092 /* Use DECLARE_INLINE_HEADER() to declare an inline function in a header |
1093 file, like this: (This avoids the need to write a prototype directly | |
4932 | 1094 followed by the function header itself, in order to avoid a |
1095 "no prototype" warning from GCC.) | |
771 | 1096 |
1097 DECLARE_INLINE_HEADER (int foo (int x)) | |
1098 { | |
1099 return x * x; | |
1100 } | |
1101 | |
1102 */ | |
1103 | |
1104 #define DECLARE_INLINE_HEADER(header) \ | |
1105 INLINE_HEADER header ; INLINE_HEADER header | |
1106 | |
442 | 1107 #ifndef NOT_C_CODE /* Actually means C or C++ */ |
1108 # if defined (__cplusplus) | |
1109 # define EXTERN_C extern "C" | |
1110 # else /* C code */ | |
1111 # define EXTERN_C extern | |
1112 # endif | |
1113 #endif /* C or C++ */ | |
428 | 1114 |
1115 /* Strictly speaking, only int or unsigned int are valid types in a | |
1116 bitfield. In practice, we would like to use enums as bitfields. | |
1117 The following should just result in warning avoidance: | |
1118 warning: nonportable bit-field type */ | |
1119 #ifdef __GNUC__ | |
1120 #define enum_field(enumeration_type) enum enumeration_type | |
1121 #else | |
1122 #define enum_field(enumeration_type) unsigned int | |
1123 #endif | |
1124 | |
1125 /* We want to avoid saving the signal mask if possible, because | |
1126 that necessitates a system call. */ | |
1127 #ifdef HAVE_SIGSETJMP | |
1128 # define SETJMP(x) sigsetjmp (x, 0) | |
1129 # define LONGJMP(x, y) siglongjmp (x, y) | |
1130 # define JMP_BUF sigjmp_buf | |
1131 #else | |
1132 # define SETJMP(x) setjmp (x) | |
1133 # define LONGJMP(x, y) longjmp (x, y) | |
1134 # define JMP_BUF jmp_buf | |
1135 #endif | |
1136 | |
838 | 1137 /* For the moment, we go ahead and keep this, since it's used in mouse.el. |
1138 #### font-lock does its own version using parse-partial-sexp. We should | |
1139 merge the two. */ | |
1140 #define USE_C_FONT_LOCK | |
1141 | |
3959 | 1142 /* Keep the #defines sorted. |
1143 #### Can this code ever be executed? I guess if a developer #defines | |
1144 ERROR_CHECK_ALL above the #include it could be useful. */ | |
800 | 1145 #ifdef ERROR_CHECK_ALL |
3959 | 1146 #define ERROR_CHECK_BYTE_CODE |
1147 #define ERROR_CHECK_DISPLAY | |
800 | 1148 #define ERROR_CHECK_EXTENTS |
1149 #define ERROR_CHECK_GC | |
3959 | 1150 #define ERROR_CHECK_GLYPHS |
800 | 1151 #define ERROR_CHECK_MALLOC |
1152 #define ERROR_CHECK_STRUCTURES | |
3959 | 1153 #define ERROR_CHECK_TEXT |
1154 #define ERROR_CHECK_TYPES | |
800 | 1155 #endif /* ERROR_CHECK_ALL */ |
1156 | |
4829
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
1157 /* It's very tricky. In some circumstances, if we don't include the |
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
1158 ERROR_CHECK_TYPES functions in xemacs.def.in.in, we get lots of |
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
1159 undefined references from eldap.o and postgresql.o; but in other |
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
1160 circumstances, if we DO include them, we get undefined references |
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
1161 in xemacs-export.o to the same functions. We try here to grok when |
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
1162 we need to include them in xemacs.def.in.in. I originally thought |
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
1163 it was enough to condition on !defined (INLINE_HEADERS_ARE_STATIC) -- |
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
1164 if they're static, they shouldn't lead to any external references |
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
1165 in the modules, right? Wrong, under non-optimized builds. So now |
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
1166 let's try conditioning on !C++ -- by examining inline.o with nm, |
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
1167 it seems it's the C++ builds where inline.o doesn't get any inline |
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
1168 functions compiled into it at all, which would lead to problems if |
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
1169 we reference them in xemacs.def.in.in. |
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
1170 |
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
1171 #### FIXME Should we condition on GCC and defined(emacs), like we |
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
1172 do (inverted) for INLINE_HEADERS_ARE_STATIC? --ben */ |
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
1173 |
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
1174 /* Checking for !defined (__cplusplus) doesn't work, because we typically |
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
1175 aren't using the C++ preprocessor when processing xemacs.def.in.in |
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
1176 even if we're using a C++ compiler. I suspect we only need this at |
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
1177 all GCC is being used. */ |
4952
19a72041c5ed
Mule-izing, various fixes related to char * arguments
Ben Wing <ben@xemacs.org>
parents:
4932
diff
changeset
|
1178 #if !defined (USE_GPLUSPLUS) |
4829
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
1179 /* #if !defined (INLINE_HEADERS_ARE_STATIC) */ |
4952
19a72041c5ed
Mule-izing, various fixes related to char * arguments
Ben Wing <ben@xemacs.org>
parents:
4932
diff
changeset
|
1180 #define XEMACS_DEFS_NEEDS_INLINE_DECLS |
4829
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
1181 #endif |
9987da5935bd
try to fix problems with link errors involving inlined functions
Ben Wing <ben@xemacs.org>
parents:
4790
diff
changeset
|
1182 |
5222
18c0b5909d16
Use keywords in structure syntax; new #define, NEED_TO_HANDLE_21_4_CODE 1
Aidan Kehoe <kehoea@parhasard.net>
parents:
5211
diff
changeset
|
1183 /* Do we need to be able to run code compiled by and written for 21.4? */ |
18c0b5909d16
Use keywords in structure syntax; new #define, NEED_TO_HANDLE_21_4_CODE 1
Aidan Kehoe <kehoea@parhasard.net>
parents:
5211
diff
changeset
|
1184 #define NEED_TO_HANDLE_21_4_CODE 1 |
18c0b5909d16
Use keywords in structure syntax; new #define, NEED_TO_HANDLE_21_4_CODE 1
Aidan Kehoe <kehoea@parhasard.net>
parents:
5211
diff
changeset
|
1185 |
428 | 1186 #endif /* _SRC_CONFIG_H_ */ |