* readline.scm: Only link glue code when the 'readline feature is
authorMarius Vollmer <mvo@zagadka.de>
Tue, 25 Jan 2000 20:20:48 +0000 (20:20 +0000)
committerMarius Vollmer <mvo@zagadka.de>
Tue, 25 Jan 2000 20:20:48 +0000 (20:20 +0000)
not already present.  Thanks to Clark McGrew.

guile-readline/readline.scm

index 1e9e162..02b545b 100644 (file)
   :use-module (ice-9 session)
   :use-module (ice-9 regex))
 
-;;; Dynamically link the glue code for accessing the readline library
+;;; Dynamically link the glue code for accessing the readline library,
+;;; but only when it isn't already present.
 
-(dynamic-call "scm_init_readline" (dynamic-link "libguilereadline.so"))
+(if (not (feature? 'readline))
+    (dynamic-call "scm_init_readline" (dynamic-link "libguilereadline.so")))
 
 ;;; MDJ 980513 <djurfeldt@nada.kth.se>:
 ;;; There should probably be low-level support instead of this code.