X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=tests%2Fcompress.cl;h=ec35750d79ce013517b05789884cd96f97f9ff6b;hb=47f88e60899603d0ae74d3ff28cac9852067e3d4;hp=e077e0ab242a627317bf18f46486894c5270e61e;hpb=bf5c7e7c36474375604bcbcedea8794a68dd1784;p=uffi.git diff --git a/tests/compress.cl b/tests/compress.cl index e077e0a..ec35750 100644 --- a/tests/compress.cl +++ b/tests/compress.cl @@ -1,4 +1,4 @@ -;;;; -*- Mode: LISP; Syntax: ANSI-Common-Lisp; Base: 10 -*- +;;;; -*- Mode: Lisp; Syntax: ANSI-Common-Lisp; Base: 10 -*- ;;;; ************************************************************************* ;;;; FILE IDENTIFICATION ;;;; @@ -7,7 +7,7 @@ ;;;; Programmer: Kevin M. Rosenberg ;;;; Date Started: Feb 2002 ;;;; -;;;; $Id: compress.cl,v 1.7 2002/03/14 21:03:12 kevin Exp $ +;;;; $Id: compress.cl,v 1.10 2002/04/01 21:20:00 kevin Exp $ ;;;; ;;;; This file, part of UFFI, is Copyright (c) 2002 by Kevin M. Rosenberg ;;;; @@ -18,9 +18,13 @@ (in-package :cl-user) -(unless (uffi:load-foreign-library "/usr/lib/libz.so" - :module "zlib" - :supporting-libraries '("c")) +(unless (uffi:load-foreign-library + (uffi:find-foreign-library + "libz" + '("/usr/local/lib/" "/usr/lib" "/zlib") + :types '("so" "a")) + :module "zlib" + :supporting-libraries '("c")) (warn "Unable to load zlib")) (uffi:def-function ("compress" c-compress)