
Get the tarball and extract it:
	gtar xzvf socat.tar.gz
	cd socat-1.2
	./configure
	make depend
	make
	su -
	make install	# installs socat, filan, and procan in /usr/local/bin

You will need gcc or egc to get reasonable results from configure. If you
intend to use another compiler, you can probably avoid lots of warnings if you
exclude the features for system call tracing and file descriptor analyzation by
using the following "configure" call: 
	./configure --disable-sycls --disable-filan

You need the functions vsnprintf and snprintf.

Compilation with gcc/egc has been tested with different versions of Linux,
AIX, FreeBSD, Solaris, and MacOS (Darwin). For other operating system, if socat
does not compile without errors, refer to the file PORTING.


SOLARIS:

If you have libreadline in a directory not usually searched by the loader,
e.g. /opt/sfw/lib, you must add this directory to $LD_LIBRARY_PATH, at least
for running configure and the socat executables
For some shell scripts, it is preferable to have /usr/xpg4/bin at a prominent
position in $PATH


RPM:

$ make dist
$ cp -p .../socat-1.2/socat.tar.gz /usr/src/packages/SOURCES/socat-1.2.0.0.tar.gz
generate source and binary rpm:
$ rpm -ba socat-1.2-0.0.spec </dev/null
results in:
/usr/src/packages/RPMS/i386/socat-1.2-0.0.i386.rpm
/usr/src/packages/SRPMS/socat-1.2-0.0.src.rpm
check it:
rpm -q -p /usr/src/packages/RPMS/i386/socat-1.2-0.0.i386.rpm -l
