building and installing dosemu2 from sources
==============================================

-> REQUIREMENTS for dosemu2:
    - fdpp of the latest version, for now from git or from PPA:
      https://code.launchpad.net/~dosemu2/+archive/ubuntu/ppa
      of from COPR:
      https://copr.fedorainfracloud.org/coprs/stsp/dosemu2/
    - gcc >= 8.1 or clang >= 3.7.0
    - glibc >= 2.20
    - linux >= 6.7 is recommended. With older kernels don't enable
      native DPMI, as it lacks some UFFD features.
      Use linux >= 6.13 for full Landlock-based sandboxing.
    - bison and flex
    - SDL >= 3.0.0.
    - libslirp >= 4.1.0 recommended for networking
    - json-c >= 0.13 recommended
    - development libraries: Xext, slang, gpm, alsa, fluidsynth,
      ladspa, libao can be used when available.

This means that Ubuntu Focal or Fedora 31 are the minimum
recommended systems.

--------------------------------------------------------------------------
1. Compile
--------------------------------------------------------------------------

First you should run:

./autogen.sh

Then either:

./default-configure
make

or

- create a seperate directory and run
    $SRCDIR/configure (or $SRCDIR/default-configure; see below)
    make
  in that directory.

- If you want dosemu2 executable with debug info, then add -d parameter
  to default-configure on the previous step. But expect the debug build
  to work considerably slower than the release build!

- sudo make install

You can now start dosemu2 by typing "dosemu". But if you didn't install
comcom64 (or 32), dosemu2 may not find command.com. We recommend to install
the pre-compiled comcom64 package either from PPA or COPR. Or you can
instead download it from here (also comcom32 is there):
https://dosemu2.github.io/comcom64/
unzip to ~/.dosemu/drive_c and symlink as command.com.
