First, read the README file.  If you're still happy...

The CVS 1.3 Beta testers (bless their hearts) verified that CVS compiled
correctly on the following platforms:

	386 running Interactive Unix ISC 2.2.1
	386 running SCO Xenix 386, 2.3.2
	ATT 3B2 running System VR3 (*)
	Altos running Altos Unix v5.3a System V/386 R3.2 (**)
	Atari/ST (2.5MB) running Minix 1.6.16
	Cray X-MP running Unicos 6.1
	DEC 3100 running Ultrix 4.0
	Decstation 5000/200 running Ultrix 4.0, 4.1 (***), 4.2
	Gateway2000 486/33C (486@33MHZ) running BSDI BSD/386 0.3 (Beta)
	HP 9000/360 running HP-UX 6.5
	HP 9000/710 running HP-UX 8.07
	HP 9000/730 running HP-UX 8.05
	HP PA-RISC 800 running HP-UX 8.01
	IBM RS/6000 running AIX 3.1, 3.2
	Motorola 68030 running a System 5.3.2 derivative
	Motorola VME187 running SYSVR3
	Motorola 88100 running R32V3
	NEC EWS4800 running System VR4.0.2
	NeXT 68040 running NeXT Mach 2.1
	Omron Luna running UNIOS-B 4.3BSD 1.60
	SGI Iris 4D running Irix 3.3.2 (****), Irix 4.0.1, Irix 4.0.2C
	Sony NEWS Workstation running NEWS-OS 4.0C
	Sumitomo Ustation running SEIUX3.2
	Sun-3 running SunOS 4.0.3, 4.1, 4.1.1
	Sun-386i running SunOS 4.0.2
	Sun-4/Sun-4c/Sun-4m running SunOS 4.1.1, 4.1.2, Solaris 2.0

(*)	On the ATT 3B2, "tr" was not available (?).
(**)	The Altos system and had problems compiling lib/regex.c.
(***)	Ultrix 4.1 apparently has a nasty compiler/linker that doesn't work
	well with the CVS "configure" script.  You will need to add
	fnmatch.o to the OBJECTS macro in lib/Makefile for CVS to compile
	on this system.
(****)	It has been reported that SGI machines running Irix 3.3.2 may hang
	during "cvs add" and leave an un-killable process.  If you
	experience this, you can define "FSYNC_MISSING", re-compile
	src/subr.o and the problem should go away.  This appears not to be
	a problem in Irix 4.0.1.

CVS had some problems compiling/running on the following machines:

	None!

NOTE:	CVS relies on having some form of the opendir/readdir/closedir
	functions being available.  Some older systems do not support these
	calls.  CVS will not work with these systems unless a suitable
	readdir implementation is installed on the system.  Take a look at
	the file "contrib/dirfns", which contains some code that might add
	this support to your system.

-------------------------------------------------------------------------------

Installation:

1)  Edit the src/config.h header file.  Appropriate things to look at may be
    the invocation locations of programs like DIFF, GREP, RM, and SORT.
    Also glance at the default values for the environment variables that
    CVS uses, in particular, the RCSBIN variable, which holds the path to
    where the RCS programs live on your system.  The likelihood is that you
    don't have to change anything here, except perhaps adding the -a
    option to DIFF if you are using GNU diff (which is recommended).

    Note that (unlike in the CVS 1.3 distribution) full paths are
    given to all programs in src/config.h in the versions from Signum.
    This is because we think that the current setting of ones PATH
    should not affect the behaviour of CVS. It is still possible to
    give just the names of the programs, though.

2)  Run "configure":

	$ ./configure

    You can specify an alternate destination to override the default with
    the --prefix option:

	$ ./configure --prefix=/usr/local/gnu

    or some path that is more appropriate for your site.  The default prefix
    value is "/usr/local", with binaries in sub-directory "bin", manual
    pages in sub-directory "man", and libraries in sub-directory "lib".

    "configure" tries to use "gcc -g -O" first.  If that doesn't work, it
    will try to use "cc -g -O".  If that doesn't work, it uses "cc -g".  To
    override this, simply specify the options in the CC environment variable:

	$ CC="cc -O" ./configure

    for sh, bash, or ksh shell users or:

	% setenv CC "cc -O"
	% ./configure

    for csh, tcsh shell users.

    NOTE ON CVS's USE OF NDBM:

	By default, CVS uses some built-in ndbm emulation code to allow
	CVS to work in a heterogeneous environment.  However, if you have
	a very large modules database, this may not work well.  You will
	need to edit src/config.h to turn off the MY_NDBM #define and
	re-run configure.  If you do this, the following comments apply.
	If not, you may safely skip these comments.

	If you configure CVS to use the real ndbm(3) libraries and
	you do not have them installed in a "normal" place, you will
	probably want to get the GNU version of ndbm (gdbm) and install
	that before running the CVS configure script.  Be aware that the
	GDBM 1.5 release does NOT install the <ndbm.h> header file included
	with the release automatically.  You may have to install it by hand.

	If you configure CVS to use the ndbm(3) libraries, you cannot
	compile CVS with GNU cc (gcc) on Sun-4 SPARC systems.  However, gcc
	2.0 may have fixed this limitation if -fpcc-struct-return is
	defined.  When using gcc on other systems to compile CVS, you *may*
	need to specify the -fpcc-struct-return option to gcc (you will
	*know* you have to if "cvs checkout" core dumps in some ndbm
	function).  You can do this as follows:

	    $ CC=gcc DEFS=-fpcc-struct-return ./configure

	for sh, bash, and ksh users and:

	    % setenv CC gcc
	    % setenv DEFS -fpcc-struct-return
	    % ./configure

	for csh and tcsh users.

    END OF NOTE FOR NDBM GUNK.

    This release of CVS also requires RCS commands to be installed in the
    user's PATH (or a path you have configured in src/config.h).  If you
    don't have RCS, you will need to get it from GNU as well.  It is best
    to get the version 5.6 (or later) version of RCS, available from
    prep.ai.mit.edu in the file pub/gnu/rcs-5.6.tar.Z.  Along with RCS, you
    will want to run GNU diff.  This will allow revision control of files
    with binary data (a real nice feature).  You will need at least version
    1.15 of GNU diff for this to work.

