0
|
1 /* Definition of PURESIZE.
|
|
2 Copyright (C) 1986, 1988, 1992, 1993, 1994 Free Software Foundation, Inc.
|
|
3 Copyright (C) 1995, 1996 Ben Wing.
|
|
4
|
|
5 This file is part of XEmacs.
|
|
6
|
|
7 XEmacs is free software; you can redistribute it and/or modify it
|
|
8 under the terms of the GNU General Public License as published by the
|
|
9 Free Software Foundation; either version 2, or (at your option) any
|
|
10 later version.
|
|
11
|
|
12 XEmacs is distributed in the hope that it will be useful, but WITHOUT
|
|
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
|
|
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
|
|
15 for more details.
|
|
16
|
|
17 You should have received a copy of the GNU General Public License
|
|
18 along with XEmacs; see the file COPYING. If not, write to
|
|
19 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
20 Boston, MA 02111-1307, USA. */
|
|
21
|
|
22 /* Synched up with: Not in FSF. */
|
|
23
|
|
24 #ifndef PURESIZE_H
|
|
25 #define PURESIZE_H
|
|
26
|
104
|
27 /* If RAW_PURESIZE is already defined then the user overrode it at
|
0
|
28 configure time. */
|
104
|
29 #ifndef RAW_PURESIZE
|
28
|
30
|
0
|
31 /* Basic amount of purespace to use, in the absence of extra
|
|
32 things configured in. */
|
|
33
|
114
|
34
|
|
35 /* This computation is Barbra Streisand, BS
|
0
|
36 #if (LONGBITS == 64)
|
100
|
37 # define BASE_PURESIZE 938000
|
0
|
38 #else
|
98
|
39 # define BASE_PURESIZE 563000
|
114
|
40 #endif
|
|
41 */
|
|
42
|
|
43 #define BASE_PURESIZE 1400000
|
0
|
44
|
|
45 /* If any particular systems need to change the base puresize, they
|
|
46 should define SYSTEM_PURESIZE_EXTRA. Note that this can be
|
|
47 negative as well as positive.
|
|
48
|
|
49 Do NOT define PURESIZE or any other values. This allows the
|
|
50 other values to shift while still keeping things in sync. */
|
|
51
|
|
52 #ifndef SYSTEM_PURESIZE_EXTRA
|
|
53 # define SYSTEM_PURESIZE_EXTRA 0
|
|
54 #endif
|
|
55
|
|
56 /* Extra amount of purespace needed for menubars. */
|
|
57
|
104
|
58 #ifdef HAVE_DIALOGS
|
|
59 # if (LONGBITS == 64)
|
|
60 # define DIALOG_PURESIZE_EXTRA 43000
|
|
61 # else
|
|
62 # define DIALOG_PURESIZE_EXTRA 1800
|
|
63 # endif
|
|
64 #else
|
|
65 # define DIALOG_PURESIZE_EXTRA 0
|
|
66 #endif
|
|
67
|
0
|
68 #ifdef HAVE_MENUBARS
|
|
69 # if (LONGBITS == 64)
|
|
70 # define MENUBAR_PURESIZE_EXTRA 43000
|
|
71 # else
|
104
|
72 # define MENUBAR_PURESIZE_EXTRA 36000
|
0
|
73 # endif
|
|
74 #else
|
|
75 # define MENUBAR_PURESIZE_EXTRA 0
|
|
76 #endif
|
|
77
|
104
|
78 #ifdef HAVE_SCROLLBARS
|
|
79 # if (LONGBITS == 64)
|
|
80 # define SCROLLBAR_PURESIZE_EXTRA 4000
|
|
81 # else
|
|
82 # define SCROLLBAR_PURESIZE_EXTRA 1800
|
|
83 # endif
|
|
84 #else
|
|
85 # define SCROLLBAR_PURESIZE_EXTRA 0
|
|
86 #endif
|
0
|
87
|
104
|
88 #ifdef HAVE_TOOLBARS
|
|
89 # if (LONGBITS == 64)
|
|
90 # define TOOLBAR_PURESIZE_EXTRA 4000
|
|
91 # else
|
|
92 # define TOOLBAR_PURESIZE_EXTRA 8400
|
|
93 # endif
|
|
94 #else
|
|
95 # define TOOLBAR_PURESIZE_EXTRA 0
|
|
96 #endif
|
|
97
|
|
98 /* Extra amount of purespace needed for X11, separate from menubars
|
|
99 and scrollbars. */
|
0
|
100
|
|
101 #ifdef HAVE_X_WINDOWS
|
|
102 # if (LONGBITS == 64)
|
|
103 # define X11_PURESIZE_EXTRA 95000
|
|
104 # else
|
88
|
105 # define X11_PURESIZE_EXTRA 68000
|
0
|
106 # endif
|
|
107 #else
|
28
|
108 # define X11_PURESIZE_EXTRA 0
|
0
|
109 #endif
|
|
110
|
16
|
111 /* Extra amount of purespace needed for Mule. */
|
|
112
|
|
113 #ifdef MULE
|
88
|
114 #ifdef HAVE_CANNA
|
|
115 # define MULE_PURESIZE_CANNA 5000
|
|
116 #else
|
|
117 # define MULE_PURESIZE_CANNA 0
|
|
118 #endif
|
98
|
119 #ifdef HAVE_WNN
|
|
120 # define MULE_PURESIZE_WNN 5000
|
|
121 #else
|
|
122 # define MULE_PURESIZE_WNN 0
|
|
123 #endif
|
16
|
124 # if (LONGBITS == 64)
|
98
|
125 # define MULE_PURESIZE_EXTRA 99000+MULE_PURESIZE_CANNA+MULE_PURESIZE_WNN
|
16
|
126 # else
|
98
|
127 # define MULE_PURESIZE_EXTRA 78000+MULE_PURESIZE_CANNA+MULE_PURESIZE_WNN
|
16
|
128 # endif
|
|
129 #else
|
|
130 # define MULE_PURESIZE_EXTRA 0
|
|
131 #endif
|
|
132
|
0
|
133 /* Extra amount of purespace needed for Tooltalk. */
|
|
134
|
|
135 #ifdef TOOLTALK
|
|
136 # if (LONGBITS == 64)
|
|
137 # define TOOLTALK_PURESIZE_EXTRA 100000
|
|
138 # else
|
104
|
139 # define TOOLTALK_PURESIZE_EXTRA 8300
|
0
|
140 # endif
|
|
141 #else
|
|
142 # define TOOLTALK_PURESIZE_EXTRA 0
|
|
143 #endif
|
|
144
|
|
145 /* Extra amount of purespace needed for Energize builds. */
|
|
146
|
|
147 #ifdef ENERGIZE
|
|
148 # define ENERGIZE_PURESIZE_EXTRA 290000
|
|
149 #else
|
|
150 # define ENERGIZE_PURESIZE_EXTRA 0
|
|
151 #endif
|
|
152
|
|
153 /* Extra amount of purespace needed for Sunpro builds. */
|
|
154
|
|
155 #ifdef SUNPRO
|
100
|
156 #define SUNPRO_PURESIZE_EXTRA 95000
|
0
|
157 #else
|
|
158 # define SUNPRO_PURESIZE_EXTRA 0
|
|
159 #endif
|
|
160
|
104
|
161 #define RAW_PURESIZE ((BASE_PURESIZE) + \
|
|
162 (DIALOG_PURESIZE_EXTRA) + \
|
|
163 (MENUBAR_PURESIZE_EXTRA) + \
|
|
164 (SCROLLBAR_PURESIZE_EXTRA) + \
|
|
165 (TOOLBAR_PURESIZE_EXTRA) + \
|
|
166 (X11_PURESIZE_EXTRA) + \
|
|
167 (SYSTEM_PURESIZE_EXTRA) + \
|
|
168 (MULE_PURESIZE_EXTRA) + \
|
|
169 (TOOLTALK_PURESIZE_EXTRA) + \
|
|
170 (ENERGIZE_PURESIZE_EXTRA) + \
|
|
171 (SUNPRO_PURESIZE_EXTRA))
|
|
172
|
|
173 #endif /* !RAW_PURESIZE */
|
|
174
|
118
|
175 /* Current build process on NT does not generate a puresize_adjust.h */
|
|
176 /* file. --marcpa */
|
|
177 #ifdef WINDOWSNT
|
|
178 # define PURESIZE_ADJUSTMENT 1000000
|
|
179 #else
|
|
180 # include <puresize_adjust.h>
|
|
181 #endif
|
104
|
182 #define PURESIZE ((RAW_PURESIZE) + (PURESIZE_ADJUSTMENT))
|
102
|
183
|
0
|
184
|
|
185 #endif /* PURESIZE_H */
|