In Makefile.in, use a make variable rather than a shell variable.
[emacs.git] / admin / CPP-DEFINES
blob661cde9c43ec72cab795c5c99569f24e701b7aa7
1 Here are some of the cpp macros used, together with some short explanation
2 of their use.  Feel free to add more macros and more categories.
3 Most of these are from config.in, so it's probably better to put the
4 explanations in that file.  Ideally, everything would be defined and
5 documented in config.in, and this file would not be necessary.
8 ** Distinguishing OSes **
10 AIX
11 _AIX
12 BSD4_2
13 BSD_SYSTEM
14 CYGWIN          Compiling the Cygwin port.
15 __CYGWIN__      Ditto
16 GNU_LINUX
17 HPUX
18 IRIX6_5
19 MSDOS           Compiling the MS-DOS port.
20 __MSDOS__       Ditto.
21 __DJGPP_MINOR__ Minor version number of the DJGPP library; used only in msdos.c and dosfns.c.
22 DOS_NT          Compiling for either the MS-DOS or native MS-Windows port.
23 WINDOWSNT       Compiling the native MS-Windows (W32) port.
24 __MINGW32__     Compiling the W32 port with the MinGW port of GCC.
25 _MSC_VER        Compiling the W32 port with the Microsoft C compiler.
26 DARWIN_OS       Compiling on Mac OS X or pure Darwin (and using s/darwin.h).
27 SOLARIS2
28 USG
29 USG5
30 USG5_4
32 ** Distinguishing GUIs **
34 HAVE_NTGUI      Use the native W32 GUI for windows, frames, menus&scrollbars.
35 HAVE_NS         Use the NeXT/OpenStep/Cocoa UI under Mac OS X or GNUstep.
36 NS_IMPL_GNUSTEP Compile support for GNUstep implementation of NS GUI API.
37 NS_IMPL_COCOA   Compile support for Cocoa (Apple) implementation of NS GUI API.
38 HAVE_X11        Compile support for the X11 GUI.
39 HAVE_X_WINDOWS  Compile support for X Window system
40   (It looks like, nowadays, if HAVE_X11 is set, HAVE_X_WINDOWS must
41    be, and vice versa.  At least, this is true for configure, and
42    msdos; not sure about nt.)
43 HAVE_X11R6
44 HAVE_X11R6_XIM
45 HAVE_X11XTR6
46 USE_LUCID       Use the Lucid toolkit for menus&scrollbars.  Requires HAVE_X11.
47 USE_MOTIF       Use the Motif toolkit for menus&scrollbars.  Requires HAVE_X11.
48 USE_GTK         Use the Gtk   toolkit for menus&scrollbars.  Requires HAVE_X11.
50 ** Frame types **
52 FRAME_TERMCAP_P A tty (character terminal) frame.
53 FRAME_X_P       A frame on X Window system.
54 FRAME_MSDOS_P   An MS-DOS frame (used only by the DOS port).
55 FRAME_W32_P     A frame using native MS-Windows GUI.
56 FRAME_WINDOW_P  A GUI frame (like X, w32, etc.)
58 ** Support for accessing other processes on the system **
60 HAVE_PROCFS     The /proc filesystem is supported.
62 ** Compile-time options **
64 REL_ALLOC       Compile in the relocatable memory allocator ralloc.c.
65 SYSTEM_MALLOC   Use the system library's malloc.
66 subprocesses    System can use subprocesses (for M-x shell for example).
67                 Defined by default, only MSDOS undefines it.
68 DEBUG_LISP_OBJECT_TYPE Define it in lisp.h enable compile time checks
69                        on Lisp_Object use.
71 ** System specific macros
72 FIRST_PTY_LETTER
73 HAVE_PTYS
74 INTERRUPT_INPUT
75 NARROWPROTO
76 SEPCHAR
77 SYSTEM_TYPE
79 ** Misc macros
80 USER_FULL_NAME   If defined, overrides the default pw->pw_gecos for
81 getting at the full user name.  Only MSDOS overrides the default.
83 ** Miscellaneous defines.  Some of these might not be used in the code
84 anymore, so they can be removed.
86 AMPERSAND_FULL_NAME
87 BROKEN_DATAGRAM_SOCKETS
88 BROKEN_FIONREAD
89 BROKEN_GETWD
90 BROKEN_GET_CURRENT_DIR_NAME
91 BROKEN_NON_BLOCKING_CONNECT
92 BROKEN_PTY_READ_AFTER_EAGAIN
93 CLASH_DETECTION
94 DATA_SEG_BITS
95 DATA_START
96 DEFAULT_SOUND_DEVICE
97 DEVICE_SEP
98 DIRECTORY_SEP
99 DONT_REOPEN_PTY
100 DOUG_LEA_MALLOC
101 EMACS_CONFIGURATION
102 EMACS_CONFIG_OPTIONS
103 EMACS_INT
104 EMACS_UINT
105 GC_MARK_SECONDARY_STACK
106 GC_MARK_STACK
107 GC_SETJMP_WORKS
108 GNU_MALLOC
109 HAVE_AIX_SMT_EXP
110 HAVE_ALARM
111 HAVE_ALLOCA
112 HAVE_ALLOCA_H
113 HAVE_ALSA
114 HAVE_ATTRIBUTE_ALIGNED
115 HAVE_BDFFONT
116 HAVE_BOXES
117 HAVE_C99_STRTOLD
118 HAVE_CFMAKERAW
119 HAVE_CFSETSPEED
120 HAVE_CLOCK_GETTIME
121 HAVE_CLOCK_SETTIME
122 HAVE_CLOSEDIR
123 HAVE_COFF_H
124 HAVE_COM_ERR_H
125 HAVE_COPYSIGN
126 HAVE_DBUS
127 HAVE_DBUS_TYPE_IS_VALID
128 HAVE_DBUS_VALIDATE_BUS_NAME
129 HAVE_DBUS_VALIDATE_INTERFACE
130 HAVE_DBUS_VALIDATE_MEMBER
131 HAVE_DBUS_VALIDATE_PATH
132 HAVE_DBUS_WATCH_GET_UNIX_FD
133 HAVE_DECL_GETENV
134 HAVE_DECL_LOCALTIME_R
135 HAVE_DECL_STRMODE
136 HAVE_DECL_STRTOIMAX
137 HAVE_DECL_STRTOLL
138 HAVE_DECL_STRTOULL
139 HAVE_DECL_STRTOUMAX
140 HAVE_DECL_SYS_SIGLIST
141 HAVE_DECL_TZNAME
142 HAVE_DECL___SYS_SIGLIST
143 HAVE_DES_H
144 HAVE_DEV_PTMX
145 HAVE_DIALOGS
146 HAVE_DIFFTIME
147 HAVE_DIRENT_H
148 HAVE_DUP2
149 HAVE_ENDGRENT
150 HAVE_ENDPWENT
151 HAVE_ENVIRON_DECL
152 HAVE_EUIDACCESS
153 HAVE_FCNTL_H
154 HAVE_FORK
155 HAVE_FPATHCONF
156 HAVE_FREEIFADDRS
157 HAVE_FREETYPE
158 HAVE_FSEEKO
159 HAVE_FSYNC
160 HAVE_FUTIMENS
161 HAVE_FUTIMES
162 HAVE_FUTIMESAT
163 HAVE_GAI_STRERROR
164 HAVE_GCONF
165 HAVE_GETADDRINFO
166 HAVE_GETCWD
167 HAVE_GETDELIM
168 HAVE_GETGRENT
169 HAVE_GETHOSTNAME
170 HAVE_GETIFADDRS
171 HAVE_GETLINE
172 HAVE_GETLOADAVG
173 HAVE_GETOPT_H
174 HAVE_GETOPT_LONG_ONLY
175 HAVE_GETPAGESIZE
176 HAVE_GETPEERNAME
177 HAVE_GETPT
178 HAVE_GETPWENT
179 HAVE_GETRLIMIT
180 HAVE_GETRUSAGE
181 HAVE_GETSOCKNAME
182 HAVE_GETTIMEOFDAY
183 HAVE_GETWD
184 HAVE_GET_CURRENT_DIR_NAME
185 HAVE_GHOSTSCRIPT
186 HAVE_GIF
187 HAVE_GNUTLS
188 HAVE_GNUTLS_CALLBACK_CERTIFICATE_VERIFY
189 HAVE_GNUTLS_CERTIFICATE_SET_VERIFY_FUNCTION
190 HAVE_GPM
191 HAVE_GRANTPT
192 HAVE_GSETTINGS
193 HAVE_GTK3
194 HAVE_GTK_ADJUSTMENT_GET_PAGE_SIZE
195 HAVE_GTK_DIALOG_GET_ACTION_AREA
196 HAVE_GTK_FILE_SELECTION_NEW
197 HAVE_GTK_MAIN
198 HAVE_GTK_MULTIDISPLAY
199 HAVE_GTK_ORIENTABLE_SET_ORIENTATION
200 HAVE_GTK_WIDGET_GET_MAPPED
201 HAVE_GTK_WIDGET_GET_SENSITIVE
202 HAVE_GTK_WIDGET_GET_WINDOW
203 HAVE_GTK_WIDGET_SET_HAS_WINDOW
204 HAVE_GTK_WINDOW_SET_HAS_RESIZE_GRIP
205 HAVE_G_TYPE_INIT
206 HAVE_H_ERRNO
207 HAVE_IFADDRS_H
208 HAVE_IMAGEMAGICK
209 HAVE_INET_SOCKETS
210 HAVE_INTTYPES_H
211 HAVE_JPEG
212 HAVE_KERBEROSIV_DES_H
213 HAVE_KERBEROSIV_KRB_H
214 HAVE_KERBEROS_DES_H
215 HAVE_KERBEROS_KRB_H
216 HAVE_KRB5_ERROR_E_TEXT
217 HAVE_KRB5_ERROR_TEXT
218 HAVE_KRB5_H
219 HAVE_KRB_H
220 HAVE_LANGINFO_CODESET
221 HAVE_LIBCOM_ERR
222 HAVE_LIBCRYPTO
223 HAVE_LIBDES
224 HAVE_LIBDES425
225 HAVE_LIBDGC
226 HAVE_LIBDNET
227 HAVE_LIBHESIOD
228 HAVE_LIBK5CRYPTO
229 HAVE_LIBKRB
230 HAVE_LIBKRB4
231 HAVE_LIBKRB5
232 HAVE_LIBKSTAT
233 HAVE_LIBLOCKFILE
234 HAVE_LIBM
235 HAVE_LIBMAIL
236 HAVE_LIBOTF
237 HAVE_LIBPERFSTAT
238 HAVE_LIBPNG_PNG_H
239 HAVE_LIBPTHREADS
240 HAVE_LIBRESOLV
241 HAVE_LIBSELINUX
242 HAVE_LIBXEXT
243 HAVE_LIBXML2
244 HAVE_LIBXMU
245 HAVE_LINUX_VERSION_H
246 HAVE_LOCALTIME_R
247 HAVE_LOCAL_SOCKETS
248 HAVE_LONG_FILE_NAMES
249 HAVE_LONG_LONG_INT
250 HAVE_LRAND48
251 HAVE_LSTAT
252 HAVE_LUTIMES
253 HAVE_M17N_FLT
254 HAVE_MACHINE_SOUNDCARD_H
255 HAVE_MACH_MACH_H
256 HAVE_MAGICKEXPORTIMAGEPIXELS
257 HAVE_MAGICKMERGEIMAGELAYERS
258 HAVE_MAILLOCK_H
259 HAVE_MALLOC_MALLOC_H
260 HAVE_MATHERR
261 HAVE_MBSTATE_T
262 HAVE_MEMCMP
263 HAVE_MEMMOVE
264 HAVE_MEMORY_H
265 HAVE_MEMSET
266 HAVE_MENUS
267 HAVE_MKSTEMP
268 HAVE_MMAP
269 HAVE_MOUSE
270 HAVE_MULTILINGUAL_MENU
271 HAVE_NANOTIME
272 HAVE_NET_IF_DL_H
273 HAVE_NET_IF_H
274 HAVE_NLIST_H
275 HAVE_OTF_GET_VARIATION_GLYPHS
276 HAVE_PERSONALITY_LINUX32
277 HAVE_PNG
278 HAVE_PNG_H
279 HAVE_POSIX_MEMALIGN
280 HAVE_PROCFS
281 HAVE_PSELECT
282 HAVE_PSTAT_GETDYNAMIC
283 HAVE_PTHREAD
284 HAVE_PTHREAD_H
285 HAVE_PTHREAD_SIGMASK
286 HAVE_PTYS
287 HAVE_PTY_H
288 HAVE_PWD_H
289 HAVE_RANDOM
290 HAVE_READLINK
291 HAVE_READLINKAT
292 HAVE_RECVFROM
293 HAVE_RES_INIT
294 HAVE_RINT
295 HAVE_RSVG
296 HAVE_SELECT
297 HAVE_SENDTO
298 HAVE_SEQPACKET
299 HAVE_SETITIMER
300 HAVE_SETLOCALE
301 HAVE_SETPGID
302 HAVE_SETRLIMIT
303 HAVE_SETSID
304 HAVE_SHARED_GAME_DIR
305 HAVE_SHUTDOWN
306 HAVE_SIGNED_${GLTYPE}
307 HAVE_SIGNED_SIG_ATOMIC_T
308 HAVE_SIGNED_WCHAR_T
309 HAVE_SIGNED_WINT_T
310 HAVE_SIGSET_T
311 HAVE_SIZE_T
312 HAVE_SNPRINTF
313 HAVE_SOCKETS
314 HAVE_SOUND
315 HAVE_SOUNDCARD_H
316 HAVE_SPEED_T
317 HAVE_STDINT_H
318 HAVE_STDIO_EXT_H
319 HAVE_STDLIB_H
320 HAVE_STLIB_H_1
321 HAVE_STRINGS_H
322 HAVE_STRING_H
323 HAVE_STRNCASECMP
324 HAVE_STRSIGNAL
325 HAVE_STRTOIMAX
326 HAVE_STRTOLL
327 HAVE_STRTOULL
328 HAVE_STRTOUMAX
329 HAVE_STRUCT_ERA_ENTRY
330 HAVE_STRUCT_IFREQ_IFR_ADDR
331 HAVE_STRUCT_IFREQ_IFR_ADDR_SA_LEN
332 HAVE_STRUCT_IFREQ_IFR_BROADADDR
333 HAVE_STRUCT_IFREQ_IFR_FLAGS
334 HAVE_STRUCT_IFREQ_IFR_HWADDR
335 HAVE_STRUCT_IFREQ_IFR_NETMASK
336 HAVE_STRUCT_NLIST_N_UN_N_NAME
337 HAVE_STRUCT_STAT_ST_ATIMENSEC
338 HAVE_STRUCT_STAT_ST_ATIMESPEC_TV_NSEC
339 HAVE_STRUCT_STAT_ST_ATIM_ST__TIM_TV_NSEC
340 HAVE_STRUCT_STAT_ST_ATIM_TV_NSEC
341 HAVE_STRUCT_STAT_ST_BIRTHTIMENSEC
342 HAVE_STRUCT_STAT_ST_BIRTHTIMESPEC_TV_NSEC
343 HAVE_STRUCT_STAT_ST_BIRTHTIM_TV_NSEC
344 HAVE_STRUCT_TIMEZONE
345 HAVE_STRUCT_TM_TM_ZONE
346 HAVE_STRUCT_UTIMBUF
347 HAVE_ST_DM_MODE
348 HAVE_SYMLINK
349 HAVE_SYNC
350 HAVE_SYS_BITYPES_H
351 HAVE_SYS_INTTYPES_H
352 HAVE_SYS_LOADAVG_H
353 HAVE_SYS_PARAM_H
354 HAVE_SYS_RESOURCE_H
355 HAVE_SYS_SELECT_H
356 HAVE_SYS_SOCKET_H
357 HAVE_SYS_SOUNDCARD_H
358 HAVE_SYS_STAT_H
359 HAVE_SYS_SYSTEMINFO_H
360 HAVE_SYS_TIMEB_H
361 HAVE_SYS_TIME_H
362 HAVE_SYS_TYPES_H
363 HAVE_SYS_UN_H
364 HAVE_SYS_UTSNAME_H
365 HAVE_SYS_VLIMIT_H
366 HAVE_SYS_WAIT_H
367 HAVE_TCATTR
368 HAVE_TERM_H
369 HAVE_TIFF
370 HAVE_TIMEVAL
371 HAVE_TM_GMTOFF
372 HAVE_TM_ZONE
373 HAVE_TOUCHLOCK
374 HAVE_TZNAME
375 HAVE_TZSET
376 HAVE_UNISTD_H
377 HAVE_UNSIGNED_LONG_LONG_INT
378 HAVE_UTIL_H
379 HAVE_UTIMENSAT
380 HAVE_UTIMES
381 HAVE_UTIME_H
382 HAVE_UTMP_H
383 HAVE_VFORK
384 HAVE_VFORK_H
385 HAVE_WCHAR_H
386 HAVE_WCHAR_T
387 HAVE_WINDOW_SYSTEM
388 HAVE_WINSOCK2_H
389 HAVE_WORKING_FORK
390 HAVE_WORKING_UTIMES
391 HAVE_WORKING_VFORK
392 HAVE_WS2TCPIP_H
393 HAVE_XAW3D
394 HAVE_XFT
395 HAVE_XIM
396 HAVE_XKBGETKEYBOARD
397 HAVE_XPM
398 HAVE_XRMSETDATABASE
399 HAVE_XSCREENNUMBEROFSCREEN
400 HAVE_XSCREENRESOURCESTRING
401 HAVE_X_I18N
402 HAVE_X_MENU
403 HAVE_X_SM
404 HAVE_X_WINDOWS
405 HAVE__BOOL
406 HAVE__FTIME
407 HAVE___BUILTIN_UNWIND_INIT
408 HAVE___EXECUTABLE_START
409 HAVE___FPENDING
410 INTERNAL_TERMINAL
411 IS_ANY_SEP
412 IS_DIRECTORY_SEP
413 LOCALTIME_CACHE
414 MAIL_USE_FLOCK
415 MAIL_USE_LOCKF
416 MAIL_USE_POP
417 MAIL_USE_SYSTEM_LOCK
418 MAXPATHLEN
419 NLIST_STRUCT
420 NO_EDITRES
421 NSIG
422 NSIG_MINIMUM
423 NULL_DEVICE
424 ORDINARY_LINK
425 O_RDONLY
426 O_RDWR
427 PAGESIZE
428 PENDING_OUTPUT_COUNT
429 PREFER_VSUSP
430 PTY_ITERATION
431 PTY_NAME_SPRINTF
432 PTY_OPEN
433 PTY_TTY_NAME_SPRINTF
434 PURESIZE
435 RUN_TIME_REMAP
436 SETPGRP_RELEASES_CTTY
437 SETUP_SLAVE_PTY
438 SIGALRM
439 SIGCHLD
440 SIGHUP
441 SIGKILL
442 SIGNALS_VIA_CHARACTERS
443 SIGPIPE
444 SIGQUIT
445 SIGTRAP
446 STDC_HEADERS
447 SYSTEM_PURESIZE_EXTRA
448 SYSTEM_MALLOC
449 TAB3
450 TABDLY
451 TERM
452 TIME_WITH_SYS_TIME
453 TIOCSIGSEND
454 TM_IN_SYS_TIME
455 ULIMIT_BREAK_VALUE
456 UNIX98_PTYS
457 USE_TOOLKIT_SCROLL_BARS
458 USG_SUBTTY_WORKS
459 VALBITS
460 XOS_NEEDS_TIME_H
461 _FILE_OFFSET_BITS
462 _LP64
463 _longjmp
464 _setjmp
465 abort
466 alloca
467 close
468 emacs
469 free
470 gmtime
471 localtime
472 malloc
473 random
474 read
475 realloc
476 select
477 umask
478 vfork
481 src/sysdep.c:
482 write
484 src/syssignal.h:
485 signal
486 sigmask
487 sigsetmask
490 lib/dup2.c:
491 dup2
493 lib/signal.h:
494 signal
496 lib/stdio.h:
497 fdopen
498 fopen
499 fwrite
500 popen
501 rename
503 lib/stdlib.h:
504 calloc
505 srandom     (conf_post.h may undo)
507 lib/strftime.c:
508 tzname
509 tzset
511 lib/sys/stat.h:
512 mkdir
514 lib/unistd.h:
515 chown
517 dup2
518 ftruncate
519 isatty
520 link
521 lseek
522 pipe
523 rmdir
524 sleep
525 unlink
528 MS DOS stuff:
530 _NAIVE_DOS_REGS
533 MS stuff:
535 USE_CRT_DLL
537 ms-w32.h:
538 DebPrint
539 EMACSDEBUG
540 MUST_UNDEF__STDC__
542 _VARARGS_
543 _WINSOCKAPI_
544 _WINSOCK_H
546 access
547 calloc
548 chdir
549 chmod
550 chown
551 creat
552 ctime
554 dup2
555 execlp
556 execvp  (also emacsclient.c [WINDOWSNT])
557 fdopen
558 fileno
559 fopen
560 fsync
561 ftruncate
562 getdefdir
563 getdisk
564 getpid
565 isatty
566 kill
567 link
568 lseek
569 mkdir
570 mktemp
571 open
572 pclose
573 pipe
574 popen
575 rename
576 rmdir
577 signal
578 sleep
579 spawnve
580 strdup
581 stricmp
582 strnicmp
583 strupr
584 sys_nerr
585 tzname
586 tzset
587 umask
588 unlink
589 utimbuf
590 utime
591 wait  (also movemail.c [WINDOWSNT])
592 write
594 lib-src/ntlib:
595 access
596 chdir
597 chmod
598 creat
600 dup2
601 execlp
602 execvp
603 fdopen
604 fileno
605 fopen
606 getpid
607 index
608 isatty
609 lseek
610 mkdir
611 mktemp
612 open
613 pclose
614 pipe
615 popen
616 rmdir
617 rindex
618 sleep
619 umask
620 unlink
621 utime