configure: allow for setting --with-lo-path with --enable-fuzzers

But if lo-path is missing with fuzzers, it's acceptable.

This allows for generating the systemplate when the
fuzzers are enabled (for example when doing a clean
build that removes the systemplate too).

Change-Id: I43fac66563fa5e2255daf0c8878b4ffca99ae0b0
Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk>
pull/2559/head
Ashod Nakashian 2021-05-26 17:36:25 -04:00 committed by Ashod Nakashian
parent b7463bf439
commit e0934a3382
1 changed files with 3 additions and 2 deletions

View File

@ -857,7 +857,7 @@ AS_IF([test -n "$LOKIT_PATH"],
[CPPFLAGS="$CPPFLAGS -I${LOKIT_PATH}"])
lokit_msg="$LOKIT_PATH"
AS_IF([test "$ENABLE_IOSAPP" != "true" -a "$ENABLE_ANDROIDAPP" != "true" -a "$enable_fuzzers" != "yes"],
AS_IF([test "$ENABLE_IOSAPP" != "true" -a "$ENABLE_ANDROIDAPP" != "true"],
[AC_MSG_CHECKING([for LibreOffice path])
if test -n "$with_lo_path"; then
# strip trailing '/' from LO_PATH, 'ln -s' with such path will otherwise fail
@ -865,7 +865,8 @@ AS_IF([test "$ENABLE_IOSAPP" != "true" -a "$ENABLE_ANDROIDAPP" != "true" -a "$en
AC_MSG_RESULT([found])
else
AC_MSG_RESULT([not found])
AC_MSG_ERROR([LibreOffice path must be configured: --with-lo-path])
AS_IF([test "$enable_fuzzers" != "yes"],
[AC_MSG_ERROR([LibreOffice path must be configured: --with-lo-path])])
fi
])