Raise error on SRFI-18 load if Guile built without threading support

Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
Julian Graham 2008-08-30 13:49:38 -04:00 committed by Ludovic Courtès
commit d0b6ad3491
3 changed files with 10 additions and 2 deletions

View file

@ -1,3 +1,8 @@
2008-08-30 Julian Graham <joolean@gmail.com>
* srfi-18.scm: Raise error if Guile not built with threading
support.
2008-08-25 Ludovic Courtès <ludo@gnu.org>
* Makefile.am (AM_CFLAGS): New.

View file

@ -89,6 +89,9 @@
make-condition-variable
raise))
(if (not (provided? 'threads))
(error "SRFI-18 requires Guile with threads support"))
(cond-expand-provide (current-module) '(srfi-18))
(define (check-arg-type pred arg caller)

View file

@ -19,10 +19,10 @@
;;;; Boston, MA 02110-1301 USA
(define-module (test-suite test-srfi-18)
#:use-module (test-suite lib)
#:use-module (srfi srfi-18))
#:use-module (test-suite lib))
(and (provided? 'threads)
(use-modules (srfi srfi-18))
(with-test-prefix "current-thread"