Next: Integration, Previous: Features, Up: Top
The mpatrol library was initially developed on an Amiga 4000/040 running AmigaOS 3.1. I then installed Red Hat Linux 5.1 on my Amiga and added support for Linux/m68k. Just after mpatrol was first released I purchased a Windows 98 laptop and put my Amiga in retirement, so development continued on Windows and Linux on the Intel x68 platform. I've tried my best to make it as easy as possible to build and install mpatrol on any system, but it isn't likely to run smoothly for everybody. However, there shouldn't be any major problems if you perform the following steps.
Note that if you want to check the integrity of the files that came with the mpatrol distribution you can use the CHECKSUMS file in the mpatrol base directory. You must have the md5sum command installed on your system in order to make use of this file.
If you wish to use GNU autoconf, automake and libtool to build and install mpatrol you may do so by entering the pkg/auto directory and typing `./setup'. This will construct the directory structure that is required by these tools and will also create a configure script. Please see the INSTALL file in that directory for information on how to proceed. Note that you can clean up the pkg/auto directory by typing `make distclean' (if the configure script has already been run) followed by `./cleanup'.
If you have problems building with the configure script then you may need to regenerate the autoconf, automake and libtool configuration files to suit your particular system. To do this, edit the setup file and change the setting of `generate' from `0' to `1'. Then re-execute the setup script, making sure that you have deleted the old files beforehand.
For a manual installation, perform the following steps.
CC
macro specifies the
compiler1, the AR
macro specifies the tool used to build the archive library and the LD
macro specifies the tool to build the shared library. The CFLAGS
macro
specifies compiler options that are always to be used, the OFLAGS
macro
specifies optimisation options for the compiler, the SFLAGS
macro
specifies options to be passed to the compiler when building a shared library
and the TFLAGS
macro specifies options to be passed to the compiler when
building a thread-safe library. You may also need to change the library names
and library build commands on different systems.
Note that the generic UNIX Makefile contains a macro called GUISUP
which is set to false
by default. If it is set to true
then the
mptrace command will be built with GUI support enabled. However,
your system must contain the correct header files and libraries in order to
support this.
MP_INUSE_SUPPORT
preprocessor macro must be defined in the
CFLAGS
portion of the Makefile before building. This will ensure
that Inuse will be notified of every memory allocation, reallocation and
deallocation, but the Insure++ runtime library will also have to be linked in
with any program that uses mpatrol.
The mpatrol library source code can also be formatted for a printed manual for later perusal. The `source' target in the Makefile within the doc directory can be used to build the source code documentation in DVI, postscript and PDF formats, but be prepared for a large number of pages!
If you are not installing on a system that supports UNIX manual pages then you should also check in the man directory to ensure that there are alternative formats for the mpatrol manual pages that you can install. If not, you will have to generate them yourself using the Makefile provided.
Alternatively, the pkg directory contains files that can be used to automatically generate a package in a specific format suitable for installation on a system. Four package formats (PKG, SD/UX, RPM and Debian) and three archive formats are currently supported (generic tape archive, LhA and ZIP).
The first package format is generally used on UNIX SVR4 systems, while the second is used on HP/UX systems. The RPM and Debian package formats were introduced by Red Hat and Debian respectively for use in their Linux distributions.
The generic tape archive can be used as a distribution for UNIX systems where no package format is supported, but it does not contain information on how to install the files on the system once they have been extracted from the distribution. The LhA and ZIP formats are also roughly the same, but the LhA format is intended for Amiga systems and is used for Aminet distributions, while the ZIP format is intended for Windows systems and is used for WinSite distributions.
You should really know what you are doing before you attempt to build a package, and you should also be aware that some of the package files may need to be modified before you begin.
In addition, a Linux Software Map index file exists in the pkg/lsm directory.
Note that the extra directory that comes with the mpatrol distribution contains several prototype configuration files for certain third-party programs. These files should be examined so that you can decide whether to integrate their contents into your existing configuration files. The purpose of each file is described in the relevant sections of this manual.
[1] On many systems this actually a C++ compiler by default, and should be a C++ compiler if you wish to use the C++ operators.