Id-utils were ported to MS-DOS using the DJGPP port of GCC and
development tools.

The following describes how to build Id-utils with DJGPP.

In addition to the standard DJGPP development tools (djdevNNN, gccNNN
and bnuNNN), you will need to install DJGPP ports of the following
packages:

  - Make 3.75 or later
  - bash
  - Fileutils
  - Textutils
  - Sh-utils
  - Grep
  - Sed
  - Diffutils (cmp alone is enough)

All of these are available from the usual DJGPP sites, in the v2gnu
directory.  Note that only the DJGPP ports of these utilities are
guaranteed to work; I didn't test other ports.

After installing these tools, you are ready to build the package.
Type these commands from the DOS prompt:

		djgpp\config
		make -k

This will configure the package and build the programs.  The "-k"
switch to Make causes it to run to completion even if some of the
commands cannot be run.  One such case is if you don't have Emacs
installed (the commands to byte-compile the Emacs interface to
id-utils will fail).

When Make exits, you can say "make -k install" to install the package,
but before that you will need to rename the files INSTALL and (on
non-LFN platforms) install-sh to other names, or else Make will think
that the target `install' is up to date and won't do anything; or just
move the package products manually to pertinent directories.

The package has a test suite; if you changed something and want to be
sure that it still works, or just want to see that the programs you
built work, say "make check" and make sure that the test procedure prints
"PASSED" at the end, and that no errors are reported.  (With some versions
of `bash' port, you will need to copy bash.exe into /bin/sh.exe on the
current drive to run the test suite.)

If you need to configure the package with non-default options (e.g.,
to compile it with other compilation options), you should run the
`configure' shell script. The batch file `djgpp/config.bat' makes
that easy if you don't have to pass non-default options to the script.
To see what options are available, invoke the script with `--help'
option, like so:

		bash ./configure --help

The easiest way to reconfigure the package is to change the options with
which `config.bat' invokes the `configure' script, then rerun config.bat.
