Next Up Previous Contents
Next: A.18 STAR_INITIALISE_FORTRAN
Up: A The Starconf macros and variables
Previous: A.16 STAR_DECLARE_DEPENDENCIES
[ID index][Keyword index]

A.17 STAR_DEFAULTS

STAR_DEFAULTS([options=''])

Sets up the defaults for Starlink configure.ac files. The optional OPTIONS argument holds a space-separated list of option keywords, of which the only ones defined at present are per-package-dirs and docs-only.

As part of its initialisation, this macro does the following:

This macro also sets the prefix shell variable to its default value. Standard autoconf ./configure scripts also do this, but at a slightly later stage, which prevents the variable being used safely within configure.ac scripts. This is useful if you have to configure a thirdparty package in a subdirectory, by calling its ./configure script with a suitable --prefix option.

The option per-package-dirs, has three consequences:

  1. applications, help and etc files are installed in a package-specific directory (however the fac_*_err files are regarded as being in a separate category, and still install in /star/help, without any package-specific prefix);
  2. the otherwise-forbidden variable bin_DATA is permitted: any files assigned to this variable are installed in the (package-specific) binary directory as data, as opposed to executables;
  3. a file version.dat is created (at make rather than install time). This holds the bare PACKAGE_VERSION number, and is installed in the binary directory.
See also Appendix C.

The docs-dir option declares that this component contains only documentation (or at least, no code). This triggers mild changes in the behaviour of the STAR_DEFAULTS macro which should make configuration somewhat faster in this case. Certain other macros, such as STAR_MESSGEN, are disabled.


Next Up Previous Contents
Next: A.18 STAR_INITIALISE_FORTRAN
Up: A The Starconf macros and variables
Previous: A.16 STAR_DECLARE_DEPENDENCIES
[ID index][Keyword index]
The Starlink Build System
Starlink System Note 78
Norman Gray, Peter W Draper, Mark B Taylor, Steven E Rankin
11 April 2005. Release snapshot: $Revision: 1.116 $. Last updated 28 May 2006