| 1 |
# @(#) $Id: INSTALLING,v 1.8 2005/06/30 17:51:42 alex Exp $ |
| 2 |
|
| 3 |
The program should compile on any reasonably modern Unix or Linux |
| 4 |
system, but has been tested only on FreeBSD and RedHat Linux. No |
| 5 |
extra libraries are required. If you compile on other systems, |
| 6 |
please let me know. I have deliberately attempted to avoid the |
| 7 |
need for massive "autoconfuse" scripts, but time will tell. |
| 8 |
|
| 9 |
For FreeBSD and Linux, it should be sufficient to just type 'make' |
| 10 |
unless you wish to change defaults for CFLAGS (see below). On |
| 11 |
some systems you may need 'gmake' (or edit the PREFIX line to |
| 12 |
something your make will accept). |
| 13 |
|
| 14 |
If your system does not have a system include file "endian.h" |
| 15 |
which defines BYTE_ORDER (or __BYTE_ORDER) as LITTLE-something or |
| 16 |
BIG-something, you may need to fix the file "makebyteorder.sh", |
| 17 |
or manually create a file "byteorder.h" in the distribution |
| 18 |
directory. If your machine's native byte order is big-endian, |
| 19 |
add the single line: |
| 20 |
|
| 21 |
#define NATIVE_BYTEORDER_BIGENDIAN |
| 22 |
|
| 23 |
The sources assume little-endian unless told otherwise, |
| 24 |
so an empty "byteorder.h" is sufficient in that case. |
| 25 |
|
| 26 |
Check CFLAGS: |
| 27 |
If your system includes provide the type 'uint32_t' in types.h |
| 28 |
but not 'u_int32_t' (Solaris), uncomment the line which defines |
| 29 |
uint32_t (or add the definition to CFLAGS). BSD and Linux define |
| 30 |
u_int32_t in sys/types.h, which is where this code expects it. |
| 31 |
|
| 32 |
If you do NOT want support for ANSI color sequences to emphasize |
| 33 |
certain sections of the output, remove |
| 34 |
-DCOLOR |
| 35 |
Alternatively, if you want color but find my selections bilious, |
| 36 |
you can change a few defines in defs.h. The colors currently |
| 37 |
used are intended to be used with a light background; I don't |
| 38 |
recommend them with 'reverse-video' or otherwise dark backgrounds. |
| 39 |
|
| 40 |
If you want color compiled in, but don't want it by default (the |
| 41 |
'-c' flag toggles color if support is compiled in) edit defs.h to |
| 42 |
remove the PRINT_COLOR bit from PRINT_DEFAULTS. |
| 43 |
|
| 44 |
Check PREFIX, BINDIR and MANDIR: set to the directories where the executable |
| 45 |
and manual page should be copied. Normally, you will only need to set |
| 46 |
PREFIX. |
| 47 |
|
| 48 |
Then do |
| 49 |
(optional) make depend (requires the executable 'makedepend') |
| 50 |
make |
| 51 |
|
| 52 |
and when you're ready |
| 53 |
make install |
| 54 |
|
| 55 |
The files in the 'aux" directory must be compiled and/or installed |
| 56 |
manually. There is a simple Makefile for the C programs. You may |
| 57 |
want to modify the scripts for your own purposes. |
| 58 |
|
| 59 |
Duane Hesser |
| 60 |
[email protected] |
| 61 |
http://virtual-cafe.com/~dhh/tools.d/software.html |