[pro] library configuration

Tamas Papp tkpapp at gmail.com
Tue Jun 28 12:26:24 UTC 2011


Hi,

A user of my LLA library asked for more flexibility in specifying which 
foreign library to load.  For example, BLAS/LAPACK come in so many 
variants that it is impossible to cover them with the :or feature of 
cffi:define-foreign-library, especially because users have their own 
preferences when more than one is available.

I am looking for a portable way to specify configuration for a library 
before/during loading with ASDF2.  It would be sufficient if the user 
could specify an ALIST (or something similar) somewhere and I could read/
use it when the library is loaded.  Does ASDF2 have a "standard" 
mechanism for library config files (eg where they are, how to handle them 
etc), or should I use something else?  I thought of using *features*, but 
I need actual values instead of merely checking for the presence of 
symbols.

Any suggestions are welcome.

Thanks,

Tamas





More information about the pro mailing list