Commit a9c418a0 a9c418a0bb36d0a8a7df9c09f4f939ab15d91afc by Sergey Poznyakoff

Explicitly load libmailbox before loading libmu_scm. Fixed 1.6 branch of the conditional.

1 parent 1e3c90eb
......@@ -21,16 +21,17 @@ changequote([,])dnl
(define-module (mailutils))
(let ((lib-path "LIBDIR/"))
(dynamic-link (string-append lib-path "libmailbox"))
(cond
((or (string=? (version) "1.4")
(string=? (version) "1.4.1"))
(dynamic-link (string-append lib-path "libmailbox"))
(dynamic-call "mu_scm_init"
(dynamic-link (string-append
lib-path
"libguile-mailutils-v-VERSION"))))
(else
(load-extension "libguile-mailutils-v-VERSION" "mu_scm_init"))))
(load-extension (string-append
lib-path "libguile-mailutils-v-VERSION") "mu_scm_init"))))
(export mu-package)
(export mu-package-string)
......