Building AstroFrames
====================

Prerequisites:
- GNAT 3.13 or higher (ftp.cs.nyu.edu)
- GLIB 1.2.2 or higher (including development headers)
- GTK+ 1.2.2 or higher (including development headers)
- GtkAda 1.2.12 or higher (libre.act-europe.fr)
- Swiss Ephemeris (www.astro.com)

The Swiss Ephemeris library libswe.a must be installed in a standard
library path, or be on LD_LIBRARY_PATH before building AstroFrames.

The environment variable SE_EPHE_PATH must be defined to point to a 
directory containing ephemeris files before executing the program.


UNIX-like OS instructions
=========================

To build AstroFrames, you first need to install GNAT and GtkAda, then
do the following:
   $ ./configure --prefix=<prefix>
   $ make
   $ make install

If the --prefix switch is omitted, the astroframes and julian executables
go into the standard OS locations for binaries.  Note the need for
superuser privileges for "make install" in such a case.

It is possible to specify the name of the gnat compiler when it is
different from gcc (e.g. gnatgcc). The following options are provided:
   - Specify the name of the compiler at configure time
      $ CC=<your-gnat-compiler> ./configure <...>
      $ make
   - Specify the name of the compiler when invoking make
      $ ./configure <...>
      $ make CC=<your-gnat-compiler>

"make check" builds and executes a set of unit tests for AstroFrames.


Windows Instructions
====================

For the binary distribution, simply execute AF_Setup.exe, and follow 
the instructions.

If you already have a gtkrc, we recommend not to replace it.
If you have another program that uses the Swiss Ephemeris (especially
Solar Fire 5), select its ephemeris directory during the installation.

To build for Windows, you will need Glide, or will have to adapt the
file windows.adp found in each of the astroframes, julian and tests
directories.  In any case the project search paths will need to be
adapted to match the installation of GnatPro, GtkAda and sweph on the
build machine.  Build from within Glide.
