root/trunk/nt/config.nt

Revision 4220, 13.6 kB (checked in by miyoshi, 5 months ago)

Sync up with Emacs22.2.

  • Property svn:eol-style set to native
Line 
1 /* GNU Emacs site configuration template file.  -*- C -*-
2    Copyright (C) 1988, 1993, 1994, 2001, 2002, 2003, 2004,
3       2005, 2006, 2007, 2008  Free Software Foundation, Inc.
4
5 This file is part of GNU Emacs.
6
7 GNU Emacs is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3, or (at your option)
10 any later version.
11
12 GNU Emacs is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 GNU General Public License for more details.
16
17 You should have received a copy of the GNU General Public License
18 along with GNU Emacs; see the file COPYING.  If not, write to the
19 Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
20 Boston, MA 02110-1301, USA.  */
21
22
23 /* No code in Emacs #includes config.h twice, but some of the code
24    intended to work with other packages as well (like gmalloc.c)
25    think they can include it as many times as they like.  */
26 #ifndef EMACS_CONFIG_H
27 #define EMACS_CONFIG_H
28
29 /* These are all defined in the top-level Makefile by configure.
30    They're here only for reference.  */
31
32 /* Define LISP_FLOAT_TYPE if you want emacs to support floating-point
33    numbers. */
34 #undef LISP_FLOAT_TYPE
35
36 /* Define GNU_MALLOC if you want to use the GNU memory allocator. */
37 #define GNU_MALLOC
38
39 /* Define if you are using the GNU C Library. */
40 #undef DOUG_LEA_MALLOC
41
42 /* Define REL_ALLOC if you want to use the relocating allocator for
43    buffer space. */
44 #define REL_ALLOC
45
46 /* Define this if you have mmap. */
47 #undef HAVE_MMAP
48
49 /* Meadow change: Disable conservative GC.  */
50 /* Enable conservative stack marking for GC.  */
51 #undef GC_MARK_STACK
52
53 /* MSVC ignores the "register" keyword, so test fails even though
54    setjmp does work.  */
55 #undef GC_SETJMP_WORKS
56
57 /* Define HAVE_X_WINDOWS if you want to use the X window system.  */
58 #undef HAVE_X_WINDOWS
59
60 /* Define HAVE_X11 if you want to use version 11 of X windows.
61    Otherwise, Emacs expects to use version 10.  */
62 #undef HAVE_X11
63
64 /* Define if using an X toolkit.  */
65 #undef USE_X_TOOLKIT
66
67 /* Define this if you're using XFree386.  */
68 #undef HAVE_XFREE386
69
70 /* Define this if you have Motif 2.1 or newer.  */
71 #undef HAVE_MOTIF_2_1
72
73 /* Define HAVE_MENUS if you have mouse menus.
74    (This is automatic if you use X, but the option to specify it remains.)
75    It is also defined with other window systems that support xmenu.c.  */
76 #undef HAVE_MENUS
77
78 /* Define if we have the X11R6 or newer version of Xt.  */
79 #undef HAVE_X11XTR6
80
81 /* Define if we have the X11R6 or newer version of Xlib.  */
82 #undef HAVE_X11R6
83
84 /* Define if we have the X11R5 or newer version of Xlib.  */
85 #undef HAVE_X11R5
86
87 /* Define if netdb.h declares h_errno.  */
88 #undef HAVE_H_ERRNO
89
90 /* If we're using any sort of window system, define some consequences.  */
91 #ifdef HAVE_X_WINDOWS
92 #define HAVE_WINDOW_SYSTEM
93 #define MULTI_KBOARD
94 #define HAVE_FACES
95 #define HAVE_MOUSE
96 #endif
97
98 #ifdef MEADOW
99 #define IME_CONTROL
100 #define IME_RECONVERSION
101 #define HAVE_MULTILINGUAL_MENU
102 #define NON_BLOCKING_CONNECT
103 #endif
104
105 #ifdef W32_VER4
106 #define W32_SCROLLBAR
107 #define W32_INTELLIMOUSE
108 #endif
109
110 /* Define USE_TEXT_PROPERTIES to support visual and other properties
111    on text. */
112 #define USE_TEXT_PROPERTIES
113
114 /* Define USER_FULL_NAME to return a string
115    that is the user's full name.
116    It can assume that the variable `pw'
117    points to the password file entry for this user.
118
119    At some sites, the pw_gecos field contains
120    the user's full name.  If neither this nor any other
121    field contains the right thing, use pw_name,
122    giving the user's login name, since that is better than nothing.  */
123 #define USER_FULL_NAME pw->pw_gecos
124
125 /* Define AMPERSAND_FULL_NAME if you use the convention
126    that & in the full name stands for the login id.  */
127 #undef AMPERSAND_FULL_NAME
128
129 /* Things set by --with options in the configure script.  */
130
131 /* Define to support POP mail retrieval.  */
132 #undef MAIL_USE_POP
133
134 /* Define to support Kerberos-authenticated POP mail retrieval.  */
135 #undef KERBEROS
136 /* Define to use Kerberos 5 instead of Kerberos 4 */
137 #undef KERBEROS5
138 /* Define to support GSS-API in addition to (or instead of) Kerberos */
139 #undef GSSAPI
140
141 /* Define to support using a Hesiod database to find the POP server.  */
142 #undef HESIOD
143
144 /* Some things figured out by the configure script, grouped as they are in
145    configure.in.  */
146 #ifndef _ALL_SOURCE  /* suppress warning if this is pre-defined */
147 #undef _ALL_SOURCE
148 #endif
149 #undef HAVE_SYS_SELECT_H
150 #undef HAVE_SYS_TIMEB_H
151 #undef HAVE_SYS_TIME_H
152 #undef HAVE_UNISTD_H
153 #undef HAVE_UTIME_H
154 #undef HAVE_LINUX_VERSION_H
155 #undef HAVE_SYS_SYSTEMINFO_H
156 #undef HAVE_TERMIOS_H
157 #undef HAVE_LIMITS_H
158 #undef HAVE_STRING_H
159 #undef HAVE_PWD_H
160 #undef STDC_HEADERS
161 #undef TIME_WITH_SYS_TIME
162
163 #undef HAVE_LIBDNET
164 #undef HAVE_LIBPTHREADS
165 #undef HAVE_LIBRESOLV
166 #undef HAVE_LIBXMU
167 #undef HAVE_LIBNCURSES
168 #undef HAVE_LIBINTL
169
170 /* movemail Kerberos support */
171 /* libraries */
172 #undef HAVE_LIBKRB
173 #undef HAVE_LIBKRB4
174 #undef HAVE_LIBDES
175 #undef HAVE_LIBDES425
176 #undef HAVE_LIBKRB5
177 #undef HAVE_LIBCRYPTO
178 #undef HAVE_LIBCOM_ERR
179 /* header files */
180 #undef HAVE_KRB5_H
181 #undef HAVE_DES_H
182 #undef HAVE_KRB_H
183 #undef HAVE_KERBEROSIV_DES_H
184 #undef HAVE_KERBEROSIV_KRB_H
185 #undef HAVE_KERBEROS_DES_H
186 #undef HAVE_KERBEROS_KRB_H
187 #undef HAVE_COM_ERR_H
188
189 /* GSS-API libraries and headers */
190 #undef HAVE_LIBGSSAPI_KRB5
191 #undef HAVE_LIBGSSAPI
192 #undef HAVE_GSSAPI_H
193
194 /* Mail-file locking */
195 #undef HAVE_LIBMAIL
196 #undef HAVE_MAILLOCK_H
197 #undef HAVE_TOUCHLOCK
198
199 #undef HAVE_ALLOCA_H
200
201 #undef HAVE_GETTIMEOFDAY
202 /* If we don't have gettimeofday,
203    the test for GETTIMEOFDAY_ONE_ARGUMENT may succeed,
204    but we should ignore it.  */
205 #ifdef HAVE_GETTIMEOFDAY
206 #undef GETTIMEOFDAY_ONE_ARGUMENT
207 #endif
208 #undef HAVE_GETHOSTNAME
209 #undef HAVE_GETDOMAINNAME
210 #undef HAVE_DUP2
211 #undef HAVE_RENAME
212 #undef HAVE_CLOSEDIR
213
214 #undef TM_IN_SYS_TIME
215 #undef HAVE_TM_ZONE
216 #undef HAVE_TZNAME
217
218 #undef const
219
220 #undef HAVE_LONG_FILE_NAMES
221
222 #undef CRAY_STACKSEG_END
223
224 #undef UNEXEC_SRC
225
226 #undef HAVE_LIBXBSD
227 #undef HAVE_XRMSETDATABASE
228 #undef HAVE_XSCREENRESOURCESTRING
229 #undef HAVE_XSCREENNUMBEROFSCREEN
230 #undef HAVE_XSETWMPROTOCOLS
231
232 #undef HAVE_MKDIR
233 #undef HAVE_RMDIR
234 #undef HAVE_SYSINFO
235 #undef HAVE_RANDOM
236 #undef HAVE_LRAND48
237 #undef HAVE_BCOPY
238 #undef HAVE_BCMP
239 #undef HAVE_LOGB
240 #undef HAVE_FREXP
241 #undef HAVE_FMOD
242 #undef HAVE_RINT
243 #undef HAVE_CBRT
244 #undef HAVE_FTIME
245 #undef HAVE_RES_INIT /* For -lresolv on Suns.  */
246 #undef HAVE_SETSID
247 #undef HAVE_FPATHCONF
248 #undef HAVE_SELECT
249 #undef HAVE_MKTIME
250 #undef HAVE_EUIDACCESS
251 #undef HAVE_GETPAGESIZE
252 #undef HAVE_GET_CURRENT_DIR_NAME
253 #undef HAVE_TZSET
254 #undef HAVE_SETLOCALE
255 #undef HAVE_UTIMES
256 #undef HAVE_SETRLIMIT
257 #undef HAVE_SETPGID
258 #undef HAVE_GETCWD
259 #undef HAVE_SHUTDOWN
260 #undef HAVE_STRFTIME
261 /* Standard Windows strftime does not support POSIX.2 extensions.  */
262 #define STRFTIME_NO_POSIX2 1
263
264 #define HAVE_SENDTO 1
265 #define HAVE_RECVFROM 1
266 #define HAVE_GETSOCKOPT 1
267 #define HAVE_SETSOCKOPT 1
268 #define HAVE_GETSOCKNAME 1
269 #define HAVE_GETPEERNAME 1
270 #define HAVE_LANGINFO_CODESET 1
271 /* Local (unix) sockets are not supported.  */
272 #undef HAVE_SYS_UN_H
273
274 #define LOCALTIME_CACHE
275 #undef HAVE_INET_SOCKETS
276
277 #undef HAVE_AIX_SMT_EXP
278
279 /* Define if you have the ANSI `strerror' function.
280    Otherwise you must have the variable `char *sys_errlist[]'.  */
281 #undef HAVE_STRERROR
282
283 /* Define if `sys_siglist' is declared by <signal.h>.  */
284 #undef SYS_SIGLIST_DECLARED
285
286 /* Define if `struct utimbuf' is declared by <utime.h>.  */
287 #undef HAVE_STRUCT_UTIMBUF
288
289 /* Define if `struct timeval' is declared by <sys/time.h>.  */
290 #undef HAVE_TIMEVAL
291
292 /* Define to 1 if you have the <getopt.h> header file. */
293 #undef HAVE_GETOPT_H
294
295 /* Define to 1 if you have the `getopt_long_only' function. */
296 #undef HAVE_GETOPT_LONG_ONLY
297
298 /* If using GNU, then support inline function declarations. */
299 #ifdef __GNUC__
300 #define INLINE __inline__
301 #else
302 #define INLINE
303 #endif
304
305 #undef EMACS_CONFIGURATION
306
307 #undef EMACS_CONFIG_OPTIONS
308
309 /* The configuration script defines opsysfile to be the name of the
310    s/SYSTEM.h file that describes the system type you are using.  The file
311    is chosen based on the configuration name you give.
312
313    See the file ../etc/MACHINES for a list of systems and the
314    configuration names to use for them.
315
316    See s/template.h for documentation on writing s/SYSTEM.h files.  */
317 #undef config_opsysfile
318 #include "s/ms-w32.h"
319
320 /* The configuration script defines machfile to be the name of the
321    m/MACHINE.h file that describes the machine you are using.  The file is
322    chosen based on the configuration name you give.
323
324    See the file ../etc/MACHINES for a list of machines and the
325    configuration names to use for them.
326
327    See m/template.h for documentation on writing m/MACHINE.h files.  */
328 #undef config_machfile
329 #include "m/intel386.h"
330
331 /* Load in the conversion definitions if this system
332    needs them and the source file being compiled has not
333    said to inhibit this.  There should be no need for you
334    to alter these lines.  */
335
336 #ifdef SHORTNAMES
337 #ifndef NO_SHORTNAMES
338 #include "../shortnames/remap.h"
339 #endif /* not NO_SHORTNAMES */
340 #endif /* SHORTNAMES */
341
342 /* If no remapping takes place, static variables cannot be dumped as
343    pure, so don't worry about the `static' keyword. */
344 #ifdef NO_REMAP
345 #undef static
346 #endif
347
348 /* Define `subprocesses' should be defined if you want to
349    have code for asynchronous subprocesses
350    (as used in M-x compile and M-x shell).
351    These do not work for some USG systems yet;
352    for the ones where they work, the s/SYSTEM.h file defines this flag.  */
353
354 #ifndef VMS
355 #ifndef USG
356 /* #define subprocesses */
357 #endif
358 #endif
359
360 /* Define LD_SWITCH_SITE to contain any special flags your loader may need.  */
361 #undef LD_SWITCH_SITE
362
363 /* Define C_SWITCH_SITE to contain any special flags your compiler needs.  */
364 #undef C_SWITCH_SITE
365
366 /* Define LD_SWITCH_X_SITE to contain any special flags your loader
367    may need to deal with X Windows.  For instance, if you've defined
368    HAVE_X_WINDOWS above and your X libraries aren't in a place that
369    your loader can find on its own, you might want to add "-L/..." or
370    something similar.  */
371 #undef LD_SWITCH_X_SITE
372
373 /* Define LD_SWITCH_X_SITE_AUX with an -R option
374    in case it's needed (for Solaris, for example).  */
375 #undef LD_SWITCH_X_SITE_AUX
376
377 /* Define C_SWITCH_X_SITE to contain any special flags your compiler
378    may need to deal with X Windows.  For instance, if you've defined
379    HAVE_X_WINDOWS above and your X include files aren't in a place
380    that your compiler can find on its own, you might want to add
381    "-I/..." or something similar.  */
382 #undef C_SWITCH_X_SITE
383
384 /* Define STACK_DIRECTION here, but not if m/foo.h did.  */
385 #ifndef STACK_DIRECTION
386 #undef STACK_DIRECTION
387 #endif
388
389 /* Define the return type of signal handlers if the s-xxx file
390    did not already do so.  */
391 #define RETSIGTYPE void
392
393 /* SIGTYPE is the macro we actually use.  */
394 #ifndef SIGTYPE
395 #define SIGTYPE RETSIGTYPE
396 #endif
397
398 #ifdef emacs /* Don't do this for lib-src.  */
399 /* Tell regex.c to use a type compatible with Emacs.  */
400 #define RE_TRANSLATE_TYPE Lisp_Object
401 #define RE_TRANSLATE(TBL, C) CHAR_TABLE_TRANSLATE (TBL, C)
402 #define RE_TRANSLATE_P(TBL) (XFASTINT (TBL) != 0)
403 #endif
404
405 /* Avoid link-time collision with system mktime if we will use our own.  */
406 #if ! HAVE_MKTIME || BROKEN_MKTIME
407 #define mktime emacs_mktime
408 #endif
409
410 #define my_strftime nstrftime   /* for strftime.c */
411
412 /* The rest of the code currently tests the CPP symbol BSTRING.
413    Override any claims made by the system-description files.
414    Note that on some SCO version it is possible to have bcopy and not bcmp.  */
415 #undef BSTRING
416 #if defined (HAVE_BCOPY) && defined (HAVE_BCMP)
417 #define BSTRING
418 #endif
419
420 /* Non-ANSI C compilers usually don't have volatile.  */
421 #ifndef HAVE_VOLATILE
422 #ifndef __STDC__
423 #define volatile
424 #endif
425 #endif
426
427 #ifndef WINDOWSNT
428 /* Some of the files of Emacs which are intended for use with other
429    programs assume that if you have a config.h file, you must declare
430    the type of getenv.
431
432    This declaration shouldn't appear when alloca.s or Makefile.in
433    includes config.h.  */
434 #ifndef NOT_C_CODE
435 extern char *getenv ();
436 #endif
437 #endif
438
439 #endif /* EMACS_CONFIG_H */
440
441 /* These default definitions are good for almost all machines.
442    The exceptions override them in m/MACHINE.h.  */
443
444 #ifndef BITS_PER_CHAR
445 #define BITS_PER_CHAR 8
446 #endif
447
448 #ifndef BITS_PER_SHORT
449 #define BITS_PER_SHORT 16
450 #endif
451
452 /* Note that lisp.h uses this in a preprocessor conditional, so it
453    would not work to use sizeof.  That being so, we do all of them
454    without sizeof, for uniformity's sake.  */
455 #ifndef BITS_PER_INT
456 #define BITS_PER_INT 32
457 #endif
458
459 #ifndef BITS_PER_LONG
460 #define BITS_PER_LONG 32
461 #endif
462
463 #ifndef POINTER_TYPE
464 #define POINTER_TYPE void
465 #endif
466
467 #ifndef PTR
468 #define PTR POINTER_TYPE *
469 #endif
470
471 #ifndef PROTOTYPES
472 #define PROTOTYPES 1
473 #endif
474
475 #ifndef __P
476 #if defined PROTOTYPES
477 #define __P(args) args
478 #else
479 #define __P(args) ()
480 #endif
481 #endif
482
483 /* Don't include <string.h> during configure.  */
484 #ifndef NOT_C_CODE
485 #ifdef HAVE_STRING_H
486 #include "string.h"
487 #endif
488 #endif
489
490 #ifndef NO_RETURN
491 #if defined __GNUC__ && (__GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR >= 5))
492 #define NO_RETURN       __attribute__ ((__noreturn__))
493 #else
494 #define NO_RETURN       /* nothing */
495 #endif
496 #endif
497
498 /* alias for non-ANSI function */
499 #if defined(WINDOWSNT) && (_MSC_VER >= 1200)
500 #ifndef chdir
501 #define chdir _chdir
502 #endif
503 #ifndef getcwd
504 #define getcwd _getcwd
505 #endif
506 #ifndef setmode
507 #define setmode _setmode
508 #endif
509 #ifndef stat
510 #define stat _stat
511 #endif
512 #ifndef fstat
513 #define fstat _fstat
514 #endif
515 #ifndef putenv
516 #define putenv _putenv
517 #endif
518 #ifndef memicmp
519 #define memicmp _memicmp
520 #endif
521 #ifndef stricmp
522 #define stricmp _stricmp
523 #endif
524 #ifndef strdup
525 #define strdup _strdup
526 #endif
527 #endif /* not __STDC__ */
528
529 #define HAVE_PWD_H 1
530
531 /* arch-tag: df720992-aa5a-499a-882d-958dc5eeb5e9
532    (do not change this comment) */
Note: See TracBrowser for help on using the browser.