BUILDING AND INSTALLING XCONQ

0. A package with an already-built version may be available for your
system.  If you have one, follow that package's instructions for
installation.

1. Decide what the kind of system you want to use.  For Mac, go to
the "mac" subdirectory and read DO_FIRST.mac.  For Unix and Windows
95/98/NT, keep reading here.

[2. Xconq uses tcl/tk 8.]

[need win vs x11 choice somewhere]

On Unix, you must have an ANSI/ISO C compiler, such as GCC.

On Windows, you must use Cygnus' GNU-based Cygwin system to build.

3. Type "./configure".

If you want to be able to read XPM (X PixMap) files, and the XPM
library is available on your system, add the argument "--with-xpm" to
your configure command.  (This is mainly of interest to people
designing new games and using X paint programs.)

If you want to install into a nonstandard place, such as /usr/games,
add the argument "--prefix=/usr/games".  This will put executables
into /usr/games/bin, and game library files into /usr/games/lib/xconq.
The default is to install everything under /usr/local; executables
in /usr/local/bin, library files in /usr/local/lib/xconq.

4. Type "make".

If you need to specify special compilation flags, set the variable
CFLAGS on the make command line.  If you need special linktime flags,
such as a path to library directories, use LDFLAGS.

5. If you want test things out before installing, just cd to "x11" (or
"win" if on Windows) and say "./xconq".  You will need to add an
argument like "-L ../lib" if you want to get the game libraries in
this distribution; otherwise Xconq will load whatever games have been
installed already.

6. If you want to install Xconq in your system, type "make install".
The default installation is into /usr/local/bin for xconq and cconq, and
into /usr/local/lib/xconqdir for the game modules and support files.

If you want to put the executables into the traditional /usr/games
instead of /usr/local/bin, add "bindir=/usr/games" to the make install
command.

If you need to install X application defaults somewhere other than
/usr/lib/X11/app-defaults, add "appdefaultsdir=<xxx>" to the make
install command.

If you do not have a program or script "install" on your path,
you can use the "install.sh" in this directory by adding
"INSTALL=<abspath>install.sh" to the "make install", or you can
even use "cp" by saying "INSTALL=cp INSTALL_DATA=cp".

7. The man pages just tell how to start up the programs; the full
Xconq manual has complete details on everything.  A lot of behavior
can be figured out by experimentation and by using the extensive
online help; you can always get to it by typing '?'.

8. If installed in a public place, announce availability.  The library
file "news.txt" provides a convenient place to put in any notes
about changes, new games/scenarios, and so forth.

9. The old version of X11 Xconq is still available, as "xtconq".
Do "make all-xtconq" and "make install-xtconq" to get it.

The SelFile file dialog library may have problems compiling and/or
linking, but it is not required for xtconq.  If you don't want to try
to fix it, you can disable by adding the argument "--disable-selfile".

The curses interface is still available, if anyone cares.  Do
"make all-cconq" and "make install-cconq" to get it.

9b. Customize "Local.config" for your site.  
    Type "xmkmf", then "make Makefiles".

PROBLEMS

Some systems may need you to add CFLAGS=-DSYSV to your make command,
in order for SelFile to compile correctly.

WINDOWS

It is possible to build the X11/Unix version of Xconq for Windows,
using Cygnus Solutions' compatibility package gnu-win32.  Raj Menon,
rxmtemp@mcdata.com, reports that the procedure below works for him:

"- Install Cygwin32 19.1 from http://www.cygnus.com.
- Install X11R6.3 libs from
     http://dao.gsfc.nasa.gov/software/grads/win32/X11R6.3/
- Install the free Starnet X Server (XWin32) from http://www.starnet.com
- Get the source distribution for Xconq.
- add a symlink in /bin to bash in the cygwin distribution (NOTE:
     do not use cygwin sh.  It has a bug that causes xmkmf not to work).
- xmkmf
- make all
- make install

Note: I still have not figured out a way to get the StarNet X Server
to read the defaults from the app-defaults directory.  So for now,
you will need to add the xconq and xshowimf defaults to your
~/.Xdefaults file."

Note that the result looks exactly like the Unix version of Xconq,
and will not run unless an X server is also running on your PC.
