- (let ((searched (or
- (probe-file #p"/usr/lib/clsql/uffi.so")
- (probe-file (make-pathname
- :directory *asd-file-dir*
- :name "db-mysql"
- :type "so")))))
- (if searched
- (list searched)
- (list (merge-pathnames
- (make-pathname :name (component-name c)
- :type "so"
- :directory '(:relative "db-mysql"))
- (make-pathname :directory *asd-file-dir*))))))
+ (let ((found (some #'(lambda (dir)
+ (probe-file (make-pathname :directory dir
+ :name (component-name c)
+ :type "so")))
+ '((:absolute "usr" "lib" "clsql")))))
+ (list (if found
+ found
+ (make-pathname :name (component-name c)
+ :type "so"
+ :directory *library-file-dir*)))))