Changes between Version 5 and Version 6 of pm-config-header


Ignore:
Timestamp:
May 31, 2011 10:48:47 AM (9 years ago)
Author:
stefan
Comment:

fix typos

Legend:

Unmodified
Added
Removed
Modified
  • pm-config-header

    v5 v6  
    1818
    1919The logic which of the four header files to include in which situation is implemented in a fifth header file ''Prjct''{{{Config.h}}}. None of the {{{config*.h}}} files should ever be included (directly) in any source code (internal or external to the project), but the file ''Prjct''{{{Config.h}}} should be include instead.
    20 In an autotools build of the project itself, the file {{{config.h}}} will be included (through inclusion in ''Prjct''{{{Config.h}}}. When someone builds against the library exported by a project after it has been installed, then ''Prjct''{{{Config.h}}} will be a copy of the public header {{{config_}}}''prjct''{{{.h}}} and will be included instead. Further, in a non-autotools based setup, ''Prjct''{{{Config.h}}} will include either {{{config_default.h}}} or {{{config_}}}''prjct''{{{default.h}}} (as appropriate for internal building versus external linking).
     20In an autotools build of the project itself, the file {{{config.h}}} will be included (through inclusion in ''Prjct''{{{Config.h}}}). When someone builds against the library exported by a project after it has been installed, then ''Prjct''{{{Config.h}}} will be a copy of the public header {{{config_}}}''prjct''{{{.h}}} and will be included instead. Further, in a non-autotools based setup, ''Prjct''{{{Config.h}}} will include either {{{config_default.h}}} or {{{config_}}}''prjct''{{{_default.h}}} (as appropriate for internal building versus external linking).
    2121The distinction is made by two defines that may be specified as arguments to the compiler command line to distinguish between building and linking.
    2222In an autotools setup with configuration header files, the symbol {{{HAVE_CONFIG_H}}} is always defined. Further, the symbol ''Prjct''{{{_BUILD}}} is defined whenever a file belonging to project ''Prjct'' is built.
     
    148148#endif
    149149}}}
    150 Since both files need to be setup by the user, here the private header includes the public header to avoid redundancy. Further, a header {{{configall_system.h}}} is included that tries to provide commonly used defines. Note that file '''config_coinutils.h''' is installed as '''CoinUtilsConfig.h''' for use by external users linking to the !CoinUtils library after the fact. This occurs by addition of the following lines to {{{src/Makefile.am}}}:
     150Since both files need to be setup by the user, here the private header includes the public header to avoid redundancy. Further, a header {{{configall_system.h}}} is included that tries to provide commonly used defines. Note that file '''config_coinutils.h''' is installed as '''!CoinUtilsConfig.h''' for use by external users linking to the !CoinUtils library after the fact. This occurs by addition of the following lines to {{{src/Makefile.am}}}:
    151151
    152152{{{