From: espen Date: Sun, 19 Feb 2006 19:20:20 +0000 (+0000) Subject: Added code to detect if SBCL is missing or has duplicate C callback support X-Git-Url: https://git.distorted.org.uk/~mdw/clg/commitdiff_plain/f204f1f567d019d4f5472180fe7aca2f80688ccb Added code to detect if SBCL is missing or has duplicate C callback support --- diff --git a/glib/glib.asd b/glib/glib.asd index 668c59b..5c18f0b 100644 --- a/glib/glib.asd +++ b/glib/glib.asd @@ -30,6 +30,17 @@ (when (string>= (lisp-implementation-version) "0.9.8") (push :sbcl>=0.9.8 *features*)) +#+(and sbcl (not alien-callbacks)) +(eval-when (:compile-toplevel :load-toplevel :execute) + (unless (find-symbol "DEFINE-ALIEN-FUNCTION" "SB-ALIEN") + (error "You need to upgrade SBCL to a version with native C callback support or see the README file about how to add third party callbacks to your current SBCL version."))) + +#+(and sbcl alien-callbacks) +(eval-when (:compile-toplevel :load-toplevel :execute) + (when (find-symbol "DEFINE-ALIEN-FUNCTION" "SB-ALIEN") + (error "Third party C callback code detected in a SBCL image with native callback support. As clg now uses native callbacks when available, you need to use a \"clean\" core file."))) + + (defsystem glib :depends-on (clg-tools) :components ((:file "defpackage")