This is a port of GNU Which 2.20 to MSDOS/DJGPP.

1.:     DJGPP specific changes.
        =======================

        The port will search for a program name given as argument to Which, and
        if it can not find it it will add the well known DOS extensions to the
        given program name and starts again the search through the path.
        The known build-in DOS extensions are the four extensions known by the
        DJGPP port of bash 2.05b, these are ".exe", ".com", ".bat", ".btm".
        If a program e.g.: foobar can not be found on the patch then also for
        foobar.exe, foobar.com, etc. will be searched for.  The list of DOS
        extensions can be expanded by setting the environment variable WHICH to
        a list of extensions separated by blanks, commas or semi colons.

        Please note that the distributed source package has been configured for
        djdev203.  If you use WinXP and you want to rebuild the binaries, you
        will have to reconfigure the source package from scratch.  As usual,
        all the djgpp specific files (config.bat, diffs, readme files, etc.)
        are stored in the /djgpp subdir.

        To be able to compile this source package, you will need to install
        libsupport 5.2 or later.  The library will provide a fixed version of
        realpath() that is required to produce correct canonicalized paths.



2.:     Installing the binary package.
        ==============================

2.1.:   Copy the binary distribution into the top DJGPP installation directory
        and unzip it running *ONE* of the following commands:
          unzip32 whic220b.zip      or
          djtarx whic220b.zip       or
          pkunzip -d whic220b.zip

        For futher information about GNU Which please read the info docs
        and the NEWS file.



3.:     Building the binaries from sources.
        ===================================

3.1.:   To build the binaries you will need the following binary packages:
          djdev203.zip (patch level 2, see the djdev203.dsm)
          bsh204b.zip, gccNNNb.zip, bnuNNNb.zip, makNNNb.zip, filNNNb.zip,
          shlNNNb.zip, txtNNNb.zip, txiNNNb.zip, grepNNNb.zip, sedNNNb.zip
          and difNNNb.zip.
        where NNN stands for the latest version of the packages.  All this
        packages can be found in the v2gnu directory of ftp.delorie.com and
        any mirror.
        Also lsuppNNa.zip will be required and is available in the v2tk dir.

3.2.:   Create a temporary directory.  Copy the source package: whic220s.zip
        into the directory and unzip it runnig ONE of the following commands:
          unzip32 whic220s.zip      or
          djtarx whic220s.zip       or
          pkunzip -d whic220s.zip

3.3.:   The package has been configured with djdev203.  If for some reason you
        want to reconfigure the package cd into the top srcdir (which-2.20)
        and run the following commands:
          del djgpp\config.cache
          make distclean
          djgpp\config

        Please note that you *MUST* delete config.cache in the /djgpp subdir
        or you will not really reconfigure the sources because the configuration
        informations will be read from the cache file instead of being newly
        computed.  To build the programs in a directory other than where the
        sources are, you must add the parameter that specifies the source
        directory, e.g.:
          x:\src\gnu\which-2.20\djgpp\config x:/src/gnu/which-2.20
        or:
          x:\src\gnu\which-2.20\djgpp\xp-config x:/src/gnu/which-2.20

        Lets assume you want to build the binaries in a directory placed on a
        different drive (z:\build in this case) from where the sources are,
        then you will run the following commands:
          z:
          md \build
          cd \build
          x:\src\gnu\which-2.20\djgpp\config x:/src/gnu/which-2.20
        or:
          x:\src\gnu\which-2.20\djgpp\xp-config x:/src/gnu/which-2.20

        The order of the options and the srcdir option does not matter. You
        *MUST* use forward slashes to specify the source directory.

        The batch file will set same environment variables, make MSDOS specific
        modifications to the Makefile.ins and supply all other needed options
        to the configure script.


3.4.:   To compile the package run from the top srcdir the command:
          make

3.5.:   There is no testsuite in the distribution.

3.6.:   To install the binary, info docs and man pages run the following command
        from the top srcdir:
          make install

        This will install the products into your DJGPP installation tree given
        by the default prefix "/dev/env/DJDIR". If you prefer to install them
        into some other directory you will have to set prefix to the appropiate
        value.
        Example:
          make install prefix=z:/some/other/dir



        Send which specific bug reports to <bug-which@gnu.org>.
        Send suggestions and bug reports concerning the DJGPP port
        to comp.os.msdos.djgpp or <djgpp@delorie.com>.

Enjoy.

          Guerrero, Juan Manuel <juan.guerrero@gmx.de>
