Remove CVS $Id$ keyword
[clsql.git] / db-sqlite3 / sqlite3-loader.lisp
index 9efaf1f37f80c1708748df8b3f3f06a3c8785724..90264ea62aeb531746251c7d72378b5fa7f8692d 100644 (file)
@@ -7,8 +7,6 @@
 ;;;; Programmer:    Aurelio Bignoli
 ;;;; Date Started:  Oct 2004
 ;;;;
-;;;; $Id$
-;;;;
 ;;;; This file, part of CLSQL, is Copyright (c) 2004 by Aurelio Bignoli
 ;;;;
 ;;;; CLSQL users are granted the rights to distribute and use this software
@@ -31,16 +29,9 @@ set to the right path before compiling or loading the system.")
   *sqlite3-library-loaded*)
 
 (defmethod database-type-load-foreign ((database-type (eql :sqlite3)))
-  (let ((libpath (uffi:find-foreign-library
-                 '("libsqlite3" "sqlite3")
-                 '(#+64bit "/usr/lib64/"
-                   "/usr/lib/" "/usr/local/lib/" "/bin/")
-                 :drive-letters '("C" "D" "E"))))
-    (if (uffi:load-foreign-library libpath
-                                  :module "sqlite3"
-                                  :supporting-libraries 
-                                  *sqlite3-supporting-libraries*)
-       (setq *sqlite3-library-loaded* t)
-       (warn "Can't load Sqlite3 library ~A" libpath))))
+  (clsql-uffi:find-and-load-foreign-library '("libsqlite3" "sqlite3")
+                                            :module "sqlite3"
+                                            :supporting-libraries *sqlite3-supporting-libraries*)
+  (setq *sqlite3-library-loaded* t))
 
 (clsql-sys:database-type-load-foreign :sqlite3)