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