]> git.ipfire.org Git - thirdparty/make.git/commitdiff
Guile portability
authorPaul Smith <psmith@gnu.org>
Sun, 29 Jan 2012 16:30:12 +0000 (16:30 +0000)
committerPaul Smith <psmith@gnu.org>
Sun, 29 Jan 2012 16:30:12 +0000 (16:30 +0000)
Don't support Guile 1.6 and use a portable test for printable strings.

ChangeLog
gmk-default.scm

index 1e3964445dd4cb06b80c477d5d0f57088d5413d1..3c52a4a201c9f188e9cf787ba642b375f0882bc7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2012-01-29  Paul Smith  <psmith@gnu.org>
+
+       * gmk-default.scm (to-string-maybe): Use a more portable way to
+       test for unprintable characters.
+       * configure.in [GUILE]: Guile 1.6 doesn't have pkg-config
+
 2012-01-28  Eli Zaretskii  <eliz@gnu.org>
 
        * config.h.W32.template: Update from config.h.in.
index b9161c4e2dfb0b8b8c211a9278ee57fa269c4487..9aca54a52aa4cc512318cfac3fb6d648b087d73b 100644 (file)
@@ -31,8 +31,7 @@
    ((char? x)
     (string x))
    ;; Printable string (no special characters)
-   ((and (string? x)
-         (eq? (string-length (string-delete x char-set:printing)) 0))
+   ((and (string? x) (string-every char-set:printing x))
     x)
    ;; No idea: fail
    (else (error "Unknown object:" x))))