summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLudovic Courtès <ludo@gnu.org>2019-08-17 19:24:08 +0200
committerLudovic Courtès <ludo@gnu.org>2019-08-17 19:26:21 +0200
commit611a64bd7e0893057cd04dcdc2a8d5e7ecc39e45 (patch)
treedaa43a885db5aa8289e27dd6cf55f1f275f9c5c1
parent23ab21fa9d4ed47035dc446b10e9110243d9cdf0 (diff)
build: 'GUIX_CHECK_GUILE_JSON' really checks for Guile-JSON 3.x.
Until now the 'guile' process would always exit with 0, as long as Guile-JSON is installed, whether it's version 1 or version 3. * m4/guix.m4 (GUIX_CHECK_GUILE_JSON): Fix array syntax and remove catch-all 'match' clause.
-rw-r--r--m4/guix.m45
1 files changed, 2 insertions, 3 deletions
diff --git a/m4/guix.m4 b/m4/guix.m4
index 716bfb08ec8..8be7cca54f6 100644
--- a/m4/guix.m4
+++ b/m4/guix.m4
@@ -184,9 +184,8 @@ AC_DEFUN([GUIX_CHECK_GUILE_JSON], [
184 [guix_cv_have_recent_guile_json], 184 [guix_cv_have_recent_guile_json],
185 [GUILE_CHECK([retval], 185 [GUILE_CHECK([retval],
186 [(use-modules (json) (ice-9 match)) 186 [(use-modules (json) (ice-9 match))
187 (match (json-string->scm \"[[] { \\\"a\\\": 42 } []]\") 187 (match (json-string->scm \"[[ { \\\"a\\\": 42 } ]]\")
188 (#(("a" . 42)) #t) 188 (#((("a" . 42))) #t))])
189 (_ #f))])
190 if test "$retval" = 0; then 189 if test "$retval" = 0; then
191 guix_cv_have_recent_guile_json="yes" 190 guix_cv_have_recent_guile_json="yes"
192 else 191 else