aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjbapple2014-10-27 17:49:43 -0700
committerPierre Boutillier2014-10-28 09:09:56 +0100
commit2d88f205592d279bc7a57e0901522214770c2948 (patch)
treee6e4994352b5eaaef32ae9603ba7a016703cbb4b
parenta138fad67455ed2f48a222e4697d24d5aafed30b (diff)
Allow camlp5 to have version numbers like "6.09-exp"
-rw-r--r--configure.ml2
1 files changed, 1 insertions, 1 deletions
diff --git a/configure.ml b/configure.ml
index 68674805bc..e62ce3f2fa 100644
--- a/configure.ml
+++ b/configure.ml
@@ -566,7 +566,7 @@ let check_camlp5_version () =
let version_line, _ = run ~err:StdOut camlexec.p4 ["-v"] in
let version = List.nth (string_split ' ' version_line) 2 in
match string_split '.' version with
- | major::minor::_ when (s2i major, s2i minor) >= (5,1) ->
+ | major::minor::_ when s2i major > 5 || (s2i major, s2i minor) >= (5,1) ->
printf "You have Camlp5 %s. Good!\n" version
| _ -> failwith "bad version"
with _ -> die "Error: unsupported Camlp5 (version < 5.01 or unrecognized).\n"