diff options
author | Michael Weghorn <m.weghorn@posteo.de> | 2020-09-28 17:46:27 +0200 |
---|---|---|
committer | Michael Weghorn <m.weghorn@posteo.de> | 2020-09-28 17:46:27 +0200 |
commit | e3daa3b3aa88ada77d4680a2df9ef534341cb618 (patch) | |
tree | 0f274ea0334d8e61b7ce9fba97fee7ccde4e2c55 /configure.ac | |
parent | d0fdfe0e92a1989c61613fcb8deeb3256eb0816a (diff) | |
parent | 956513a6990f59b8bcf2ed7e12a6c8fe57bb13f5 (diff) |
Merge branch 'libreoffice-6-4'
into distro/lhm/libreoffice-6-4+backports
Change-Id: Id89f295a3e669a51da822c09a759165dfc79dc6f
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 54 |
1 files changed, 36 insertions, 18 deletions
diff --git a/configure.ac b/configure.ac index 5dcd90191ddd..97e3f49efc9c 100644 --- a/configure.ac +++ b/configure.ac @@ -9,7 +9,7 @@ dnl in order to create a configure script. # several non-alphanumeric characters, those are split off and used only for the # ABOUTBOXPRODUCTVERSIONSUFFIX in openoffice.lst. Why that is necessary, no idea. -AC_INIT([LibreOffice],[6.4.7.0.0+],[],[],[http://documentfoundation.org/]) +AC_INIT([LibreOffice],[6.4.8.0.0+],[],[],[http://documentfoundation.org/]) dnl libnumbertext needs autoconf 2.68, but that can pick up autoconf268 just fine if it is installed dnl whereas aclocal (as run by autogen.sh) insists on using autoconf and fails hard @@ -1924,6 +1924,10 @@ AC_ARG_WITH(system-hunspell, [Use libhunspell already on system.]),, [with_system_hunspell="$with_system_libs"]) +libo_FUZZ_ARG_ENABLE(qrcodegen, + AS_HELP_STRING([--disable-qrcodegen], + [Disable use of qrcodegen external library.])) + AC_ARG_WITH(system-qrcodegen, AS_HELP_STRING([--with-system-qrcodegen], [Use libqrcodegen already on system.]),, @@ -10050,26 +10054,39 @@ AC_SUBST(HUNSPELL_LIBS) dnl =================================================================== dnl Check for system qrcodegen dnl =================================================================== -AC_MSG_CHECKING([which libqrcodegen to use]) -if test "$with_system_qrcodegen" = "yes"; then - AC_MSG_RESULT([external]) - SYSTEM_QRCODEGEN=TRUE - AC_LANG_PUSH([C++]) - AC_CHECK_HEADER(qrcodegen/QrCode.hpp, [], - [AC_MSG_ERROR(qrcodegen headers not found.)], [#include <stdexcept>]) - AC_CHECK_LIB([qrcodegencpp], [main], [:], - [ AC_MSG_ERROR(qrcodegen C++ library not found.) ], []) - QRCODEGEN_LIBS=-lqrcodegencpp - AC_LANG_POP([C++]) - QRCODEGEN_CFLAGS=$(printf '%s' "$QRCODEGEN_CFLAGS" | sed -e "s/-I/${ISYSTEM?}/g") - FilterLibs "${QRCODEGEN_LIBS}" - QRCODEGEN_LIBS="${filteredlibs}" -else - AC_MSG_RESULT([internal]) +AC_MSG_CHECKING([whether to use libqrcodegen]) +if test "$enable_qrcodegen" = "no"; then + AC_MSG_RESULT([no]) + ENABLE_QRCODEGEN= SYSTEM_QRCODEGEN= - BUILD_TYPE="$BUILD_TYPE QRCODEGEN" +else + AC_MSG_RESULT([yes]) + ENABLE_QRCODEGEN=TRUE + AC_MSG_CHECKING([which libqrcodegen to use]) + if test "$with_system_qrcodegen" = "yes"; then + AC_MSG_RESULT([external]) + SYSTEM_QRCODEGEN=TRUE + AC_LANG_PUSH([C++]) + AC_CHECK_HEADER(qrcodegen/QrCode.hpp, [], + [AC_MSG_ERROR(qrcodegen headers not found.)], [#include <stdexcept>]) + AC_CHECK_LIB([qrcodegencpp], [main], [:], + [ AC_MSG_ERROR(qrcodegen C++ library not found.) ], []) + QRCODEGEN_LIBS=-lqrcodegencpp + AC_LANG_POP([C++]) + QRCODEGEN_CFLAGS=$(printf '%s' "$QRCODEGEN_CFLAGS" | sed -e "s/-I/${ISYSTEM?}/g") + FilterLibs "${QRCODEGEN_LIBS}" + QRCODEGEN_LIBS="${filteredlibs}" + else + AC_MSG_RESULT([internal]) + SYSTEM_QRCODEGEN= + BUILD_TYPE="$BUILD_TYPE QRCODEGEN" + fi + if test "$ENABLE_QRCODEGEN" = TRUE; then + AC_DEFINE(ENABLE_QRCODEGEN) + fi fi AC_SUBST(SYSTEM_QRCODEGEN) +AC_SUBST(ENABLE_QRCODEGEN) AC_SUBST(QRCODEGEN_CFLAGS) AC_SUBST(QRCODEGEN_LIBS) @@ -12947,6 +12964,7 @@ AC_CONFIG_HEADERS([config_host/config_mpl.h]) AC_CONFIG_HEADERS([config_host/config_oox.h]) AC_CONFIG_HEADERS([config_host/config_options.h]) AC_CONFIG_HEADERS([config_host/config_options_calc.h]) +AC_CONFIG_HEADERS([config_host/config_qrcodegen.h]) AC_CONFIG_HEADERS([config_host/config_typesizes.h]) AC_CONFIG_HEADERS([config_host/config_vendor.h]) AC_CONFIG_HEADERS([config_host/config_vcl.h]) |