diff options
| author | coqbot-app[bot] | 2020-11-18 18:06:59 +0000 |
|---|---|---|
| committer | GitHub | 2020-11-18 18:06:59 +0000 |
| commit | e2f2966c453ecdf788ee1c15d62be68da2cddebe (patch) | |
| tree | 5cd4aa804515004ea23a9137061a922fe6792276 /configure.ml | |
| parent | e6334138fc9f596434980e36850c2b90d60a50a8 (diff) | |
| parent | c3ea4b4c9ace031d70e55326675b63ddce8d9b3c (diff) | |
Merge PR #13410: [configure] check that zarith dev files are available
Reviewed-by: ejgallego
Ack-by: silene
Diffstat (limited to 'configure.ml')
| -rw-r--r-- | configure.ml | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.ml b/configure.ml index 7fd1acb53e..6a4b1f9a75 100644 --- a/configure.ml +++ b/configure.ml @@ -692,10 +692,13 @@ let operating_system = let check_for_zarith () = let zarith,_ = tryrun camlexec.find ["query";"zarith"] in + let zarith_cmai base = Sys.file_exists (base / "z.cmi") && Sys.file_exists (base / "zarith.cma") in let zarith_version, _ = run camlexec.find ["query"; "zarith"; "-format"; "%v"] in match zarith with | "" -> die "Zarith library not installed, required" + | _ when not (zarith_cmai zarith) -> + die "Zarith library installed but no development files found (try installing the -dev package)" | _ -> let zarith_version_int = List.map int_of_string (numeric_prefix_list zarith_version) in if zarith_version_int >= [1;10;0] then |
