list-chicken-import-libs pasted by mario-goulart on Thu Mar 5 20:53:05 2020

(module list-chicken-import-libs ()

(import scheme)
(import
 (chicken file)
 (chicken foreign)
 (chicken pathname)
 (chicken pretty-print)
 (chicken string))

(pp
 (cons
  "srfi-4"
  (map (lambda (unit)
         (string-chomp (pathname-strip-directory unit)
                       ".import.so"))
       (glob (make-pathname (list (foreign-value "C_INSTALL_PREFIX" c-string)
                                  "lib"
                                  "chicken"
                                  "11")
                            "chicken*.import.so")))))
) ;; end module

list-chicken-import-libs with C_INSTALL_EGG_HOME added by mario-goulart on Thu Mar 5 21:17:53 2020

(module list-chicken-import-libs ()

(import scheme)
(import
 (chicken file)
 (chicken foreign)
 (chicken pathname)
 (chicken pretty-print)
 (chicken string))

(pp
 (cons
  "srfi-4"
  (map (lambda (unit)
         (string-chomp (pathname-strip-directory unit)
                       ".import.so"))
       (glob (make-pathname (foreign-value "C_INSTALL_EGG_HOME" c-string)
                            "chicken*.import.so")))))
) ;; end module