Changeset 1327


Ignore:
Timestamp:
04/12/07 13:28:19 (17 years ago)
Author:
mar637
Message:

enabled customisable lib names

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SConstruct

    r1326 r1327  
    3333                ("lapacklib",
    3434                 "The lapack library name (e.g. for specialized AMD libraries",
    35                  None),
     35                 "lapack"),
    3636                ("blasroot",
    3737                 "The root directory where blas is installed", None),
     
    3939                ("blaslib",
    4040                 "The blas library name (e.g. for specialized AMD libraries",
    41                  None),
     41                 "blas"),
    4242                ("cfitsioroot",
    4343                 "The root directory where cfistio is installed", None),
    4444                ("cfitsiolibdir", "The cfitsio library location", None),
     45                ("cfitsiolib", "The cfitsio library name", "cfitsio"),
    4546                ("cfitsioincdir", "The cfitsio include location", None),
    4647                ("wcsroot",
     
    106107    if not conf.CheckLib("m"): Exit(1)
    107108    conf.env.AddCustomPackage('cfitsio')
    108     if not conf.CheckLibWithHeader('cfitsio', 'fitsio.h', language='c'):
     109    if not conf.CheckLibWithHeader(conf.env["cfitsiolib"],
     110                                   'fitsio.h', language='c'):
    109111        Exit(1)
    110112    conf.env.AddCustomPackage('wcs')
     
    117119    blasname = conf.env.get("blaslib", "blas")
    118120    conf.env.AddCustomPackage("blas")
    119     if not conf.CheckLib(blasname): Exit(1)
    120     lapackname = conf.env.get("lapacklib", "lapack")
     121    if not conf.CheckLib(conf.env["blaslib"]): Exit(1)
    121122    conf.env.AddCustomPackage("lapack")
    122     if not conf.CheckLib(lapackname): Exit(1)
     123    if not conf.CheckLib(conf.env["lapacklib"]): Exit(1)
    123124    conf.env.CheckFortran(conf)
    124125    if not conf.CheckLib('stdc++', language='c++'): Exit(1)
Note: See TracChangeset for help on using the changeset viewer.