3)  Try to build it:

	$ make

    This will (hopefully) make the needed CVS binaries within the "src"
    directory.  Send me your "config.status" file with your host type,
    operating system information, and make output if something fails for
    your system.

4)  Install the binaries/documentation:

	$ make install

    Depending on your installation's configuration, you may need to be
    root to do this.

5)  Take a look at the CVS manual page.

	$ man cvs

    See what it can do for you, and if it fits your environment (or can
    possibly be made to fit your environment).  If things look good,
    continue on...

6)  Setup the master source repository.  Choose a directory with ample disk
    space available for source files.  This is where the RCS ",v" files
    will be stored.  Note that this should be some shared directory for your
    site.  It should probably be auto-mounted, if you're running NFS.

    Say you choose "/src/master" as the root of your source repository.
    Run the "cvsinit" script to help you set it up.  It will ask you to
    enter the path to your CVSROOT area.  You would enter /src/master in
    this example.

	$ ./cvsinit

    The cvsinit script will setup a reasonable CVSROOT area to start with.
    It is also valuable to folks who already have a CVSROOT area setup from
    using earlier releases of CVS.  It assumes that you have installed CVS
    already (step 4) and that the RCS programs (co and ci) are in your
    PATH.  There are many ways to customize CVS for your site.  Read the
    cvs(5) manual page when you get the chance.

7)  Have all users of the CVS system set the CVSROOT environment variable
    appropriately to reflect the placement of your source repository.  If
    the above example is used, the following commands can be placed in
    user's ~/.profile, ~/.bash_profile, or ~/.login file:

	CVSROOT=/src/master; export CVSROOT

    for sh/bash/ksh users, or

	setenv CVSROOT /src/master

    for csh/tcsh users.  If these environment variables are not already set
    in your current shell, set them now (or source the login script you
    just edited).  You will need to have the CVSROOT environment variable
    set to continue on to the next step.

8)  It might be a good idea to jump right in and put the CVS distribution
    directly under CVS control.  From within the top-level directory of the
    CVS distribution (the one that contains this README file) do the
    following commands:

	$ make realclean
	$ cvs import -m 'CVS 1.3 distribution' cvs CVS CVS1_3

9)  Having done step 8, one should be able to checkout a fresh copy of the
    CVS distribution and hack away at the sources with the following command:

	$ cd
	$ cvs checkout cvs

    This will make the directory "cvs" in your current directory and
    populate it with the appropriate CVS files and directories.

10) Remember to edit the modules file manually when sources are checked in
    with "cvs import" or "cvs add".  A copy of the modules file for editing
    can usually be retrieved with the "cvs checkout modules" command, and
    definitely with the "cvs checkout CVSROOT" command.  See cvs(5).

11) Read the ChangeLog file to see what's new.  REALLY!  I use the
    ChangeLog file as the Release Notes.

12) Hack away.

-------------------------------------------------------------------------------

Detailed info about your interaction with "configure":

The "configure" script and its interaction with its options and the
environment is described here.

Supported options are:
	--srcdir=DIR		Useful for compiling on many different
				machines sharing one source tree.
	--prefix=DIR		The root of where to install the
				various pieces of CVS (/usr/local).
	--exec_prefix=DIR	If you want executables in a
				host-dependent place and shared
				things in a host-independent place.

The following environment variables override configure's default
behaviour:
	CC			If not set, tries to use gcc first,
				then cc.  Also tries to use "-g -O"
				as options, backing down to -g
				alone if that doesn't work.
	INSTALL			If not set, tries to use "install", then
				"cp" as a final choice.
	RANLIB			If not set, tries to determine if "ranlib"
				is available, choosing "echo" if it doesn't
				appear to be.
	YACC			If not set, tries to determine if "bison"
				is available, choosing "yacc" if it doesn't
				appear to be.

-------------------------------------------------------------------------------
