diff options
author | Luboš Luňák <l.lunak@suse.cz> | 2013-03-26 19:32:20 +0100 |
---|---|---|
committer | Luboš Luňák <l.lunak@suse.cz> | 2013-03-26 19:32:20 +0100 |
commit | 8bfc664c6188b0d9128e80f5222bf252e854bff3 (patch) | |
tree | 6b08e18195ad48f76e7b4912313658cf317ffd0f /config_host/README | |
parent | 3326a85ae6ad417b37deeee52fd9a806f42004ba (diff) |
autoconf can actually handle #define HAVE_FOO 0 as the default
Change-Id: I6cd70d885a3fe3ab53f7523d1a5da6ae30ee01e3
Diffstat (limited to 'config_host/README')
-rw-r--r-- | config_host/README | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/config_host/README b/config_host/README index 4f9d3ce833aa..0e097528ad90 100644 --- a/config_host/README +++ b/config_host/README @@ -20,11 +20,7 @@ Adding a new setting: - add AC_CONFIG_HEADERS([config_host/config_XXX.h]) next to the others in configure.ac - add config_XXX.h to config_host/.gitignore -- add #undef HAVE_FOO to the config_host/config_XXX.h , possibly with a comment -- if the setting is an on/off setting (i.e. not a value of anything), - add the following block right after it -#ifndef HAVE_FOO -#define HAVE_FOO 0 -#endif +- add #define HAVE_FOO 0 to the config_host/config_XXX.h , possibly with a comment + (do not use #undef HAVE_FOO, unless the setting has more values than on/off) - add #include <config_XXX.h> before any #if HAVE_FOO in a source file -- make sure you use #if HAVE_FOO, do not use #ifdef +- make sure you use #if HAVE_FOO for on/off settings, do not use #ifdef |