[Libreoffice-commits] core.git: config_host/config_global.h.in config_host/config_graphite.h.in config_host/config_kde4.h.in config_host/config_mingw.h.in config_host/config_telepathy.h.in config_host/config_vclplug.h.in config_host/README

Luboš Luňák l.lunak at suse.cz
Tue Mar 26 11:33:07 PDT 2013


 config_host/README                |   10 +++-------
 config_host/config_global.h.in    |   28 ----------------------------
 config_host/config_graphite.h.in  |    3 ---
 config_host/config_kde4.h.in      |    3 ---
 config_host/config_mingw.h.in     |    3 ---
 config_host/config_telepathy.h.in |    3 ---
 config_host/config_vclplug.h.in   |   15 ---------------
 7 files changed, 3 insertions(+), 62 deletions(-)

New commits:
commit 8bfc664c6188b0d9128e80f5222bf252e854bff3
Author: Luboš Luňák <l.lunak at suse.cz>
Date:   Tue Mar 26 19:32:20 2013 +0100

    autoconf can actually handle #define HAVE_FOO 0 as the default
    
    Change-Id: I6cd70d885a3fe3ab53f7523d1a5da6ae30ee01e3

diff --git a/config_host/README b/config_host/README
index 4f9d3ce..0e09752 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
diff --git a/config_host/config_global.h.in b/config_host/config_global.h.in
index fa37a17..1e256b6 100644
--- a/config_host/config_global.h.in
+++ b/config_host/config_global.h.in
@@ -12,42 +12,14 @@ Any change in this header will cause a rebuild of almost everything.
 #ifndef CONFIG_GLOBAL_H
 #define CONFIG_GLOBAL_H
 
-#undef HAVE_CXX11_DELETE
-#ifndef HAVE_CXX11_DELETE
 #define HAVE_CXX11_DELETE 0
-#endif
-
-#undef HAVE_CXX11_OVERRIDE
-#ifndef HAVE_CXX11_OVERRIDE
 #define HAVE_CXX11_OVERRIDE 0
-#endif
-
-#undef HAVE_CXX11_PERFECT_FORWARDING
-#ifndef HAVE_CXX11_PERFECT_FORWARDING
 #define HAVE_CXX11_PERFECT_FORWARDING 0
-#endif
-
-#undef HAVE_GCC_BUILTIN_ATOMIC
-#ifndef HAVE_GCC_BUILTIN_ATOMIC
 #define HAVE_GCC_BUILTIN_ATOMIC 0
-#endif
-
 #define HAVE_GCC_PRAGMA_DIAGNOSTIC_MODIFY 0
 #define HAVE_GCC_PRAGMA_DIAGNOSTIC_SCOPE 0
-
-#undef HAVE_SFINAE_ANONYMOUS_BROKEN
-#ifndef HAVE_SFINAE_ANONYMOUS_BROKEN
 #define HAVE_SFINAE_ANONYMOUS_BROKEN 0
-#endif
-
-#undef HAVE_THREADSAFE_STATICS
-#ifndef HAVE_THREADSAFE_STATICS
 #define HAVE_THREADSAFE_STATICS 0
-#endif
-
-#undef HAVE_SYSLOG_H
-#ifndef HAVE_SYSLOG_H
 #define HAVE_SYSLOG_H 0
-#endif
 
 #endif
diff --git a/config_host/config_graphite.h.in b/config_host/config_graphite.h.in
index 2822abf..46e624d 100644
--- a/config_host/config_graphite.h.in
+++ b/config_host/config_graphite.h.in
@@ -1,9 +1,6 @@
 #ifndef CONFIG_GRAPHITE_H
 #define CONFIG_GRAPHITE_H
 
-#undef ENABLE_GRAPHITE
-#ifndef ENABLE_GRAPHITE
 #define ENABLE_GRAPHITE 0
-#endif
 
 #endif
diff --git a/config_host/config_kde4.h.in b/config_host/config_kde4.h.in
index 654d235..6e91b38 100644
--- a/config_host/config_kde4.h.in
+++ b/config_host/config_kde4.h.in
@@ -5,9 +5,6 @@ Settings for KDE4 integration.
 #ifndef CONFIG_KDE4_H
 #define CONFIG_KDE4_H
 
-#undef KDE_HAVE_GLIB
-#ifndef KDE_HAVE_GLIB
 #define KDE_HAVE_GLIB 0
-#endif
 
 #endif
diff --git a/config_host/config_mingw.h.in b/config_host/config_mingw.h.in
index 3747b7a..44d0ac9 100644
--- a/config_host/config_mingw.h.in
+++ b/config_host/config_mingw.h.in
@@ -1,9 +1,6 @@
 #ifndef CONFIG_MINGW
 #define CONFIG_MINGW
 
-#undef HAVE_FMERGENEUTRALITEMS
-#ifndef HAVE_FMERGENEUTRALITEMS
 #define HAVE_FMERGENEUTRALITEMS 0
-#endif
 
 #endif
diff --git a/config_host/config_telepathy.h.in b/config_host/config_telepathy.h.in
index 22bdc15..c5310bf 100644
--- a/config_host/config_telepathy.h.in
+++ b/config_host/config_telepathy.h.in
@@ -1,9 +1,6 @@
 #ifndef CONFIG_TELEPATHY
 #define CONFIG_TELEPATHY
 
-#undef ENABLE_TELEPATHY
-#ifndef ENABLE_TELEPATHY
 #define ENABLE_TELEPATHY 0
-#endif
 
 #endif
diff --git a/config_host/config_vclplug.h.in b/config_host/config_vclplug.h.in
index 9088a85..8eecf34 100644
--- a/config_host/config_vclplug.h.in
+++ b/config_host/config_vclplug.h.in
@@ -7,24 +7,9 @@ Settings about which X11 desktops have support enabled.
 #ifndef CONFIG_VCLPLUG_H
 #define CONFIG_VCLPLUG_H
 
-#undef ENABLE_GTK
-#ifndef ENABLE_GTK
 #define ENABLE_GTK 0
-#endif
-
-#undef ENABLE_KDE
-#ifndef ENABLE_KDE
 #define ENABLE_KDE 0
-#endif
-
-#undef ENABLE_KDE4
-#ifndef ENABLE_KDE4
 #define ENABLE_KDE4 0
-#endif
-
-#undef ENABLE_TDE
-#ifndef ENABLE_TDE
 #define ENABLE_TDE 0
-#endif
 
 #endif


More information about the Libreoffice-commits mailing list