Changeset 1138 for trunk/SConstruct
- Timestamp:
- 08/15/06 13:34:21 (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/SConstruct
r1136 r1138 20 20 moduledir), 21 21 ("rpfitsdir", "Alternative rpfits location.", ""), 22 ("cfitsioincdir", "Alternative cfitsio include dir", ""), 22 23 ("casadir", "Alternative casa location", ""), 23 24 EnumOption("mode", "The type of build.", "debug", … … 38 39 env.SConsignFile() 39 40 env.Append(CASAARCH = '', CASAROOT = '') 40 41 if (os.path.exists(env["cfitsioincdir"])): 42 env.Append(CPPPATH=[env["cfitsioincdir"]]) 43 env.AddCustomPath(env["rpfitsdir"]) 41 44 if not env.GetOption('clean'): 42 45 conf = Configure(env) … … 54 57 conf.env.AddCustomPath(env["rpfitsdir"]) 55 58 if not conf.CheckLib('rpfits'): Exit(1) 56 if not conf.CheckLibWithHeader('cfitsio', 'fitsio.h', 'c'): Exit(1) 59 # cfitsio is either in include/ or /include/cfitsio 60 # handle this 61 if not conf.CheckLib(library='cfitsio', language='c'): Exit(1) 62 if not conf.CheckHeader('fitsio.h', language='c'): 63 if not conf.CheckHeader('cfitsio/fitsio.h', language='c'): 64 Exit(1) 65 else: 66 conf.env.Append(CPPPATH=['/usr/include/cfitsio']) 57 67 if (sys.platform == "darwin"): 58 68 conf.env.Append(LIBS = ['-framework vecLib'])
Note:
See TracChangeset
for help on using the changeset viewer.