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