*********************************************************************

		Constraint Logic Programming Languages
			CAL written in CESP

                        INSTALL

*********************************************************************

1. Environment

(a) CESP Ver.3
    Machine  :SUN3,SUN4,SPARC
    OS       :SUNOS 4.0.3,SUNOS4.1
    Detail information are described in the CESP Ver.3 manuals.
    Notice : Foreign Language Interface also must be installed.
             Check 'cespFLI.h' and 'cespFLIlink.c'
(b) Emacs , CESP Emacs interface must be available.
    Command 'run-CESP' should be available.
    Detail information are described in the CESP Ver.3 manuals.
(c) C language compiler 
    Detail information are described in the CESP Ver.3 manuals.
(d) GNU MP
    Detail information are described in the GNU MP document.
    See the file gmp.texi,README,INSTALL
    Notice : Check Four include files. '*.h'

(e) Free area of Disk should be more than 50Mbyte.
(f) Memory should be more than 32Mbyte.

2. How to Compile
(a) Decode cal.package.tar.Z by uncompress and tar.
            %uncompress cal.package.tar
            %tar xvf cal.package.tar
(b) Change current directory to cal and run CESP on Emacs.
            %cd cal  
            %Emacs -f run-CESP 
(c) Change mode to librarian.
            CESP>lib
(d) Run cal.comp.com , command file for compilation saving.
            LIBMAN>@cal.comp
(e) Run debugger.
            LIBMAN>exit
            CESP>deb
(f) Run CAL.
            ??-:cal(#cal).
(g) Exit CAL.
            CAL>halt.


3. Load CAL system and run

(a) Run CESP on Emacs.
            %Emacs -f run-CESP 
(b) Run librarian
            CESP>lib
(c) Run cal.load.com , command file for loading.
            LIBMAN>@cal.load
(d) Run debugger.
            LIBMAN>exit
            CESP>deb
(e) Run CAL
            ??-:cal(#cal).

4. Customize

(a) CESP
file: esprc
    Set memory area.
    You can increase area of each Stacks.Big area makes CAL faster.
    Detail information are described in the CESP Ver.3 manuals.

(b) CAL
file: cal.init
    Path to files.

    system_dir("System_dir").
ex. system_dir("~/cal/system").
    system_dir("/home/cal/system").
        % Pass to the solver source file.(*.slv.esp)
    current_dir("Sample_dir").
ex. current_dir("~/cal/sample/alg").
    current_dir("home/cal/sample").
        % Pass to the CAL application program.
