1 ;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*-
2 ;;;; *************************************************************************
3 ;;;; FILE IDENTIFICATION
5 ;;;; Name: foreign-loader.lisp
6 ;;;; Purpose: Loads foreign libraries
7 ;;;; Author: Kevin M. Rosenberg
8 ;;;; Date Started: Feb 2002
10 ;;;; $Id: foreign-loader.lisp,v 1.3 2003/06/26 18:02:08 kevin Exp $
12 ;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg
14 ;;;; UFFI users are granted the rights to distribute and use this software
15 ;;;; as governed by the terms of the Lisp Lesser GNU Public License
16 ;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL.
17 ;;;; *************************************************************************
19 ;;; For CMUCL, it's necessary to load foreign files separate from their
22 (in-package :uffi-tests)
24 (eval-when (:compile-toplevel :load-toplevel :execute)
25 (unless (uffi:load-foreign-library
27 (uffi:find-foreign-library
29 '("/usr/local/lib/" "/usr/lib/" "/zlib/")
32 (uffi:find-foreign-library "z"
33 `(,(pathname-directory *load-pathname*)))
35 :supporting-libraries '("c"))
36 (warn "Unable to load zlib")))
38 (unless (uffi:load-foreign-library
39 (uffi:find-foreign-library "uffi-c-test-lib"
41 (pathname-directory *load-truename*)
43 :supporting-libraries '("c"))
44 (warn "Unable to load uffi-c-test-lib library"))