r2386: *** empty log message ***
[uffi.git] / uffi.asd
index fd51b51e89318dfdf7e3d8606cf81a82049e2576..1fc30bc1cf55ae98936c0ba19d95af95b62ed7b5 100644 (file)
--- a/uffi.asd
+++ b/uffi.asd
@@ -7,7 +7,7 @@
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Aug 2002
 ;;;;
-;;;; $Id: uffi.asd,v 1.3 2002/08/18 02:26:01 kevin Exp $
+;;;; $Id: uffi.asd,v 1.4 2002/08/23 19:21:54 kevin Exp $
 ;;;;
 ;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
 ;;;;
 (declaim (optimize (debug 3) (speed 3) (safety 1) (compilation-speed 0)))
 (in-package :cl-user)
 
-;; For use with non-Debian installations
-(let ((helper-pathname (make-pathname :name "set-cl-library" :type "cl"
+;; For use with non-Common Lisp Controller installations
+#-common-lisp-controller
+(let ((path (make-pathname :name "set-logical" :type "cl"
                                      :defaults *load-truename*)))
-  (when (probe-file helper-pathname)
-      (load helper-pathname)))
+  (when (probe-file path)
+    (load path)
+    (set-logical-host-for-pathname 
+     "uffi" 
+     (make-pathname :host (pathname-host *load-truename*)
+                   :device (pathname-device *load-truename*)
+                   :directory (pathname-directory *load-truename*)))))
+
+(defconstant +clsql-logical-host+
+  #+common-lisp-controller "cl-library"
+  #-common-lisp-controller "clsql"
+  "Logical hostname for loading system")
 
 (in-package :asdf)
 
@@ -41,8 +52,9 @@
   :long-description "UFFI provides a universal foreign function interface (FFI) for Common Lisp. UFFI supports CMUCL, Lispworks, and AllegroCL."
   
   :default-component-class uffi-cl-source-file
-  :pathname #-mcl "cl-library:uffi;"
-  #+mcl "cl-library:uffi;mcl;"
+  :pathname 
+  #-mcl #.(format nil "~A:uffi;" cl-user:+clsql-logical-host+)
+  #+mcl  #.(format nil "~A:uffi;mcl;" cl-user:+clsql-logical-host+)
   :perform (load-op :after (op uffi)
                    (pushnew :uffi cl:*features*))
   :components