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
|
28
|
27 /* If RAW_PURESIZE is already defined then the user overrode it at
|
0
|
28 configure time. */
|
28
|
29 #ifndef RAW_PURESIZE
|
|
30
|
0
|
31 /* Basic amount of purespace to use, in the absence of extra
|
|
32 things configured in. */
|
|
33
|
54
|
34 /* This computation is Barbra Streisand, BS
|
0
|
35 #if (LONGBITS == 64)
|
4
|
36 # define BASE_PURESIZE 944000
|
0
|
37 #else
|
28
|
38 # define BASE_PURESIZE 527000
|
0
|
39 #endif
|
54
|
40 */
|
|
41
|
|
42 #define BASE_PURESIZE 1400000
|
0
|
43
|
|
44 /* If any particular systems need to change the base puresize, they
|
|
45 should define SYSTEM_PURESIZE_EXTRA. Note that this can be
|
|
46 negative as well as positive.
|
|
47
|
|
48 Do NOT define PURESIZE or any other values. This allows the
|
|
49 other values to shift while still keeping things in sync. */
|
|
50
|
|
51 #ifndef SYSTEM_PURESIZE_EXTRA
|
|
52 # define SYSTEM_PURESIZE_EXTRA 0
|
|
53 #endif
|
|
54
|
|
55 /* Extra amount of purespace needed for menubars. */
|
|
56
|
28
|
57 #ifdef HAVE_DIALOGS
|
|
58 # if (LONGBITS == 64)
|
|
59 # define DIALOG_PURESIZE_EXTRA 43000
|
|
60 # else
|
|
61 # define DIALOG_PURESIZE_EXTRA 1800
|
|
62 # endif
|
|
63 #else
|
|
64 # define DIALOG_PURESIZE_EXTRA 0
|
|
65 #endif
|
|
66
|
0
|
67 #ifdef HAVE_MENUBARS
|
|
68 # if (LONGBITS == 64)
|
|
69 # define MENUBAR_PURESIZE_EXTRA 43000
|
|
70 # else
|
28
|
71 # define MENUBAR_PURESIZE_EXTRA 36000
|
0
|
72 # endif
|
|
73 #else
|
|
74 # define MENUBAR_PURESIZE_EXTRA 0
|
|
75 #endif
|
|
76
|
28
|
77 #ifdef HAVE_SCROLLBARS
|
|
78 # if (LONGBITS == 64)
|
|
79 # define SCROLLBAR_PURESIZE_EXTRA 4000
|
|
80 # else
|
|
81 # define SCROLLBAR_PURESIZE_EXTRA 1800
|
|
82 # endif
|
|
83 #else
|
|
84 # define SCROLLBAR_PURESIZE_EXTRA 0
|
|
85 #endif
|
0
|
86
|
28
|
87 #ifdef HAVE_TOOLBARS
|
|
88 # if (LONGBITS == 64)
|
|
89 # define TOOLBAR_PURESIZE_EXTRA 4000
|
|
90 # else
|
|
91 # define TOOLBAR_PURESIZE_EXTRA 8400
|
|
92 # endif
|
|
93 #else
|
|
94 # define TOOLBAR_PURESIZE_EXTRA 0
|
|
95 #endif
|
|
96
|
|
97 /* Extra amount of purespace needed for X11, separate from menubars
|
|
98 and scrollbars. */
|
0
|
99
|
|
100 #ifdef HAVE_X_WINDOWS
|
|
101 # if (LONGBITS == 64)
|
|
102 # define X11_PURESIZE_EXTRA 95000
|
|
103 # else
|
28
|
104 # define X11_PURESIZE_EXTRA 50000
|
0
|
105 # endif
|
|
106 #else
|
28
|
107 # define X11_PURESIZE_EXTRA 0
|
0
|
108 #endif
|
|
109
|
16
|
110 /* Extra amount of purespace needed for Mule. */
|
|
111
|
|
112 #ifdef MULE
|
|
113 # if (LONGBITS == 64)
|
|
114 # define MULE_PURESIZE_EXTRA 144000
|
|
115 # else
|
|
116 # define MULE_PURESIZE_EXTRA 123000
|
|
117 # endif
|
|
118 #else
|
|
119 # define MULE_PURESIZE_EXTRA 0
|
|
120 #endif
|
|
121
|
0
|
122 /* Extra amount of purespace needed for Tooltalk. */
|
|
123
|
|
124 #ifdef TOOLTALK
|
|
125 # if (LONGBITS == 64)
|
|
126 # define TOOLTALK_PURESIZE_EXTRA 100000
|
|
127 # else
|
28
|
128 # define TOOLTALK_PURESIZE_EXTRA 8300
|
0
|
129 # endif
|
|
130 #else
|
|
131 # define TOOLTALK_PURESIZE_EXTRA 0
|
|
132 #endif
|
|
133
|
|
134 /* Extra amount of purespace needed for Energize builds. */
|
|
135
|
|
136 #ifdef ENERGIZE
|
|
137 # define ENERGIZE_PURESIZE_EXTRA 290000
|
|
138 #else
|
|
139 # define ENERGIZE_PURESIZE_EXTRA 0
|
|
140 #endif
|
|
141
|
|
142 /* Extra amount of purespace needed for Sunpro builds. */
|
|
143
|
|
144 #ifdef SUNPRO
|
20
|
145 # define SUNPRO_PURESIZE_EXTRA 135000
|
0
|
146 #else
|
|
147 # define SUNPRO_PURESIZE_EXTRA 0
|
|
148 #endif
|
|
149
|
28
|
150 #define RAW_PURESIZE ((BASE_PURESIZE) + \
|
|
151 (DIALOG_PURESIZE_EXTRA) + \
|
|
152 (MENUBAR_PURESIZE_EXTRA) + \
|
|
153 (SCROLLBAR_PURESIZE_EXTRA) + \
|
|
154 (TOOLBAR_PURESIZE_EXTRA) + \
|
|
155 (X11_PURESIZE_EXTRA) + \
|
|
156 (SYSTEM_PURESIZE_EXTRA) + \
|
|
157 (MULE_PURESIZE_EXTRA) + \
|
|
158 (TOOLTALK_PURESIZE_EXTRA) + \
|
|
159 (ENERGIZE_PURESIZE_EXTRA) + \
|
|
160 (SUNPRO_PURESIZE_EXTRA))
|
0
|
161
|
28
|
162 #endif /* !RAW_PURESIZE */
|
26
|
163
|
30
|
164 #include <puresize_adjust.h>
|
28
|
165 #define PURESIZE ((RAW_PURESIZE) + (PURESIZE_ADJUSTMENT))
|
0
|
166
|
|
167 #endif /* PURESIZE_H */
|