Up

module BaseStandardVar

: sig

Standard variables

Author Sylvain Le Gall

Programs

#
val ocamlfind : unit -> OASISTypes.host_filename
#
val ocamlc : unit -> OASISTypes.host_filename
#
val ocamlopt : unit -> OASISTypes.host_filename
#
val ocamlbuild : unit -> OASISTypes.host_filename
#
val flexdll_version : unit -> string

Variables from OASIS package

See OASISTypes.package for more information.

#
val pkg_name : unit -> OASISTypes.name
#
val pkg_version : unit -> OASISVersion.s

ocamlc config variables

#
val os_type : unit -> string
#
val system : unit -> string
#
val architecture : unit -> string
#
val ccomp_type : unit -> string
#
val ocaml_version : unit -> string
#
val standard_library_default : unit -> OASISTypes.host_dirname
#
val standard_library : unit -> OASISTypes.host_dirname
#
val standard_runtime : unit -> OASISTypes.host_filename
#
val bytecomp_c_compiler : unit -> string
#
val native_c_compiler : unit -> string
#
val model : unit -> string
#
val ext_obj : unit -> string
#
val ext_asm : unit -> string
#
val ext_lib : unit -> string
#
val ext_dll : unit -> string
#
val default_executable_name : unit -> string
#
val systhread_supported : unit -> string

Paths

See GNU standards.

#
val prefix : unit -> OASISTypes.host_dirname
#
val exec_prefix : unit -> OASISTypes.host_dirname
#
val bindir : unit -> OASISTypes.host_dirname
#
val sbindir : unit -> OASISTypes.host_dirname
#
val libexecdir : unit -> OASISTypes.host_dirname
#
val sysconfdir : unit -> OASISTypes.host_dirname
#
val sharedstatedir : unit -> OASISTypes.host_dirname
#
val localstatedir : unit -> OASISTypes.host_dirname
#
val libdir : unit -> OASISTypes.host_dirname
#
val datarootdir : unit -> OASISTypes.host_dirname
#
val datadir : unit -> OASISTypes.host_dirname
#
val infodir : unit -> OASISTypes.host_dirname
#
val localedir : unit -> OASISTypes.host_dirname
#
val mandir : unit -> OASISTypes.host_dirname
#
val docdir : unit -> OASISTypes.host_dirname
#
val htmldir : unit -> OASISTypes.host_dirname
#
val dvidir : unit -> OASISTypes.host_dirname
#
val pdfdir : unit -> OASISTypes.host_dirname
#
val psdir : unit -> OASISTypes.host_dirname
#
val destdir : unit -> OASISTypes.host_dirname

Various

#
val findlib_version : unit -> OASISVersion.s

Findlib version.

#
val is_native : unit -> string

Check that the platform is a native platform (can compile native exec/library).

#
val ext_program : unit -> string

Compute the default suffix for program (e.g. '.exe' on Win32).

#
val rm : unit -> string

Host command to delete a file.

#
val rmdir : unit -> string

Host command to delete a directory.

#
val debug : unit -> string

Compile in debug mode.

#
val profile : unit -> string

Compile in profile mode.

#
val tests : unit -> string

Run tests.

#
val docs : unit -> string

Compile docs.

#
val init : OASISTypes.package -> unit

Initialize some variables.

end