Commit | Line | Data |
---|---|---|
2454c12d JB |
1 | /* Template for system description header files. |
2 | This file describes the parameters that system description files | |
3 | should define or not. | |
9eff9fe3 | 4 | Copyright (C) 1985, 1986, 1992, 1999, 2005 Free Software Foundation, Inc. |
2454c12d JB |
5 | |
6 | This file is part of GNU Emacs. | |
7 | ||
8 | GNU Emacs is free software; you can redistribute it and/or modify | |
9 | it under the terms of the GNU General Public License as published by | |
10 | the Free Software Foundation; either version 2, or (at your option) | |
11 | any later version. | |
12 | ||
13 | GNU Emacs is distributed in the hope that it will be useful, | |
14 | but WITHOUT ANY WARRANTY; without even the implied warranty of | |
15 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
16 | GNU General Public License for more details. | |
17 | ||
18 | You should have received a copy of the GNU General Public License | |
19 | along with GNU Emacs; see the file COPYING. If not, write to | |
364c38d3 LK |
20 | the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, |
21 | Boston, MA 02110-1301, USA. */ | |
2454c12d JB |
22 | |
23 | /* SYSTEM_TYPE should indicate the kind of system you are using. | |
24 | It sets the Lisp variable system-type. */ | |
25 | ||
26 | #define SYSTEM_TYPE "cygwin" | |
27 | ||
28 | /* Emacs can read input using SIGIO and buffering characters itself, | |
29 | or using CBREAK mode and making C-g cause SIGINT. | |
30 | The choice is controlled by the variable interrupt_input. | |
31 | ||
32 | Define INTERRUPT_INPUT to make interrupt_input = 1 the default (use SIGIO) | |
33 | ||
34 | Emacs uses the presence or absence of the SIGIO and BROKEN_SIGIO macros | |
35 | to indicate whether or not signal-driven I/O is possible. It uses | |
36 | INTERRUPT_INPUT to decide whether to use it by default. | |
37 | ||
38 | SIGIO can be used only on systems that implement it (4.2 and 4.3). | |
39 | CBREAK mode has two disadvantages | |
40 | 1) At least in 4.2, it is impossible to handle the Meta key properly. | |
41 | I hear that in system V this problem does not exist. | |
42 | 2) Control-G causes output to be discarded. | |
43 | I do not know whether this can be fixed in system V. | |
44 | ||
45 | Another method of doing input is planned but not implemented. | |
46 | It would have Emacs fork off a separate process | |
47 | to read the input and send it to the true Emacs process | |
48 | through a pipe. */ | |
49 | ||
50 | #undef INTERRUPT_INPUT | |
51 | ||
52 | /* | |
53 | * Define HAVE_TERMIOS if the system provides POSIX-style | |
54 | * functions and macros for terminal control. | |
55 | * | |
56 | * Define HAVE_TERMIO if the system provides sysV-style ioctls | |
57 | * for terminal control. | |
58 | * | |
59 | * Do not define both. HAVE_TERMIOS is preferred, if it is | |
60 | * supported on your system. | |
61 | */ | |
62 | ||
63 | #define HAVE_TERMIOS | |
64 | ||
65 | /* | |
66 | * Define HAVE_PTYS if the system supports pty devices. | |
67 | */ | |
68 | ||
69 | #define HAVE_PTYS | |
70 | #define PTY_ITERATION for (i = 0; i < 1; i++) /* ick */ | |
71 | #define PTY_NAME_SPRINTF /* none */ | |
72 | #define PTY_TTY_NAME_SPRINTF /* none */ | |
73 | #define PTY_OPEN \ | |
74 | do \ | |
75 | { \ | |
76 | int dummy; \ | |
77 | SIGMASKTYPE mask; \ | |
78 | mask = sigblock (sigmask (SIGCHLD)); \ | |
79 | if (-1 == openpty (&fd, &dummy, pty_name, 0, 0)) \ | |
80 | fd = -1; \ | |
81 | sigsetmask (mask); \ | |
82 | emacs_close (dummy); \ | |
83 | } \ | |
84 | while (0) | |
85 | ||
86 | /* Define this symbol if your system has the functions bcopy, etc. */ | |
87 | ||
88 | #define BSTRING | |
89 | ||
90 | /* subprocesses should be defined if you want to | |
91 | have code for asynchronous subprocesses | |
92 | (as used in M-x compile and M-x shell). | |
93 | This is generally OS dependent, and not supported | |
94 | under most USG systems. */ | |
95 | ||
96 | #define subprocesses | |
97 | ||
98 | /* Define CLASH_DETECTION if you want lock files to be written | |
99 | so that Emacs can tell instantly when you try to modify | |
100 | a file that someone else has modified in his Emacs. */ | |
101 | ||
102 | #define CLASH_DETECTION | |
103 | ||
104 | /* If the system's imake configuration file defines `NeedWidePrototypes' | |
105 | as `NO', we must define NARROWPROTO manually. Such a define is | |
177c0ea7 | 106 | generated in the Makefile generated by `xmkmf'. If we don't |
2454c12d JB |
107 | define NARROWPROTO, we will see the wrong function prototypes |
108 | for X functions taking float or double parameters. */ | |
109 | ||
110 | #define NARROWPROTO 1 | |
111 | ||
112 | /* used in various places to enable cygwin-specific code changes */ | |
113 | #define CYGWIN 1 | |
114 | ||
115 | #define PENDING_OUTPUT_COUNT(FILE) ((FILE)->_p - (FILE)->_bf._base) | |
116 | #define GETPGRP_NO_ARG 1 | |
117 | #define SYSV_SYSTEM_DIR 1 | |
451f03a0 SM |
118 | #define LIB_STANDARD_LIBSRC |
119 | #define UNEXEC unexcw.o | |
2454c12d JB |
120 | #define POSIX_SIGNALS 1 |
121 | /* force the emacs image to start high in memory, so dll relocation | |
122 | can put things in low memory without causing all sorts of grief for | |
123 | emacs lisp pointers */ | |
124 | #define DATA_SEG_BITS 0x20000000 | |
125 | #define LINKER $(CC) -Wl,--image-base,DATA_SEG_BITS | |
2454c12d JB |
126 | |
127 | /* Use terminfo instead of termcap. Fewer environment variables to | |
128 | go wrong, more terminal types. */ | |
129 | #define TERMINFO | |
130 | ||
131 | #define HAVE_SOCKETS | |
132 | /* C-g aborts emacs without this */ | |
133 | /*#define HAVE_VFORK*/ | |
134 | /* Xaw3d causes problems -- might have been fixed by NARROWPROTO | |
135 | above, but I haven't tried it */ | |
451f03a0 | 136 | /*#undef HAVE_XAW3D*/ |
2454c12d JB |
137 | |
138 | /* vfork() interacts badly with setsid(), causing ptys to fail to | |
139 | change their controlling terminal */ | |
140 | #define vfork fork | |
141 | ||
142 | /* the end */ | |
ab5796a9 MB |
143 | |
144 | /* arch-tag: 5ae7ba00-83b0-4ab3-806a-3e845779191b | |
145 | (do not change this comment) */ |