Changeset 25567 in project


Ignore:
Timestamp:
11/25/11 08:44:59 (9 years ago)
Author:
Ivan Raikov
Message:

bvsp-spline: added a check for the presence of bvspis source

File:
1 edited

Legend:

Unmodified
Added
Removed
  • release/4/bvsp-spline/trunk/bvsp-spline.setup

    r25420 r25567  
    99(define fortran-libs (or (get-environment-variable "FORTRAN_LIBS") "-lgfortran"))
    1010
    11 (run (,fortran-compiler  ,fortran-flags -c bvspis/Src/Dp/src.f -o dbvspis.o))
     11(define bvspis-path (or (get-environment-variable "BVSPIS_PATH") "bvspis"))
     12
     13(if (not (file-exists? (make-pathname bvspis-path "Src/Dp/src.f")))
     14    (begin
     15      (print "\n\nUnable to figure out the location of the BVSPIS Fortran library.\n"
     16             "You will need to supply the BVSPIS source code in order to compile this package.\n"
     17             "You can download and unpack BVSPIS as follows: \n\n"
     18             "    wget http://www.netlib.org/toms/770\n"
     19             "    mkdir bvspis && awk 'NR>4' 770 > bvspis/bvspis.sh && chmod u+x bvspis/bvspis.sh\n"
     20             "    pushd bvspis && ./bvspis.sh && popd\n\n"
     21             "Then set the BVSPIS_PATH environment variable to $PWD/bvspis and run chicken-install again:\n\n"
     22             "    BVSPIS_PATH=$PWD/bvspis chicken-install bvsp-spline")
     23      (exit 1)))
     24             
     25
     26(run (,fortran-compiler  ,fortran-flags -c ,bvspis-path -o dbvspis.o))
    1227(compile -O3 -d0 -S -s bvsp-spline.scm dbvspis.o -j bvsp-spline ,fortran-libs)
    1328(compile -O3 -d0 -s bvsp-spline.import.scm)
Note: See TracChangeset for help on using the changeset viewer.