Build instructions
==================

ReSCAL package comprises several programs located in src directory.

It has a standard build procedure. From the current directory, type 
the following commands:

./configure
make

Needed development libraries are glib-2.0, gtk+-2.0, gdk-pixbuf, 
pthread and gd2.


Compiling on Ubuntu
-------------------
If you wish to compile on a recent Ubuntu distribution, make sure 
that the packages libgd2-xpm-dev and libgtk2.0-dev are already 
installed.


Compiling on MacOS X
--------------------
On MacOS X, needed packages are named pkgconfig, gtk2 and gd2.
if you use Darwin Ports or MacPorts (http://www.macports.org/)
- sudo port upgrade --enforce-variants gd2  (you may not need
   --enforce-variants: because of some conflist with libtool "Warning:
   Skipping upgrade since libtool 2.2.6b_1 >= libtool 2.2.6b_1, even
   though installed variants "" do not match "+darwin". Use 'upgrade
   --enforce-variants' to switch to the requested variants. )"
- CFLAGS='-I/opt/local/include' LDFLAGS='-L/opt/local/lib' LDLIBS='-lgd' ./configure

Alternative procedure
---------------------
You may try to use the customizable makefile located in src directory:
cd src
make -f makefile.default

If errors still occur, check the variables in makefile.default.


