X-Git-Url: http://git.kpe.io/?a=blobdiff_plain;f=db-sqlite%2Fsqlite-loader.lisp;h=59baaee3822d4cfe8d81b0a0dcb477775e1c27ab;hb=d0b5c8c2a14929792d2d5818b57db27cae4484b2;hp=65d4d5354aa57c8bd2e3ca2453f1af89a9c0f49e;hpb=73cf858d596ad1d51c745b478292433617cf9d72;p=clsql.git diff --git a/db-sqlite/sqlite-loader.lisp b/db-sqlite/sqlite-loader.lisp index 65d4d53..59baaee 100644 --- a/db-sqlite/sqlite-loader.lisp +++ b/db-sqlite/sqlite-loader.lisp @@ -16,28 +16,25 @@ ;;;; (http://opensource.franz.com/preamble.html), also known as the LLGPL. ;;;; ************************************************************************* -(in-package :clsql-sqlite) +(in-package #:clsql-sqlite) (defvar *sqlite-supporting-libraries* '("c") "Used only by CMU. List of library flags needed to be passed to ld to load the SQLite library succesfully. If this differs at your site, set to the right path before compiling or loading the system.") -(defvar *sqlite-library-loaded* #+clisp t - #-clisp nil - "T if foreign library was able to be loaded successfully") +(defvar *sqlite-library-loaded* nil + "T if foreign library was able to be loaded successfully") (defmethod database-type-library-loaded ((database-type (eql :sqlite))) "T if foreign library was able to be loaded successfully. " *sqlite-library-loaded*) (defmethod database-type-load-foreign ((database-type (eql :sqlite))) - #+clisp - t - #-clisp (let ((libpath (uffi:find-foreign-library - "libsqlite" - '("/usr/lib/" "/usr/local/lib/") + '("libsqlite" "sqlite") + '(#+64bit "/usr/lib64/" + "/usr/lib/" "/usr/local/lib/" "/bin/") :drive-letters '("C" "D" "E")))) (if (uffi:load-foreign-library libpath :module "sqlite" @@ -46,7 +43,7 @@ set to the right path before compiling or loading the system.") (setq *sqlite-library-loaded* t) (warn "Can't load SQLite library ~A" libpath)))) -(clsql-base-sys:database-type-load-foreign :sqlite) +(clsql-sys:database-type-load-foreign :sqlite)