summaryrefslogtreecommitdiffstats
path: root/config_host
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 16:51:28 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 16:51:28 +0000
commit940b4d1848e8c70ab7642901a68594e8016caffc (patch)
treeeb72f344ee6c3d9b80a7ecc079ea79e9fba8676d /config_host
parentInitial commit. (diff)
downloadlibreoffice-940b4d1848e8c70ab7642901a68594e8016caffc.tar.xz
libreoffice-940b4d1848e8c70ab7642901a68594e8016caffc.zip
Adding upstream version 1:7.0.4.upstream/1%7.0.4upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'config_host')
-rw-r--r--config_host/.gitignore1
-rw-r--r--config_host/README25
-rw-r--r--config_host/config_buildid.h.in10
-rw-r--r--config_host/config_cairo_canvas.h.in6
-rw-r--r--config_host/config_clang.h.in20
-rw-r--r--config_host/config_cxxabi.h.in26
-rw-r--r--config_host/config_dbus.h.in18
-rw-r--r--config_host/config_dconf.h.in17
-rw-r--r--config_host/config_eot.h.in6
-rw-r--r--config_host/config_extensions.h.in15
-rw-r--r--config_host/config_feature_desktop.h.in28
-rw-r--r--config_host/config_feature_opencl.h.in13
-rw-r--r--config_host/config_features.h.in160
-rw-r--r--config_host/config_firebird.h.in12
-rw-r--r--config_host/config_folders.h.in54
-rw-r--r--config_host/config_fuzzers.h.in10
-rw-r--r--config_host/config_gio.h.in17
-rw-r--r--config_host/config_global.h.in42
-rw-r--r--config_host/config_gpgme.h.in36
-rw-r--r--config_host/config_java.h.in14
-rw-r--r--config_host/config_langs.h.in10
-rw-r--r--config_host/config_lgpl.h.in14
-rw-r--r--config_host/config_libcxx.h.in17
-rw-r--r--config_host/config_liblangtag.h.in6
-rw-r--r--config_host/config_libnumbertext.h.in17
-rw-r--r--config_host/config_locales.h.in58
-rw-r--r--config_host/config_mpl.h.in9
-rw-r--r--config_host/config_oauth2.h.in48
-rw-r--r--config_host/config_oox.h.in13
-rw-r--r--config_host/config_options.h.in21
-rw-r--r--config_host/config_options_calc.h.in10
-rw-r--r--config_host/config_poppler.h.in12
-rw-r--r--config_host/config_probes.h.in7
-rw-r--r--config_host/config_python.h.in8
-rw-r--r--config_host/config_qrcodegen.h.in17
-rw-r--r--config_host/config_skia.h.in67
-rw-r--r--config_host/config_typesizes.h.in19
-rw-r--r--config_host/config_vcl.h.in14
-rw-r--r--config_host/config_vclplug.h.in20
-rw-r--r--config_host/config_vendor.h.in10
-rw-r--r--config_host/config_version.h.in24
-rw-r--r--config_host/config_writerperfect.h.in35
42 files changed, 986 insertions, 0 deletions
diff --git a/config_host/.gitignore b/config_host/.gitignore
new file mode 100644
index 000000000..9becb5b61
--- /dev/null
+++ b/config_host/.gitignore
@@ -0,0 +1 @@
+config_*.h
diff --git a/config_host/README b/config_host/README
new file mode 100644
index 000000000..5dd2d5263
--- /dev/null
+++ b/config_host/README
@@ -0,0 +1,25 @@
+These are configuration files for various features as detected by configure.
+
+Include only those files you need (in order to reduce rebuilds when a setting changes).
+
+Settings here are only C/C++ #define directives, so they apply only to C/C++ source,
+not to Makefiles.
+
+
+
+Adding a new setting:
+=====================
+
+- do AC_DEFINE(HAVE_FOO) in configure.ac when a setting should be set
+- choose the proper config_host/config_XXX.h file to use
+ - if it is a global setting (such as availability of a compiler feature),
+ use config_host/config_global.h
+ - otherwise check if there is a matching config_host/config_XXX.h file
+ - if none matches, add a new one:
+ - add config_host/config_XXX.h.in here, with just #ifndef include guard
+ - add AC_CONFIG_HEADERS([config_host/config_XXX.h]) next to the others
+ in configure.ac
+- 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 for on/off settings, do not use #ifdef
diff --git a/config_host/config_buildid.h.in b/config_host/config_buildid.h.in
new file mode 100644
index 000000000..04f03b835
--- /dev/null
+++ b/config_host/config_buildid.h.in
@@ -0,0 +1,10 @@
+/*
+Optional Build ID displayed in the about dialog
+*/
+
+#ifndef CONFIG_BUILDID_H
+#define CONFIG_BUILDID_H
+
+#undef EXTRA_BUILDID
+
+#endif
diff --git a/config_host/config_cairo_canvas.h.in b/config_host/config_cairo_canvas.h.in
new file mode 100644
index 000000000..0c3817533
--- /dev/null
+++ b/config_host/config_cairo_canvas.h.in
@@ -0,0 +1,6 @@
+#ifndef CONFIG_CAIRO_CANVAS_H
+#define CONFIG_CAIRO_CANVAS_H
+
+#define ENABLE_CAIRO_CANVAS 0
+
+#endif
diff --git a/config_host/config_clang.h.in b/config_host/config_clang.h.in
new file mode 100644
index 000000000..c19c0875c
--- /dev/null
+++ b/config_host/config_clang.h.in
@@ -0,0 +1,20 @@
+/*
+
+Settings related to Clang compiler plugins.
+
+*/
+
+#ifndef CONFIG_CLANG_H
+#define CONFIG_CLANG_H
+
+#undef BUILDDIR
+#undef SRCDIR
+#undef WORKDIR
+
+#undef CLANG_VERSION
+
+/* This is actually unused, but it should change whenever Clang changes,
+thus causing update of this .h file and triggering rebuild of our Clang plugin. */
+#undef CLANG_FULL_VERSION
+
+#endif
diff --git a/config_host/config_cxxabi.h.in b/config_host/config_cxxabi.h.in
new file mode 100644
index 000000000..0acaa5605
--- /dev/null
+++ b/config_host/config_cxxabi.h.in
@@ -0,0 +1,26 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#ifndef CONFIG_CXXABI_H
+#define CONFIG_CXXABI_H
+
+#define HAVE_CXXABI_H_BASE_CLASS_TYPE_INFO 0
+#define HAVE_CXXABI_H_CLASS_TYPE_INFO 0
+#define HAVE_CXXABI_H_CXA_ALLOCATE_EXCEPTION 0
+#define HAVE_CXXABI_H_CXA_EH_GLOBALS 0
+#define HAVE_CXXABI_H_CXA_EXCEPTION 0
+#define HAVE_CXXABI_H_CXA_GET_GLOBALS 0
+#define HAVE_CXXABI_H_CXA_CURRENT_EXCEPTION_TYPE 0
+#define HAVE_CXXABI_H_CXA_THROW 0
+#define HAVE_CXXABI_H_SI_CLASS_TYPE_INFO 0
+#define HAVE_CXXABI_H_VMI_CLASS_TYPE_INFO 0
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/config_host/config_dbus.h.in b/config_host/config_dbus.h.in
new file mode 100644
index 000000000..4ac5c32fa
--- /dev/null
+++ b/config_host/config_dbus.h.in
@@ -0,0 +1,18 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#ifndef INCLUDED_CONFIG_DBUS_H
+#define INCLUDED_CONFIG_DBUS_H
+
+#define ENABLE_DBUS 0
+#define DBUS_HAVE_GLIB 0
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/config_host/config_dconf.h.in b/config_host/config_dconf.h.in
new file mode 100644
index 000000000..09608c429
--- /dev/null
+++ b/config_host/config_dconf.h.in
@@ -0,0 +1,17 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#ifndef INCLUDED_CONFIG_DCONF_H
+#define INCLUDED_CONFIG_DCONF_H
+
+#define ENABLE_DCONF 0
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/config_host/config_eot.h.in b/config_host/config_eot.h.in
new file mode 100644
index 000000000..d1c87a053
--- /dev/null
+++ b/config_host/config_eot.h.in
@@ -0,0 +1,6 @@
+#ifndef CONFIG_EOT_H
+#define CONFIG_EOT_H
+
+#define ENABLE_EOT 0
+
+#endif
diff --git a/config_host/config_extensions.h.in b/config_host/config_extensions.h.in
new file mode 100644
index 000000000..62cf18628
--- /dev/null
+++ b/config_host/config_extensions.h.in
@@ -0,0 +1,15 @@
+#ifndef CONFIG_EXTENSION_UPDATE
+#define CONFIG_EXTENSION_UPDATE
+
+/* EXTENSIONS - Whether we have any extension mechanism at all
+ *
+ * Primarily intended for non-desktop platforms where supporting
+ * extensions can be complicated, or even prohibited by the OS (as on
+ * iOS).
+ */
+
+#define HAVE_FEATURE_EXTENSIONS 0
+
+#define ENABLE_EXTENSION_UPDATE 0
+
+#endif
diff --git a/config_host/config_feature_desktop.h.in b/config_host/config_feature_desktop.h.in
new file mode 100644
index 000000000..489f684af
--- /dev/null
+++ b/config_host/config_feature_desktop.h.in
@@ -0,0 +1,28 @@
+/* A feature split out from config_features.h because it affects many files.
+ */
+
+#ifndef CONFIG_FEATURE_DESKTOP_H
+#define CONFIG_FEATURE_DESKTOP_H
+
+/* DESKTOP - Whether we have a "normal" desktop UI or not.
+ *
+ * Non-DESKTOP in practice means touch-based mobile devices, Android
+ * or iOS for now. Support for those is work in progress.
+ *
+ * Non-DESKTOP implies that the OS makes sure that only one instance
+ * of each LibreOffice-based "app" at a time can be running, and thus
+ * the LibreOffice code does not need to handle such things itself.
+ *
+ * Non-DESKTOP implies no traditional inter-app drag and drop concept.
+ *
+ * Non-DESKTOP implies no traditional help mechanism, and to some
+ * extent (as noticed, and as possible without making the code too
+ * ugly) the related code is ifdeffed out.
+ *
+ * Non-DESKTOP implies no traditional desktop-style GUI elements like
+ * toolbars and scrollbars presented by the LO code.
+ */
+
+#define HAVE_FEATURE_DESKTOP 0
+
+#endif
diff --git a/config_host/config_feature_opencl.h.in b/config_host/config_feature_opencl.h.in
new file mode 100644
index 000000000..637c15a08
--- /dev/null
+++ b/config_host/config_feature_opencl.h.in
@@ -0,0 +1,13 @@
+/* A feature split out from config_features.h because it affects many files.
+ */
+
+#ifndef CONFIG_FEATURE_OPENCL_H
+#define CONFIG_FEATURE_OPENCL_H
+
+/*
+ * Whether OpenCL is usable on the platform and we should compile in use of OpenCL.
+ */
+
+#define HAVE_FEATURE_OPENCL 0
+
+#endif
diff --git a/config_host/config_features.h.in b/config_host/config_features.h.in
new file mode 100644
index 000000000..c0d24e392
--- /dev/null
+++ b/config_host/config_features.h.in
@@ -0,0 +1,160 @@
+/* Configuration of high-level features that either 1) depend on the
+ * platform (but are common to several platforms so just checking for
+ * the feature is simpler than checking for several platforms), or 2)
+ * are build-time configurable.
+ */
+
+#ifndef CONFIG_FEATURES_H
+#define CONFIG_FEATURES_H
+
+/* X11
+ *
+ * Whether we are building code to run in an X11 environment.
+ */
+
+#define HAVE_FEATURE_X11 0
+
+/* AVMEDIA - Whether to have functionality to display and manipulate
+ * embedded AV media in documents
+ */
+
+#define HAVE_FEATURE_AVMEDIA 0
+
+/* DBCONNECTIVITY - Whether to have functionality to connect to
+ * databases.
+ */
+
+#define HAVE_FEATURE_DBCONNECTIVITY 0
+
+/* SCRIPTING - Whether we have any mechanism to execute user-provided scripts
+ *
+ * Primarily intended for the iOS App Store where the
+ * rules prohibit user-accessible scripting features.
+ * Sure, it would be nice to still be able to have internal features
+ * implemented in some scripting language. Later, if necessary.
+ */
+
+#define HAVE_FEATURE_SCRIPTING 0
+
+/* MULTIUSER_ENVIRONMENT - Whether running on a "normal" multi-user
+ * desktop (or server) OS
+ *
+ * Non-MULTIUSER implies that the OS makes sure that only one
+ * LibreOffice-based process at a time can be running that could
+ * access the same local documents, and that thus no locking of local
+ * documents is needed, and that no "shared documents" in Calc
+ * is meaningful.
+ *
+ * Non-MULTIUSER in practice means Android or iOS for now, so thus is
+ * work in progress.
+ */
+
+#define HAVE_FEATURE_MULTIUSER_ENVIRONMENT 0
+
+/*
+ * Whether the OS has Avahi support,
+ * This library is used for zeroconf service publication on the local network
+ * for the Impress remote control, so that the remote can automatically
+ * discover the running libO instance and its IP address.
+ *
+ * This library should be present on most modern linux distributions
+ * but not on "all" of them. For now, you should add --enable-avahi for
+ * this to be taken into account. Otherwise the test of its presence
+ * will not take place.
+ */
+
+#define HAVE_FEATURE_AVAHI 0
+
+/* MACOSX_SANDBOX - whether LibreOffice runs in a macOS sandbox
+ *
+ * When building LibreOffice for distribution through the Mac App Store,
+ * it must be sandboxed.
+ */
+
+#define HAVE_FEATURE_MACOSX_SANDBOX 0
+
+/* READONLY_INSTALLSET - whether to treat the installation as read-only
+ *
+ * Prevents attempts by LibreOffice to write into its installation. That means
+ * at least that no "system-wide" extensions can be added, if the location for
+ * them is the traditional one right in the middle of the installation.
+ * Probably not completely implemented.
+ */
+
+#define HAVE_FEATURE_READONLY_INSTALLSET 0
+
+/*
+ * Whether FreeType has FT_Face_GetCharVariantIndex or not.
+ */
+#define HAVE_FT_FACE_GETCHARVARIANTINDEX 0
+
+/*
+ * Whether to use validation on files.
+ */
+#define HAVE_EXPORT_VALIDATION 0
+
+/*
+ * Whether to use export validation of binary formats (doc, xls, ppt)
+ *
+ * Requires installed Microsoft Office Binary File Format Validator
+ * https://www.microsoft.com/en-us/download/details.aspx?id=26794
+ */
+#define HAVE_BFFVALIDATOR 0
+
+/*
+ * Whether we support breakpad as crash reporting lib.
+ */
+#define HAVE_FEATURE_BREAKPAD 0
+
+/*
+ * Whether OpenGL is enabled
+ */
+#define HAVE_FEATURE_OPENGL 0
+
+/*
+ * Whether Skia is enabled
+ */
+#define HAVE_FEATURE_SKIA 0
+
+/*
+ * Whether User Interface is available
+ */
+#define HAVE_FEATURE_UI 1
+
+/*
+ * Whether PDF import is available
+ */
+#define HAVE_FEATURE_PDFIMPORT 0
+
+/*
+ * Whether NSS is available
+ */
+#define HAVE_FEATURE_NSS 0
+
+/*
+ * Whether pdfium is available
+ */
+#define HAVE_FEATURE_PDFIUM 0
+
+/*
+ * Whether poppler is available
+ */
+#define HAVE_FEATURE_POPPLER 0
+
+/*
+ * Whether extra fonts are available
+ */
+#define HAVE_MORE_FONTS 0
+
+/*
+ * Whether the automatic online updater is available
+ */
+#define HAVE_FEATURE_UPDATE_MAR 0
+
+/*
+ * Whether we are avoiding the tweaks needed for the Android app from the
+ * android/ subdir.
+ */
+#define HAVE_FEATURE_ANDROID_LOK 0
+
+#endif
diff --git a/config_host/config_firebird.h.in b/config_host/config_firebird.h.in
new file mode 100644
index 000000000..b56056cf6
--- /dev/null
+++ b/config_host/config_firebird.h.in
@@ -0,0 +1,12 @@
+/*
+Settings for Firebird
+*/
+
+#ifndef CONFIG_FIREBIRD_H
+#define CONFIG_FIREBIRD_H
+
+#define ENABLE_FIREBIRD_SDBC 0
+
+#define HAVE_FIREBIRD_30 0
+
+#endif
diff --git a/config_host/config_folders.h.in b/config_host/config_folders.h.in
new file mode 100644
index 000000000..13051984f
--- /dev/null
+++ b/config_host/config_folders.h.in
@@ -0,0 +1,54 @@
+/* Configuration of subfolder names in the installation tree. The
+ * values of these macros when configured will be strings. The names
+ * of these macros reflect what the value would be in an "ideal" world
+ * on Linux, not current reality. (For example LIBO_BIN_FOLDER is
+ * actually "program" on Linux and most other Unixes.)
+ */
+
+#ifndef CONFIG_FOLDERS_H
+#define CONFIG_FOLDERS_H
+
+/* where the soffice executable and other end-user-invoked executables are */
+#undef LIBO_BIN_FOLDER
+
+/* where the *rc / *.ini file are */
+#undef LIBO_ETC_FOLDER
+
+/* where helper executables run by soffice are */
+#undef LIBO_LIBEXEC_FOLDER
+
+/* where dynamic libraries loaded directly or programmatically are */
+#undef LIBO_LIB_FOLDER
+
+/* where read-only resources are in general */
+#undef LIBO_SHARE_FOLDER
+
+/* where help files are */
+#undef LIBO_SHARE_HELP_FOLDER
+
+/* where java jars are */
+#undef LIBO_SHARE_JAVA_FOLDER
+
+/* the presets folder */
+#undef LIBO_SHARE_PRESETS_FOLDER
+
+/* LO's own "resources" */
+#undef LIBO_SHARE_RESOURCE_FOLDER
+
+/* LO's "shell" artwork */
+#undef LIBO_SHARE_SHELL_FOLDER
+
+/* URE folders */
+#undef LIBO_URE_BIN_FOLDER
+#undef LIBO_URE_ETC_FOLDER
+#undef LIBO_URE_LIB_FOLDER
+#undef LIBO_URE_MISC_FOLDER
+#undef LIBO_URE_SHARE_JAVA_FOLDER
+
+/* the source root directory of the build */
+#undef SRC_ROOT
+
+/* the build directory of the build */
+#undef BUILDDIR
+
+#endif
diff --git a/config_host/config_fuzzers.h.in b/config_host/config_fuzzers.h.in
new file mode 100644
index 000000000..a33823260
--- /dev/null
+++ b/config_host/config_fuzzers.h.in
@@ -0,0 +1,10 @@
+/*
+Settings for fuzzers mode
+*/
+
+#ifndef CONFIG_FUZZERS_H
+#define CONFIG_FUZZERS_H
+
+#define ENABLE_FUZZERS 0
+
+#endif
diff --git a/config_host/config_gio.h.in b/config_host/config_gio.h.in
new file mode 100644
index 000000000..a2d880ed8
--- /dev/null
+++ b/config_host/config_gio.h.in
@@ -0,0 +1,17 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#ifndef INCLUDED_CONFIG_GIO_H
+#define INCLUDED_CONFIG_GIO_H
+
+#define ENABLE_GIO 0
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/config_host/config_global.h.in b/config_host/config_global.h.in
new file mode 100644
index 000000000..d9a907f4b
--- /dev/null
+++ b/config_host/config_global.h.in
@@ -0,0 +1,42 @@
+/*
+Global configuration file.
+
+Only for settings that apply to every source file and are unlikely to change often,
+such as whether a certain C++11 feature is available.
+
+Do NOT use for settings local to some code or for settings that can change often.
+Any change in this header will cause a rebuild of almost everything.
+
+*/
+
+#ifndef CONFIG_GLOBAL_H
+#define CONFIG_GLOBAL_H
+
+#define HAVE_GCC_BUILTIN_ATOMIC 0
+#define HAVE_SYSLOG_H 0
+
+// Compiler supports all of C++2a <https://wg21.link/P0202R3> "Add Constexpr Modifiers to Functions
+// in <algorithm> and <utility> Headers", <https://wg21.link/P1004R2> "Making std::vector
+// constexpr", and <https://wg21.link/P1143R2> "Adding the constinit keyword":
+#define HAVE_CPP_CONSTINIT_SORTED_VECTOR 0
+
+// Useable C++2a <span>:
+#define HAVE_CPP_SPAN 0
+
+/* "CWG motion 23: P1825R0 'Merged wording for P0527R1 and P1155R3' (DR)" in
+ <https://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/n4829.html> "N4829 Editors' Report --
+ Programming Languages -- C++" marks
+ <http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2019/p1155r3.html> "More implicit moves" as a
+ DR. Some versions of GCC already implemented it prior to the fix for
+ <https://gcc.gnu.org/bugzilla/show_bug.cgi?id=87150> "move ctor wrongly chosen in return stmt
+ (derived vs. base)"; MSVC++ 14.24 started to implement it, see <https://
+ developercommunity.visualstudio.com/content/problem/852827/
+ msvc-1424-started-to-chose-move-ctor-in-return-der.html> "MSVC++ 14.24 started to chose move ctor
+ in return derived vs. base". At least Clang 9, which does not implement it, emits
+ -Werror,-Wreturn-std-move when it therefore considers a std::move to be missing. On the other
+ hand, at least some versions of GCC would emit -Werror=redundant-move in places where such a
+ std::move would be added unconditionally, see c00948d9bd35dfb15a331c2163f32e9ee24644fd "Silence
+ bogus -Werror=redundant-move (GCC 9)". */
+#define HAVE_P1155R3 0
+
+#endif
diff --git a/config_host/config_gpgme.h.in b/config_host/config_gpgme.h.in
new file mode 100644
index 000000000..3c483d08f
--- /dev/null
+++ b/config_host/config_gpgme.h.in
@@ -0,0 +1,36 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+/* Configuration for gpgme++.
+ */
+
+#ifndef CONFIG_GPGME_H
+#define CONFIG_GPGME_H
+
+// Defined if gpgme support is available
+#define HAVE_FEATURE_GPGME 0
+
+// Defined if gpg and gpgme signature verification is available
+#define HAVE_FEATURE_GPGVERIFY 0
+
+// Defined if gpgconf --create-socketdir works
+#define HAVE_GPGCONF_SOCKETDIR 0
+
+#if HAVE_FEATURE_GPGME
+# include "config_lgpl.h"
+#endif
+
+// Defined if gpgme supports exporting minimal key.
+#define GPGME_CAN_EXPORT_MINIMAL_KEY 0
+
+#undef GPGME_GPGCONF
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/config_host/config_java.h.in b/config_host/config_java.h.in
new file mode 100644
index 000000000..8f05ec626
--- /dev/null
+++ b/config_host/config_java.h.in
@@ -0,0 +1,14 @@
+#ifndef CONFIG_JAVA_H
+#define CONFIG_JAVA_H
+
+/* JAVA
+ *
+ * Whether we have support for Java extensions, and use own Java
+ * functionality).
+ */
+
+#define HAVE_FEATURE_JAVA 0
+
+#undef JAVA_ARCH
+
+#endif
diff --git a/config_host/config_langs.h.in b/config_host/config_langs.h.in
new file mode 100644
index 000000000..d60a5c168
--- /dev/null
+++ b/config_host/config_langs.h.in
@@ -0,0 +1,10 @@
+/* Configuration of restriction on supported ui languages, by the
+ * --with-lang option.
+ */
+
+#ifndef CONFIG_LANGS_H
+#define CONFIG_LANGS_H
+
+#define WITH_LANG ""
+
+#endif
diff --git a/config_host/config_lgpl.h.in b/config_host/config_lgpl.h.in
new file mode 100644
index 000000000..f157a5cb1
--- /dev/null
+++ b/config_host/config_lgpl.h.in
@@ -0,0 +1,14 @@
+/*
+ * Include this file to ensure that this code is not
+ * compiled into the MPL subset.
+ */
+#ifndef CONFIG_LGPL_H
+#define CONFIG_LGPL_H
+
+#include "config_mpl.h"
+
+#if MPL_HAVE_SUBSET
+# error "Attempting to compile LGPL code into MPL subset"
+#endif
+
+#endif
diff --git a/config_host/config_libcxx.h.in b/config_host/config_libcxx.h.in
new file mode 100644
index 000000000..cd90bb821
--- /dev/null
+++ b/config_host/config_libcxx.h.in
@@ -0,0 +1,17 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4; fill-column: 100 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#ifndef INCLUDED_CONFIG_HOST_CONFIG_LIBCXX_H
+#define INCLUDED_CONFIG_HOST_CONFIG_LIBCXX_H
+
+#define HAVE_LIBCXX 0
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab cinoptions=b1,g0,N-s cinkeys+=0=break: */
diff --git a/config_host/config_liblangtag.h.in b/config_host/config_liblangtag.h.in
new file mode 100644
index 000000000..f639fb76c
--- /dev/null
+++ b/config_host/config_liblangtag.h.in
@@ -0,0 +1,6 @@
+#ifndef CONFIG_LIBLANGTAG_H
+#define CONFIG_LIBLANGTAG_H
+
+#define LIBLANGTAG_INLINE_FIX 0
+
+#endif
diff --git a/config_host/config_libnumbertext.h.in b/config_host/config_libnumbertext.h.in
new file mode 100644
index 000000000..de757806a
--- /dev/null
+++ b/config_host/config_libnumbertext.h.in
@@ -0,0 +1,17 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#ifndef INCLUDED_CONFIG_LIBNUMBERTEXT_H
+#define INCLUDED_CONFIG_LIBNUMBERTEXT_H
+
+#define ENABLE_LIBNUMBERTEXT 0
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/config_host/config_locales.h.in b/config_host/config_locales.h.in
new file mode 100644
index 000000000..b9b6988cc
--- /dev/null
+++ b/config_host/config_locales.h.in
@@ -0,0 +1,58 @@
+/* Configuration of restriction on supported locales, by the
+ * --with-locales option.
+ *
+ * (Note that this is totally unrelated to what UI language(s) were
+ * configured with the --with-lang option.)
+ *
+ * Normally, especially for desktop OSes, LibreOffice is built to
+ * support all the locales and character encodings that it has code
+ * (data) for in the source code. By using the --with-locales
+ * configure switch, this can be restricted.
+ *
+ * This file defines feature test macros for those languages for which
+ * at least one locale is to be supported. In some cases, a feature
+ * test macro for a script is provided in addition or instead.
+ *
+ * Only languages for which there exists separate code and/or data in
+ * the source code need to be mentioned here.
+ */
+
+#ifndef CONFIG_LOCALES_H
+#define CONFIG_LOCALES_H
+
+/* In the normal case WITH_LOCALE_ALL is one and this
+ * overrides the others which are zero.
+ */
+#define WITH_LOCALE_ALL 0
+
+/* When --with-locales was used, WITH_LOCALE_ALL is zero and some of
+ * these are one.
+ */
+#define WITH_LOCALE_ca 0
+#define WITH_LOCALE_cu 0
+#define WITH_LOCALE_dz 0
+#define WITH_LOCALE_el 0
+#define WITH_LOCALE_he 0
+#define WITH_LOCALE_hi 0
+#define WITH_LOCALE_hr 0
+#define WITH_LOCALE_hu 0
+#define WITH_LOCALE_is 0
+#define WITH_LOCALE_ja 0
+#define WITH_LOCALE_ko 0
+#define WITH_LOCALE_ku 0
+#define WITH_LOCALE_ln 0
+#define WITH_LOCALE_my 0
+#define WITH_LOCALE_ne 0
+#define WITH_LOCALE_ro 0
+#define WITH_LOCALE_ru 0
+#define WITH_LOCALE_sid 0
+#define WITH_LOCALE_th 0
+#define WITH_LOCALE_tr 0
+#define WITH_LOCALE_uk 0
+#define WITH_LOCALE_vro 0
+#define WITH_LOCALE_zh 0
+
+#define WITH_LOCALE_FOR_SCRIPT_Cyrl 0
+#define WITH_LOCALE_FOR_SCRIPT_Deva 0
+
+#endif
diff --git a/config_host/config_mpl.h.in b/config_host/config_mpl.h.in
new file mode 100644
index 000000000..bde10e3ce
--- /dev/null
+++ b/config_host/config_mpl.h.in
@@ -0,0 +1,9 @@
+/* config_host/config_mpl.h. Generated from config_mpl.h.in by configure. */
+
+#ifndef CONFIG_MPL_H
+#define CONFIG_MPL_H
+
+#define MPL_HAVE_SUBSET 0
+
+#endif
+
diff --git a/config_host/config_oauth2.h.in b/config_host/config_oauth2.h.in
new file mode 100644
index 000000000..f3616ee38
--- /dev/null
+++ b/config_host/config_oauth2.h.in
@@ -0,0 +1,48 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ *
+ * This file incorporates work covered by the following license notice:
+ *
+ */
+
+#ifndef CONFIG_OAUTH2_H
+#define CONFIG_OAUTH2_H
+
+
+/* Google Drive settings */
+#define GDRIVE_BASE_URL "https://www.googleapis.com/drive/v2"
+#define GDRIVE_CLIENT_ID ""
+#define GDRIVE_CLIENT_SECRET ""
+#define GDRIVE_AUTH_URL "https://accounts.google.com/o/oauth2/auth"
+#define GDRIVE_TOKEN_URL "https://accounts.google.com/o/oauth2/token"
+#define GDRIVE_REDIRECT_URI "urn:ietf:wg:oauth:2.0:oob"
+#define GDRIVE_SCOPE "https://www.googleapis.com/auth/drive"
+
+
+/* Alfresco Cloud */
+#define ALFRESCO_CLOUD_BASE_URL "https://api.alfresco.com/"
+#define ALFRESCO_CLOUD_CLIENT_ID ""
+#define ALFRESCO_CLOUD_CLIENT_SECRET ""
+#define ALFRESCO_CLOUD_AUTH_URL "https://api.alfresco.com/auth/oauth/versions/2/authorize"
+#define ALFRESCO_CLOUD_TOKEN_URL "https://api.alfresco.com/auth/oauth/versions/2/token"
+#define ALFRESCO_CLOUD_REDIRECT_URI "http://127.0.0.1/Callback"
+#define ALFRESCO_CLOUD_SCOPE "public_api"
+
+
+/* OneDrive */
+#define ONEDRIVE_BASE_URL "https://apis.live.net/v5.0"
+#define ONEDRIVE_CLIENT_ID ""
+#define ONEDRIVE_CLIENT_SECRET ""
+#define ONEDRIVE_AUTH_URL "https://login.live.com/oauth20_authorize.srf"
+#define ONEDRIVE_TOKEN_URL "https://login.live.com/oauth20_token.srf"
+#define ONEDRIVE_REDIRECT_URI "https://login.live.com/oauth20_desktop.srf"
+#define ONEDRIVE_SCOPE "wl.skydrive_update wl.offline_access"
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/config_host/config_oox.h.in b/config_host/config_oox.h.in
new file mode 100644
index 000000000..f711fa794
--- /dev/null
+++ b/config_host/config_oox.h.in
@@ -0,0 +1,13 @@
+#ifndef CONFIG_OOX_H
+#define CONFIG_OOX_H
+
+/*
+
+Which TLS backend to use for cryptographic operations.
+
+*/
+
+#define USE_TLS_OPENSSL 0
+#define USE_TLS_NSS 0
+
+#endif
diff --git a/config_host/config_options.h.in b/config_host/config_options.h.in
new file mode 100644
index 000000000..e87c119e6
--- /dev/null
+++ b/config_host/config_options.h.in
@@ -0,0 +1,21 @@
+/*
+ * General configuration settings for various options.
+ */
+
+#ifndef CONFIG_OPTIONS_H
+#define CONFIG_OPTIONS_H
+
+#define ENABLE_MERGELIBS 0
+
+#define ENABLE_RUNTIME_OPTIMIZATIONS 0
+
+// Used to turn off visibility for some classes/symbols when linking with --enable-mergelibs
+//
+#if ENABLE_MERGELIBS
+#define UNLESS_MERGELIBS(x)
+#else
+#define UNLESS_MERGELIBS(x) x
+#endif
+
+
+#endif
diff --git a/config_host/config_options_calc.h.in b/config_host/config_options_calc.h.in
new file mode 100644
index 000000000..f369797a5
--- /dev/null
+++ b/config_host/config_options_calc.h.in
@@ -0,0 +1,10 @@
+/*
+ * General configuration settings for various options specific to Calc.
+ */
+
+#ifndef CONFIG_OPTIONS_CALC_H
+#define CONFIG_OPTIONS_CALC_H
+
+#define ENABLE_FORMULA_LOGGER 0
+
+#endif
diff --git a/config_host/config_poppler.h.in b/config_host/config_poppler.h.in
new file mode 100644
index 000000000..4b0596eb3
--- /dev/null
+++ b/config_host/config_poppler.h.in
@@ -0,0 +1,12 @@
+/*
+Settings for poppler header file detection
+*/
+
+#ifndef CONFIG_POPPLER_H
+#define CONFIG_POPPLER_H
+
+#define ENABLE_PDFIMPORT 0
+
+#define HAVE_POPPLER_VERSION_H 0
+
+#endif
diff --git a/config_host/config_probes.h.in b/config_host/config_probes.h.in
new file mode 100644
index 000000000..b15a1f077
--- /dev/null
+++ b/config_host/config_probes.h.in
@@ -0,0 +1,7 @@
+#ifndef CONFIG_PROBES_H
+#define CONFIG_PROBES_H
+
+/* Whether we have and can use sys/sdt.h for probes. */
+#define USE_SDT_PROBES 0
+
+#endif
diff --git a/config_host/config_python.h.in b/config_host/config_python.h.in
new file mode 100644
index 000000000..3258205b2
--- /dev/null
+++ b/config_host/config_python.h.in
@@ -0,0 +1,8 @@
+/* python stuff */
+
+#ifndef CONFIG_PYTHON_H
+#define CONFIG_PYTHON_H
+
+#undef PYTHON_VERSION_STRING
+
+#endif // CONFIG_PYTHON_H
diff --git a/config_host/config_qrcodegen.h.in b/config_host/config_qrcodegen.h.in
new file mode 100644
index 000000000..633886516
--- /dev/null
+++ b/config_host/config_qrcodegen.h.in
@@ -0,0 +1,17 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+#ifndef INCLUDED_CONFIG_QRCODEGEN_H
+#define INCLUDED_CONFIG_QRCODEGEN_H
+
+#define ENABLE_QRCODEGEN 0
+
+#endif
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/config_host/config_skia.h.in b/config_host/config_skia.h.in
new file mode 100644
index 000000000..26c945b2c
--- /dev/null
+++ b/config_host/config_skia.h.in
@@ -0,0 +1,67 @@
+/*
+
+Settings for the Skia library. We compile the Skia library with these
+settings and also LO code uses this header to ensure the settings
+are the same.
+*/
+
+#ifndef CONFIG_SKIA_H
+#define CONFIG_SKIA_H
+
+// This a setting that should be set manually and it affects LO
+// code rather than Skia itself. It basically controls setting
+// BackendCapabilities::mbSupportsBitmap32.
+// Since Skia does not natively support 24bpp, the preferred setup is
+// that the setting should be enabled, it makes the code faster and cleaner.
+// Unfortunately VCL historically splits alpha into a whole separate
+// bitmap and works with 24bpp+8bpp, which is generally more complicated,
+// more error-prone and just worse, but that's how LO code has been
+// written and so there are many places in LO that expect this and
+// do not work correctly with true 32bpp bitmaps.
+// So ultimately the 24+8 split should be dumped (preferably in all of LO,
+// not just the Skia-related code), but until all of LO works correctly
+// with 32bpp disabling this will avoid such breakages.
+//#define SKIA_USE_BITMAP32 1
+#define SKIA_USE_BITMAP32 0
+
+
+/* TODO SKIA check all these */
+
+#define SK_SUPPORT_GPU 1
+
+#define SK_VULKAN 1
+
+// Memory allocator for Vulkan.
+#define SK_USE_VMA 1
+
+#define SK_CODEC_DECODES_PNG 1
+#define SK_ENCODE_PNG 1
+
+// These are just to avoid warnings (some headers use them even with GL disabled).
+#define SK_ASSUME_GL 1
+#define SK_ASSUME_GL_ES 0
+
+// See https://codereview.chromium.org/2089583002 . This makes raster drawing
+// faster in some cases, it was made conditional because of some tests failing,
+// but if I'm reading the review correctly the code is in fact fine and just
+// those tests needed updating, which presumably has never happened.
+#define SK_DRAWBITMAPRECT_FAST_OFFSET 1
+
+// Enable Skia's internal checks depending on DBG_UTIL mode. ENABLE_SKIA_DEBUG
+// controls whether to build with or without optimizations (set in Makefile).
+#ifdef DBG_UTIL
+
+#define SK_DEBUG
+
+#define SK_ENABLE_DUMP_GPU
+
+#else
+
+#define DSK_RELEASE
+
+#endif // DBG_UTIL
+
+// TODO ?
+//#define SK_R32_SHIFT 16
+
+#endif
diff --git a/config_host/config_typesizes.h.in b/config_host/config_typesizes.h.in
new file mode 100644
index 000000000..cc0fcf8f8
--- /dev/null
+++ b/config_host/config_typesizes.h.in
@@ -0,0 +1,19 @@
+/*
+
+ Alignments and sizes of types.
+
+*/
+
+#ifndef CONFIG_TYPESIZES_H
+#define CONFIG_TYPESIZES_H
+
+#undef SAL_TYPES_ALIGNMENT2
+#undef SAL_TYPES_ALIGNMENT4
+#undef SAL_TYPES_ALIGNMENT8
+#undef SAL_TYPES_SIZEOFSHORT
+#undef SAL_TYPES_SIZEOFINT
+#undef SAL_TYPES_SIZEOFLONG
+#undef SAL_TYPES_SIZEOFLONGLONG
+#undef SAL_TYPES_SIZEOFPOINTER
+
+#endif
diff --git a/config_host/config_vcl.h.in b/config_host/config_vcl.h.in
new file mode 100644
index 000000000..81419d2c0
--- /dev/null
+++ b/config_host/config_vcl.h.in
@@ -0,0 +1,14 @@
+/*
+
+Settings about vcl
+*/
+
+#ifndef CONFIG_VCL_H
+#define CONFIG_VCL_H
+
+/* Nature of the device pixel coordinate system.
+ * We either use long or double for coordinates.
+ */
+#define VCL_FLOAT_DEVICE_PIXEL 0
+
+#endif
diff --git a/config_host/config_vclplug.h.in b/config_host/config_vclplug.h.in
new file mode 100644
index 000000000..488140b9e
--- /dev/null
+++ b/config_host/config_vclplug.h.in
@@ -0,0 +1,20 @@
+/*
+
+Settings about which desktops have support enabled.
+
+*/
+
+#ifndef CONFIG_VCLPLUG_H
+#define CONFIG_VCLPLUG_H
+
+#define ENABLE_GTK3 0
+#define ENABLE_GTK3_KDE5 0
+#define ENABLE_KF5 0
+#define ENABLE_QT5 0
+
+#define ENABLE_GSTREAMER_1_0 0
+#define QT5_HAVE_GOBJECT 0
+#define QT5_USING_X11 0
+#define QT5_HAVE_XCB_ICCCM 0
+
+#endif
diff --git a/config_host/config_vendor.h.in b/config_host/config_vendor.h.in
new file mode 100644
index 000000000..32602210c
--- /dev/null
+++ b/config_host/config_vendor.h.in
@@ -0,0 +1,10 @@
+/* Configuration of restriction on supported ui languages, by the
+ * --with-lang option.
+ */
+
+#ifndef CONFIG_VENDOR_H
+#define CONFIG_VENDOR_H
+
+#define OOO_VENDOR ""
+
+#endif
diff --git a/config_host/config_version.h.in b/config_host/config_version.h.in
new file mode 100644
index 000000000..40c7dad24
--- /dev/null
+++ b/config_host/config_version.h.in
@@ -0,0 +1,24 @@
+/*
+Version settings
+ version 4.0.0.1 is Major.Minor.Micro.Patch
+*/
+
+#ifndef CONFIG_VERSION_H
+#define CONFIG_VERSION_H
+
+#define LIBO_VERSION_STRINGIFY_inner(s) #s
+#define LIBO_VERSION_STRINGIFY(s) LIBO_VERSION_STRINGIFY_inner(s)
+
+#undef LIBO_VERSION_MAJOR
+#undef LIBO_VERSION_MINOR
+#undef LIBO_VERSION_MICRO
+#undef LIBO_VERSION_PATCH
+#undef LIBO_THIS_YEAR
+
+#define LIBO_VERSION_DOTTED \
+ LIBO_VERSION_STRINGIFY(LIBO_VERSION_MAJOR) "." \
+ LIBO_VERSION_STRINGIFY(LIBO_VERSION_MINOR) "." \
+ LIBO_VERSION_STRINGIFY(LIBO_VERSION_MICRO) "." \
+ LIBO_VERSION_STRINGIFY(LIBO_VERSION_PATCH)
+
+#endif
diff --git a/config_host/config_writerperfect.h.in b/config_host/config_writerperfect.h.in
new file mode 100644
index 000000000..8d2d819dd
--- /dev/null
+++ b/config_host/config_writerperfect.h.in
@@ -0,0 +1,35 @@
+/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This file is part of the LibreOffice project.
+ *
+ * This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/.
+ */
+
+/* Configuration for versions of import libraries used by writerperfect.
+ * This is needed to skip test files that are not supported by the used
+ * version.
+ */
+
+#undef EBOOK_VERSION_MAJOR
+#undef EBOOK_VERSION_MINOR
+#undef EBOOK_VERSION_MICRO
+
+#undef ETONYEK_VERSION_MAJOR
+#undef ETONYEK_VERSION_MINOR
+#undef ETONYEK_VERSION_MICRO
+
+#undef MWAW_VERSION_MAJOR
+#undef MWAW_VERSION_MINOR
+#undef MWAW_VERSION_MICRO
+
+#undef STAROFFICE_VERSION_MAJOR
+#undef STAROFFICE_VERSION_MINOR
+#undef STAROFFICE_VERSION_MICRO
+
+#undef WPS_VERSION_MAJOR
+#undef WPS_VERSION_MINOR
+#undef WPS_VERSION_MICRO
+
+/* vim:set shiftwidth=4 softtabstop=4 expandtab: */