diff options
author | 2016-04-20 09:45:46 +0200 | |
---|---|---|
committer | 2016-04-24 19:19:05 +0200 | |
commit | b295d3402ddebfd2ca3aa052a32880df8d9060a2 (patch) | |
tree | e9446bbb6a923c84ea483dd6d83cc203acc506b0 /configure.ml | |
parent | 96bb190caa138c91b4d5e5f96d6f179811a177c8 (diff) |
One more word about checking 4.01.0 with -debug and camlp4.
Diffstat (limited to 'configure.ml')
-rw-r--r-- | configure.ml | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/configure.ml b/configure.ml index 83005f0c5..9fdd451f1 100644 --- a/configure.ml +++ b/configure.ml @@ -598,10 +598,11 @@ let check_camlp5_version () = | _ -> die "Error: unsupported Camlp5 (version < 5.01 or unrecognized).\n" let check_caml_version_for_camlp4 () = - if caml_version_nums = [4;1;0] && !Prefs.debug then - die ("Your version of OCaml is 4.01.0 which fails to compile Coq in -debug\n" ^ - "mode with Camlp4. Remove -debug option or use a different version of OCaml\n" ^ - "or use Camlp5.\n") + if caml_version_nums = [4;1;0] && !Prefs.debug && not !Prefs.force_caml_version then + die ("Your version of OCaml is detected to be 4.01.0 which fails to compile\n" ^ + "Coq in -debug mode with Camlp4. Remove -debug option or use a different\n" ^ + "version of OCaml or use Camlp5, or bypass this test by using option\n" ^ + "-force-caml-version.\n") let config_camlpX () = try |