]>
git.zerfleddert.de Git - micropolis/blob - src/tclx/config.mk
22d43cb2b6a6ffbd8835b3292c4c5dd09cac28eb
4 # Master configuration file for Extended Tcl. This should be the only
5 # file you have to modify to get Extended Tcl to work.
7 #------------------------------------------------------------------------------
8 # Copyright 1992 Karl Lehenbauer and Mark Diekhans.
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
16 #------------------------------------------------------------------------------
17 # $Id: Config.mk,v 2.3 1992/11/09 07:33:02 markd Exp $
18 #------------------------------------------------------------------------------
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.
30 #==============================================================================
32 # Configuration section. Modify this section to set some general options and
33 # selecting a config file for a specific Unix implementation.
35 #==============================================================================
37 #------------------------------------------------------------------------------
38 # Location of the UCB Tcl distribution relative to this directory. TclX works
39 # with Tcl 6.3 and Tcl 6.4.
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
55 TK_LIBRARY
=/usr
/local
/lib
/tk
56 XPM_LIBS
=-L
/usr
/X11R6
/lib
-lXpm
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.
65 OPTIMIZE_FLAG
=-O3
-DIS_LINUX
66 #OPTIMIZE_FLAG=-g -DIS_LINUX
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).
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.
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.
93 CPLUSINCL
=/usr
/include/CC
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'.
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
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).
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.
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).
129 #==============================================================================
130 # Install options sections. This sections describes the installation options.
131 # Your might want to change some of these values before installing.
132 #..............................................................................
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.
140 # o TCL_DEFAULT - Base name of Tcl default file. This name will have a
141 # version number appended.
143 #TCL_DEFAULT=/etc/default/tcl
144 TCL_DEFAULT
=/usr
/local
/lib
/tcldefault
147 # The directory to install Tcl binary into.
149 TCL_BINDIR
=/usr
/local
/bin
152 # The directory tcl.a library goes into.
154 TCL_LIBDIR
=/usr
/local
/lib
157 # The directory the Tcl .h files go into.
159 TCL_INCLUDEDIR
=/usr
/local
/include
162 # The directory .tcl files and the .tlib library goes into.
164 TCL_TCLDIR
=/usr
/local
/lib
/tcl
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 #..............................................................................
178 # Set to 1 to install manual files, to 0 to not install manual files.
184 # o TCL_MAN_BASEDIR - Base manual directory where all of the man.* and cat.*
187 TCL_MAN_BASEDIR
=/usr
/local
/man
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.
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.
197 #TCL_MAN_CMD_SECTION=TCL
198 #TCL_MAN_FUNC_SECTION=TCL
199 TCL_MAN_CMD_SECTION
=1
200 TCL_MAN_FUNC_SECTION
=3
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.
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.
210 #TK_MAN_CMD_SECTION=TK
211 #TK_MAN_FUNC_SECTION=TK
213 TK_MAN_FUNC_SECTION
=3
216 #..............................................................................
217 # The rest of the manual page install options are set in the system dependent
218 # configuration file (config/*)
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
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.
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.
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.
247 # o SYS_DEP_FLAGS - The system dependency flags. The following options are
248 # available, these should be defined using -Dflag.
250 # o TCL_HAVE_SETLINEBUF - Define if the `setlinebuf' is available as part
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.
257 # o TCL_NO_SELECT - The select call is not available.
259 # o TCL_NEED_SYS_SELECT_H - Define if <sys/select.h> is required. May not
260 # need it, even if it is there.
262 # o TCL_USE_BZERO_MACRO - Use a macro to define bzero for the select
265 # o TCL_POSIX_SIG - Set if posix signals are available (sigaction, etc).
267 # o TCL_HAVE_CATGETS - Set if XPG/3 message catalogs are available
268 # (catopen, catgets, etc).
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'.
273 # o TCL_TIMEZONE_VAR - If the timezone varaible is used in place of
274 # one of the fields from struct tm.
276 # o TCL_NEED_TIME_H - Set if time.h is required.
278 # o TCL_SIG_PROC_INT - Set if signal functions return int rather than
281 # o TCL_NO_ITIMER - Set if setitimer is not available.
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
287 # o TCL_NO_FILE_LOCKING - Set if the fcntl system call does not support
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).
295 # o LIBS - The flags to specify when linking the tclshell.
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.
301 # o RANLIB_CMD - Either `ranlib' if ranlib is required or `true' if ranlib
302 # should not be used.
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.
308 # o SUPPORT_FLAGS - The flags for SUPPORT_OBJS code. The following options
309 # are available, these should be defined using -Dflag.
311 # o TCL_HAS_TM_ZONE - If if 'struct tm' has the 'tm_zone' field. Used
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:
319 #..............................................................................