package configurator

  1. Overview
  2. Docs
Legend:
Library
Module
Module type
Parameter
Class
Class type
type t
val create : ?dest_dir:Base.string -> ?ocamlc:Base.string -> ?log:(Base.string -> Base.unit) -> Base.string -> t
val ocaml_config_var : t -> Base.string -> Base.string Base.option

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

val ocaml_config_var_exn : t -> Base.string -> Base.string
val c_test : t -> ?c_flags:Base.string Base.list -> ?link_flags:Base.string Base.list -> Base.string -> Base.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.

module C_define : sig ... end
module Pkg_config : sig ... end
val main : ?args:(Caml.Arg.key * Caml.Arg.spec * Caml.Arg.doc) Base.list -> name:Base.string -> (t -> Base.unit) -> Base.unit

Typical entry point for configurator programs

val die : ('a, Base.unit, Base.string, 'b) Base.format4 -> 'a

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

OCaml

Innovation. Community. Security.