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
|
70
|
27 /* If PURESIZE is already defined then the user overrode it at
|
0
|
28 configure time. */
|
70
|
29 #ifndef PURESIZE
|
28
|
30
|
0
|
31 /* Basic amount of purespace to use, in the absence of extra
|
|
32 things configured in. */
|
|
33
|
|
34 #if (LONGBITS == 64)
|
84
|
35 # define BASE_PURESIZE 893000
|
0
|
36 #else
|
88
|
37 # define BASE_PURESIZE 518000
|
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
|
|
53 #ifdef HAVE_MENUBARS
|
|
54 # if (LONGBITS == 64)
|
|
55 # define MENUBAR_PURESIZE_EXTRA 43000
|
|
56 # else
|
70
|
57 # define MENUBAR_PURESIZE_EXTRA 35000
|
0
|
58 # endif
|
|
59 #else
|
|
60 # define MENUBAR_PURESIZE_EXTRA 0
|
|
61 #endif
|
|
62
|
70
|
63 /* Scrollbar purespace needed is only about 2K so there's no sense
|
|
64 worrying about it separately. */
|
0
|
65
|
70
|
66 /* Extra amount of purespace needed for X11, separate from menubars. */
|
0
|
67
|
|
68 #ifdef HAVE_X_WINDOWS
|
|
69 # if (LONGBITS == 64)
|
|
70 # define X11_PURESIZE_EXTRA 95000
|
|
71 # else
|
88
|
72 # define X11_PURESIZE_EXTRA 68000
|
0
|
73 # endif
|
|
74 #else
|
28
|
75 # define X11_PURESIZE_EXTRA 0
|
0
|
76 #endif
|
|
77
|
16
|
78 /* Extra amount of purespace needed for Mule. */
|
|
79
|
|
80 #ifdef MULE
|
88
|
81 #ifdef HAVE_CANNA
|
|
82 # define MULE_PURESIZE_CANNA 5000
|
|
83 #else
|
|
84 # define MULE_PURESIZE_CANNA 0
|
|
85 #endif
|
16
|
86 # if (LONGBITS == 64)
|
88
|
87 # define MULE_PURESIZE_EXTRA 99000+MULE_PURESIZE_CANNA
|
16
|
88 # else
|
88
|
89 # define MULE_PURESIZE_EXTRA 78000+MULE_PURESIZE_CANNA
|
16
|
90 # endif
|
|
91 #else
|
|
92 # define MULE_PURESIZE_EXTRA 0
|
|
93 #endif
|
|
94
|
0
|
95 /* Extra amount of purespace needed for Tooltalk. */
|
|
96
|
|
97 #ifdef TOOLTALK
|
|
98 # if (LONGBITS == 64)
|
|
99 # define TOOLTALK_PURESIZE_EXTRA 100000
|
|
100 # else
|
70
|
101 # define TOOLTALK_PURESIZE_EXTRA 69000
|
0
|
102 # endif
|
|
103 #else
|
|
104 # define TOOLTALK_PURESIZE_EXTRA 0
|
|
105 #endif
|
|
106
|
|
107 /* Extra amount of purespace needed for Energize builds. */
|
|
108
|
|
109 #ifdef ENERGIZE
|
|
110 # define ENERGIZE_PURESIZE_EXTRA 290000
|
|
111 #else
|
|
112 # define ENERGIZE_PURESIZE_EXTRA 0
|
|
113 #endif
|
|
114
|
|
115 /* Extra amount of purespace needed for Sunpro builds. */
|
|
116
|
|
117 #ifdef SUNPRO
|
84
|
118 #ifdef MULE /* ~50k extra for tm */
|
|
119 # define SUNPRO_PURESIZE_EXTRA 135000
|
|
120 #else
|
|
121 #define SUNPRO_PURESIZE_EXTRA 85000
|
|
122 #endif
|
0
|
123 #else
|
|
124 # define SUNPRO_PURESIZE_EXTRA 0
|
|
125 #endif
|
|
126
|
70
|
127 #define PURESIZE ((BASE_PURESIZE) + (MENUBAR_PURESIZE_EXTRA) + \
|
|
128 (X11_PURESIZE_EXTRA) + \
|
|
129 (SYSTEM_PURESIZE_EXTRA) + (MULE_PURESIZE_EXTRA) + \
|
|
130 (TOOLTALK_PURESIZE_EXTRA) + (ENERGIZE_PURESIZE_EXTRA) + \
|
|
131 (SUNPRO_PURESIZE_EXTRA))
|
0
|
132
|
70
|
133 #endif /* !PURESIZE */
|
0
|
134
|
|
135 #endif /* PURESIZE_H */
|