This is extension is a standalone version of the tclkit [zlib] command/extension. See http://wiki.tcl.tk/zlib for command syntax. This package is a freely available open source package. You can do virtually anything you like with it, such as modifying it, redistributing it, and selling it either in whole or in part. See the file "license.terms" for complete information. It was initially created by Pascal Scheffers by bundling zlib.c by Jean-Claude Wippler from the tclkit sources, zlib and banging on sampleextension until it worked. The copy you are looking at is a work in progress, aiming to implement TIP#234 http://www.tcl.tk/cgi-bin/tct/tip/234 Code and documentation are all licensed as under the same BSD style license as found on Tcl 8.4 or later. Have fun. 18 August 2004 (updated 15 Februari 2005) - Pascal Scheffers. Pascal@Scheffers.Net Obtaining a newer version ========================= The latest and greatest version can be found in the subversion repository at http://svn.scheffers.net/zlib, for a subversion client go to http://subversion.tigris.org. For a really nice windows client, I suggest http://tortoisesvn.tigris.org. Simply: $ svn co http://svn.scheffers.net/zlib Zlib/libz 1.2.1 from gzip.org ============================== This extension includes a verbatim copy of zlib-1.2.1 as downloaded from http://www.gzip.org/zlib/zlib-1.2.1.tar.gz It is mainly there for the benefit of platforms which do not have a (recent) copy of zlib. By default, the extension will perform a static link with this included library. UNIX or Msys+Mingw simple build =============================== The really simple way of building this package is $ cd zlib $ /path/to/my/tclsh build.tcl This should auto detect the tclConfig.sh to be used for building the extension. If that part fails, you can also specify the directory which holds tclConfig.sh (for example /usr/local/lib) $ cd zlib $ /path/to/my/tclsh build.tcl /usr/local/lib UNIX BUILD ========== Before building the extension, libz(.a) needs to be available. Most Unix systems have libz installed, so you can just run the configure script and then run make. If you do not have libz installed (configure will complain about it.), you should build the zlib copy provided with this extension in the zlib directory. For more information about the build process, see the tcl/unix/README file in the Tcl src dist. The following minimal example will install the extension in the /opt/tcl directory. $ cd zlib $ ./configure --prefix=/opt/tcl $ make $ make install This example will build the zlib as well: $ cd zlib/zlib $ ./configure $ make $ cd .. $ ./configure --prefix=/opt/tcl $ make $ make install WINDOWS BUILD ============= The recommended method to build extensions under windows is to use the Msys + Mingw build process. This provides a Unix-style build while generating native Windows binaries. Using the Msys + Mingw build tools means that you can use the same configure script as per the Unix build to create a Makefile. Building with VC++ has not been tested