]>
Commit | Line | Data |
---|---|---|
6a5fa4e0 MG |
1 | # |
2 | # Config.mk -- | |
3 | # | |
4 | # Master configuration file for Extended Tcl. This should be the only | |
5 | # file you have to modify to get Extended Tcl to work. | |
6 | # | |
7 | #------------------------------------------------------------------------------ | |
8 | # Copyright 1992 Karl Lehenbauer and Mark Diekhans. | |
9 | # | |
10 | # Permission to use, copy, modify, and distribute this software and its | |
11 | # documentation for any purpose and without fee is hereby granted, provided | |
12 | # that the above copyright notice appear in all copies. Karl Lehenbauer and | |
13 | # Mark Diekhans make no representations about the suitability of this | |
14 | # software for any purpose. It is provided "as is" without express or | |
15 | # implied warranty. | |
16 | #------------------------------------------------------------------------------ | |
17 | # $Id: Config.mk,v 2.3 1992/11/09 07:33:02 markd Exp $ | |
18 | #------------------------------------------------------------------------------ | |
19 | # | |
20 | ||
21 | #============================================================================== | |
22 | # Configuration file specification. Set the macro TCL_CONFIG_FILE to the | |
23 | # name of the file to use in the config directory (don't include the directory | |
24 | # name). If you find problems with these files or have new onces please send | |
25 | # them to us (tcl-project@neosoft.com). At the end of this file is a | |
26 | # description of all the flags that can be set in the config file. | |
27 | # | |
28 | TCL_CONFIG_FILE=linux | |
29 | ||
30 | #============================================================================== | |
31 | # | |
32 | # Configuration section. Modify this section to set some general options and | |
33 | # selecting a config file for a specific Unix implementation. | |
34 | # | |
35 | #============================================================================== | |
36 | ||
37 | #------------------------------------------------------------------------------ | |
38 | # Location of the UCB Tcl distribution relative to this directory. TclX works | |
39 | # with Tcl 6.3 and Tcl 6.4. | |
40 | # | |
41 | TCL_UCB_DIR=../tcl | |
42 | ||
43 | #------------------------------------------------------------------------------ | |
44 | # If you are a Tk user and would like to build a version "wish", the Tk shell, | |
45 | # that includes the TclX command set, define TCL_TK_SHELL=wish and the | |
46 | # location of your Tk directory in TCL_TK_DIR relative to this directory. If | |
47 | # you do not want a "wish" compiled, don't define TCL_TK_SHELL. The libraries | |
48 | # required to link Tk are defined in the system specific sections below. | |
49 | # TK_LIBRARY must be set to the same value specified in the compile of the Tk | |
50 | # source. If TCL_TK_SHELL is define, Tk manual pages will be installed by the | |
51 | # install script. | |
52 | # | |
53 | TCL_TK_SHELL=wish | |
54 | TCL_TK_DIR=../tk | |
55 | TK_LIBRARY=/usr/local/lib/tk | |
56 | XPM_LIBS=-L/usr/X11R6/lib -lXpm | |
57 | ||
58 | #------------------------------------------------------------------------------ | |
59 | # Compiler debug/optimization/profiling flag to use. Not that if debugging or | |
60 | # profiling is enabled, the DO_STRIPPING option below must be disabled. | |
61 | # | |
62 | ||
2a3a6b15 | 63 | #CC=gcc |
6a5fa4e0 MG |
64 | |
65 | OPTIMIZE_FLAG=-O3 -DIS_LINUX | |
66 | #OPTIMIZE_FLAG=-g -DIS_LINUX | |
67 | ||
68 | #------------------------------------------------------------------------------ | |
69 | # Stripping of the final tclshell binary. Specify `true' if the binary is to | |
70 | # be stripped (optimized case) or specify `false' if the binary is not to be | |
71 | # stripped (debugging case). | |
72 | # | |
73 | DO_STRIPPING=false | |
74 | #DO_STRIPPING=true | |
75 | ||
76 | #------------------------------------------------------------------------------ | |
77 | # Definition of the compiler you want to use, as well as extra flags for the | |
78 | # compiler and linker. Also the yacc program you wish to use. | |
79 | # | |
80 | AR=ar | |
81 | XCFLAGS= | |
82 | XLDFLAGS= | |
83 | YACC=yacc | |
84 | #YACC=bison -b y | |
85 | ||
86 | #------------------------------------------------------------------------------ | |
87 | # If C++ is to be used these should be used. Specifying CPLUSOBJS includes the | |
88 | # C++ support code in the Tcl library. CCPLUS is the command to run your C++ | |
89 | # compiler. CPLUSINCL is the location of your standard C++ include files. | |
90 | # | |
91 | #CPLUSOBJS=tcl++.o | |
92 | CCPLUS=CC | |
93 | CPLUSINCL=/usr/include/CC | |
94 | ||
95 | #------------------------------------------------------------------------------ | |
96 | # Enable or disable Tcl history in the Tcl flag. If this macro is set to | |
97 | # '-DTCL_NOHISTORY', the `history' command will not be available in the Tcl | |
98 | # shell. Many people do not find the history command useful and its rather | |
99 | # large, so this way it can be excluded from the standard shell. It will | |
100 | # still be in the library and will be available in other applications if they | |
101 | # use `Tcl_RecordAndEval'. | |
102 | # | |
103 | HISTORY_FLAG= | |
104 | ||
105 | #------------------------------------------------------------------------------ | |
106 | # Memory debugging defines. These are only of interest if you are adding C | |
107 | # code to Tcl or debugging Tcl C code. You probably don't need this unless it | |
108 | # seems like you have memory problems. They help find memory overwrites and | |
109 | # leaks. One or more of the following flags may be specified (in the form | |
110 | # -DFLAGNAME). | |
111 | # | |
112 | # o TCL_MEM_DEBUG - Turn on memory debugging. | |
113 | # o TCL_SHELL_MEM_LEAK - Dump a list of active memory blocks when the | |
114 | # shell exits an eof (requires TCL_MEM_DEBUG). | |
115 | # | |
116 | # NOTE: If TCL_MEM_DEBUG is enabled, the Berkeley Tcl distribution must be | |
117 | # recompiled with this option as well, or it will not link or may fail | |
118 | # with some mysterious memory problems. Same goes for Tk if you are using | |
119 | # Tk. If this option is to be used, all code being tested MUST be compiled | |
120 | # with TCL_MEM_DEBUG and use ckalloc and ckfree for all memory passed between | |
121 | # the application and Tcl. | |
122 | # | |
123 | # An addition a flag MEM_VALIDATE may be specified in the Berkeley Tcl | |
124 | # compilation to do validation of all memory blocks on each allocation or | |
125 | # deallocation (very slow). | |
126 | # | |
127 | MEM_DEBUG_FLAGS= | |
128 | ||
129 | #============================================================================== | |
130 | # Install options sections. This sections describes the installation options. | |
131 | # Your might want to change some of these values before installing. | |
132 | #.............................................................................. | |
133 | # | |
134 | # o TCL_OWNER - The user that will own all Tcl files after installation. | |
135 | # o TCL_GROUP - The group that all Tcl files will belong to after installation. | |
136 | # | |
137 | TCL_OWNER=bin | |
138 | TCL_GROUP=bin | |
139 | ||
140 | # o TCL_DEFAULT - Base name of Tcl default file. This name will have a | |
141 | # version number appended. | |
142 | # | |
143 | #TCL_DEFAULT=/etc/default/tcl | |
144 | TCL_DEFAULT=/usr/local/lib/tcldefault | |
145 | ||
146 | # | |
147 | # The directory to install Tcl binary into. | |
148 | # | |
149 | TCL_BINDIR=/usr/local/bin | |
150 | ||
151 | # | |
152 | # The directory tcl.a library goes into. | |
153 | # | |
154 | TCL_LIBDIR=/usr/local/lib | |
155 | ||
156 | # | |
157 | # The directory the Tcl .h files go into. | |
158 | # | |
159 | TCL_INCLUDEDIR=/usr/local/include | |
160 | ||
161 | # | |
162 | # The directory .tcl files and the .tlib library goes into. | |
163 | # | |
164 | TCL_TCLDIR=/usr/local/lib/tcl | |
165 | ||
166 | #============================================================================== | |
167 | # These defines specify where and how the manual pages are to be installed. | |
168 | # They are actually defined in the system specific configuration file in the | |
169 | # config directory. Install manual pages is somewhat problematic, so a global | |
170 | # option not to install manual pages is provided. Since there are so many | |
171 | # manual pages provided, they are placed together in one Tcl manual page | |
172 | # directory, rather than splitting into the standard manual pages directories. | |
173 | # The actual definitions of these variables are set for in the system | |
174 | # dependent file. You might want to modify these values. | |
175 | #.............................................................................. | |
176 | ||
177 | # | |
178 | # Set to 1 to install manual files, to 0 to not install manual files. | |
179 | # | |
180 | ||
181 | TCL_MAN_INSTALL=1 | |
182 | ||
183 | # | |
184 | # o TCL_MAN_BASEDIR - Base manual directory where all of the man.* and cat.* | |
185 | # directories live. | |
186 | # | |
187 | TCL_MAN_BASEDIR=/usr/local/man | |
188 | ||
189 | # | |
190 | # o TCL_MAN_CMD_SECTION - Section for Tcl command manual pages. Normal `1' or | |
191 | # `C'. You might perfer TCL since there are some many. | |
192 | # | |
193 | # o TCL_MAN_FUNC_SECTION - Section for Tcl C level function manual pages. | |
194 | # In some cases it might be desirable install all manual pages in one | |
195 | # section, in this case, the value should be the same as TCL_MAN_CMD_SECTION. | |
196 | # | |
197 | #TCL_MAN_CMD_SECTION=TCL | |
198 | #TCL_MAN_FUNC_SECTION=TCL | |
199 | TCL_MAN_CMD_SECTION=1 | |
200 | TCL_MAN_FUNC_SECTION=3 | |
201 | ||
202 | # | |
203 | # o TK_MAN_CMD_SECTION - Section for Tk command manual pages. Normal `1' or | |
204 | # `C'. You might perfer TK since there are some many. | |
205 | # | |
206 | # o TK_MAN_FUNC_SECTION - Section for Tk C level function manual pages. | |
207 | # In some cases it might be desirable install all manual pages in one | |
208 | # section, in this case, the value should be the same as TK_MAN_CMD_SECTION. | |
209 | # | |
210 | #TK_MAN_CMD_SECTION=TK | |
211 | #TK_MAN_FUNC_SECTION=TK | |
212 | TK_MAN_CMD_SECTION=1 | |
213 | TK_MAN_FUNC_SECTION=3 | |
214 | ||
215 | ||
216 | #.............................................................................. | |
217 | # The rest of the manual page install options are set in the system dependent | |
218 | # configuration file (config/*) | |
219 | # | |
220 | ||
221 | # o TCL_MAN_SEPARATOR - The separator character used in the directory name | |
222 | # of the cat* and man* manual directories. This is usually empty or | |
223 | # a period. | |
224 | # | |
225 | # o TCL_MAN_STYLE - The style of manual management the system has.It is | |
226 | # a string with one of the following values: | |
227 | # o SHORT - Short file name installation (an index can be generated). | |
228 | # o LONG - Long file name installation, a link will be made for each | |
229 | # name the manual page is to be available under. | |
230 | # This flag is optional, if omitted LONG is assumed. | |
231 | # | |
232 | # o TCL_MAN_INDEX - If 1, then a manual page index will be build in the manual | |
233 | # base directory named index.TCL. Not useful if TCL_MAN_STYLE is LONG. Each | |
234 | # line in the file has the form: | |
235 | # mansubject manfile section | |
236 | # This flag is optional, if omitted 0 is assumed. | |
237 | # | |
238 | ||
239 | #============================================================================== | |
240 | # System specific configuration. A system configuration file in the config | |
241 | # directory defines the following mactos required for your version of Unix. | |
242 | # In addition to the options defined in the Berkeley source the following | |
243 | # options can be defined here. This information will help you build your own | |
244 | # system configuration if one is not supplied here. The configuration file | |
245 | # name is specified an the end of this section. | |
246 | # | |
247 | # o SYS_DEP_FLAGS - The system dependency flags. The following options are | |
248 | # available, these should be defined using -Dflag. | |
249 | # | |
250 | # o TCL_HAVE_SETLINEBUF - Define if the `setlinebuf' is available as part | |
251 | # of stdio. | |
252 | # | |
253 | # o TCL_32_BIT_RANDOM - Define if the `rand' function returns a value in | |
254 | # the range 0..(2^31)-1, leave undefined if `rand' returns a value | |
255 | # in the range 0..(2^15)-1. | |
256 | # | |
257 | # o TCL_NO_SELECT - The select call is not available. | |
258 | # | |
259 | # o TCL_NEED_SYS_SELECT_H - Define if <sys/select.h> is required. May not | |
260 | # need it, even if it is there. | |
261 | # | |
262 | # o TCL_USE_BZERO_MACRO - Use a macro to define bzero for the select | |
263 | # FD_ZERO macro. | |
264 | # | |
265 | # o TCL_POSIX_SIG - Set if posix signals are available (sigaction, etc). | |
266 | # | |
267 | # o TCL_HAVE_CATGETS - Set if XPG/3 message catalogs are available | |
268 | # (catopen, catgets, etc). | |
269 | # | |
270 | # o TCL_TM_GMTOFF - Set if the seconds east of GMT field in struct tm is | |
271 | # names 'tm_gmtoff'. Not set if its is names 'tm_tzadj'. | |
272 | # | |
273 | # o TCL_TIMEZONE_VAR - If the timezone varaible is used in place of | |
274 | # one of the fields from struct tm. | |
275 | # | |
276 | # o TCL_NEED_TIME_H - Set if time.h is required. | |
277 | # | |
278 | # o TCL_SIG_PROC_INT - Set if signal functions return int rather than | |
279 | # void. | |
280 | # | |
281 | # o TCL_NO_ITIMER - Set if setitimer is not available. | |
282 | # | |
283 | # o TCL_IEEE_FP_MATH - Set if IEEE 745-1985 error reporting via the value | |
284 | # a function returns is to be used instead of the standard matherr | |
285 | # mechanism. | |
286 | # | |
287 | # o TCL_NO_FILE_LOCKING - Set if the fcntl system call does not support | |
288 | # file locking. | |
289 | # | |
290 | # o TCL_DUP_CLK_TCK - On some systems that have both time.h and | |
291 | # sys/time.h, tclUnix.h defines CLK_TCK then tclExtdInt.h includes | |
292 | # time.h and you get a redefiniton warning. Set this flag to prevent | |
293 | # the warning (its not safe to just unset it). | |
294 | # | |
295 | # o LIBS - The flags to specify when linking the tclshell. | |
296 | # | |
297 | # o TCL_TK_LIBS - The libraries to link the TK wish program. This should | |
298 | # also include libraries specified for LIBS, as both values may not be | |
299 | # used together due to library ordering constraints. | |
300 | # | |
301 | # o RANLIB_CMD - Either `ranlib' if ranlib is required or `true' if ranlib | |
302 | # should not be used. | |
303 | # | |
304 | # o MCS_CMD - Command to delete comments from the object file comment | |
305 | # section, if available. The command `true' if it's not available. This | |
306 | # makes the object file even smaller after its stipped. | |
307 | # | |
308 | # o SUPPORT_FLAGS - The flags for SUPPORT_OBJS code. The following options | |
309 | # are available, these should be defined using -Dflag. | |
310 | # | |
311 | # o TCL_HAS_TM_ZONE - If if 'struct tm' has the 'tm_zone' field. Used | |
312 | # by strftime. | |
313 | # | |
314 | # o SUPPORT_OBJS - The object files to compile to implement library | |
315 | # functions that are not available on this particular version of Unix or | |
316 | # do not function correctly. The following are available: | |
317 | # o strftime.o | |
318 | # | |
319 | #.............................................................................. |