;;;; Programmer: Kevin M. Rosenberg
;;;; Date Started: Feb 2002
;;;;
-;;;; $Id: compress.cl,v 1.9 2002/03/20 04:56:52 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
;;;;
(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)