r2605: *** empty log message ***
[uffi.git] / uffi.system
index 545fd4760a0ee2e96eacda9fbae4d3dfde25db92..df0cd1e4f31cbc568d99d6d3110ec02912063155 100644 (file)
@@ -7,7 +7,7 @@
 ;;;; Programmer:    Kevin M. Rosenberg
 ;;;; Date Started:  Feb 2002
 ;;;;
-;;;; $Id: uffi.system,v 1.15 2002/07/26 03:18:27 kevin Exp $
+;;;; $Id: uffi.system,v 1.19 2002/08/23 19:46:16 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 :make)
 
-;; 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*)))))
 
-;;; UFFI system definition
+(defconstant +uffi-logical-host+
+  #+common-lisp-controller "cl-library"
+  #-common-lisp-controller "uffi"
+  "Logical hostname for loading system")
 
 (make:defsystem :uffi
-    :source-pathname #-mcl "cl-library:uffi;"
-                     #+mcl "cl-library:uffi;mcl;"
+    :source-pathname 
+    #-mcl #.(format nil "~A:uffi;" +uffi-logical-host+)
+    #+mcl  #.(format nil "~A:uffi;mcl;" +uffi-logical-host+)
     :source-extension "cl"
     :components 
     ((:file "package")
@@ -41,4 +51,3 @@
      (:file "libraries" :depends-on ("package")))
     :finally-do
     (pushnew :uffi cl:*features*))
-