| 1 | (************************************************************************) |
| 2 | (* * The Rocq Prover / The Rocq Development Team *) |
| 3 | (* v * Copyright INRIA, CNRS and contributors *) |
| 4 | (* <O___,, * (see version control and CREDITS file for authors & dates) *) |
| 5 | (* \VV/ **************************************************************) |
| 6 | (* // * This file is distributed under the terms of the *) |
| 7 | (* * GNU Lesser General Public License Version 2.1 *) |
| 8 | (* * (see LICENSE file for the text of the license) *) |
| 9 | (************************************************************************) |
| 10 | |
| 11 | type prefix = RelocatableInstall | Prefix of string |
| 12 | |
| 13 | type nativecompiler = NativeYes | NativeNo | NativeOndemand |
| 14 | |
| 15 | module Prefs : sig |
| 16 | |
| 17 | (** User-setable options from command line [configure] arugments *) |
| 18 | type t = |
| 19 | { prefix : prefix option |
| 20 | (** root prefix for installation *) |
| 21 | ; quiet : bool |
| 22 | (** whether to display a summary *) |
| 23 | ; interactive : bool |
| 24 | (** whether to ask for unspecified values *) |
| 25 | ; libdir : string option |
| 26 | (** override $prefix/lib/coq *) |
| 27 | ; configdir : string option |
| 28 | (** override /etc/xdg/coq *) |
| 29 | ; datadir : string option |
| 30 | (** override $prefix/share/coq *) |
| 31 | ; docdir : string option |
| 32 | (** override $prefix/doc *) |
| 33 | ; arch : string option |
| 34 | (** override arch auto-detection *) |
| 35 | ; natdynlink : bool |
| 36 | (** native dynlink enabled [only relevant to coq_makefile] *) |
| 37 | ; browser : string option |
| 38 | (** override default browser command [for RocqIDE] *) |
| 39 | ; bytecodecompiler : bool |
| 40 | (** Enable/disable Rocq's VM *) |
| 41 | ; nativecompiler : nativecompiler |
| 42 | (** Enable/disable Rocq's native compiler *) |
| 43 | ; coqwebsite : string |
| 44 | (** Override Rocq's website, used by distributions *) |
| 45 | ; debug : bool |
| 46 | (** Debug package and environment detection *) |
| 47 | } |
| 48 | |
| 49 | end |
| 50 | |
| 51 | val parse_args : unit -> Prefs.t |
| 52 | |
| 53 | val cprintf : Prefs.t -> ('a, out_channel, unit, unit) format4 -> 'a |