package dune-configurator

  1. Overview
  2. Docs
Helper library for gathering system configuration

Install

Dune Dependency

Authors

Maintainers

Sources

dune-3.13.1.tbz
sha256=2fe0af1b4cf98649c7555b555d9f4f81d5ded87718a89df4988e214a56c8a916
sha512=25b95d616f5d62d065c4458caa211c20615e1bf361fd13d6fd037c216b9566034b45581b7b1dfe43f051c3cdbcf5fe8ffb9c74b5974f2fb6204a3da11ea87c28

doc/dune-configurator/Configurator/V1/index.html

Module Configurator.V1Source

Sourcetype t
Sourceval create : ?dest_dir:string -> ?ocamlc:string -> ?log:(string -> unit) -> string -> t
Sourceval ocaml_config_var : t -> string -> string option

Return the value associated to a variable in the output of ocamlc -config

Sourceval ocaml_config_var_exn : t -> string -> string
Sourceval c_test : t -> ?c_flags:string list -> ?link_flags:string list -> string -> bool

c_test t ?c_flags ?link_flags c_code try to compile and link the C code given in c_code. Return whether compilation was successful.

Sourcemodule C_define : sig ... end
Sourcemodule Pkg_config : sig ... end
Sourcemodule Flags : sig ... end
Sourceval which : t -> string -> string option

which t prog seek prog in the PATH and return the name of the program prefixed with the first path where it is found. Return None the the program is not found.

Sourcemodule Process : sig ... end

Execute external programs.

Sourceval main : ?args:(Arg.key * Arg.spec * Arg.doc) list -> name:string -> (t -> unit) -> unit

Typical entry point for configurator programs

Sourceval die : ('a, unit, string, 'b) format4 -> 'a

Abort execution. If raised from within main, the argument of die is printed as Error: <message>.

OCaml

Innovation. Community. Security.