Anchor configuration is concerned with the values that are stored in the root anchor environment. At startup time, the root environment is initialized by reading two configuration files: an installation-specific one and a user-specific one. After that, the contents of root locations can be maintained using CM's interface functions CM.Anchor.anchor and CM.Anchor.reset (see Section 4.1.4).
Although there is a hard-wired default for the installation-specific
configuration file4, this default in rarely being used.
Instead, in a typical installation of SML/NJ the default will be a
file
/lib/pathconfig where
is the root directory
into which SML/NJ had been installed. (The installation procedure
establishes this new default by setting the environment variable
CM_PATHCONFIG_DEFAULT at the time it produces the heap image for
the interactive system.) The user can specify a new location at
startup time using the environment variable CM_PATHCONFIG.
The default location of the user-specific configuration file is .smlnj-pathconfig in the user's home directory (which must be given by the HOME environment variable). At startup time, this default can be overridden by a fixed location which must be given as the value of the environment variable CM_LOCAL_PATHCONFIG.
The syntax of all configuration files is identical. Lines are processed from top to bottom. White space divides lines into tokens.