diff --git a/guile-readline/readline.scm b/guile-readline/readline.scm index 02b545b40..faf890170 100644 --- a/guile-readline/readline.scm +++ b/guile-readline/readline.scm @@ -23,7 +23,8 @@ (define-module (ice-9 readline) :use-module (ice-9 session) - :use-module (ice-9 regex)) + :use-module (ice-9 regex) + :no-backtrace) ;;; Dynamically link the glue code for accessing the readline library, ;;; but only when it isn't already present. @@ -31,6 +32,13 @@ (if (not (feature? 'readline)) (dynamic-call "scm_init_readline" (dynamic-link "libguilereadline.so"))) +(if (not (feature? 'readline)) + (scm-error 'misc-error + #f + "readline is not provided in this Guile installation" + '() + '())) + ;;; MDJ 980513 : ;;; There should probably be low-level support instead of this code.