check abseil version

since 918515d6fc updated to a pdfium
version which only builds with >= 20230125.3 (earliest I could get hand
on).

Ideally we should test for the feature, but this suffices too and we do
that for other libs, too...

Change-Id: I14719186d415b9df82f607b26233c9be154492c6
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160833
Tested-by: René Engelhard <rene@debian.org>
Tested-by: Jenkins
Reviewed-by: René Engelhard <rene@debian.org>
This commit is contained in:
Rene Engelhard 2023-12-15 17:45:27 +01:00 committed by René Engelhard
parent c48952eb6b
commit e897231033

View file

@ -12243,6 +12243,15 @@ if test "$ENABLE_PDFIUM" = "TRUE"; then
AC_CHECK_LIB([absl_bad_variant_access], [main], [],
[AC_MSG_ERROR([libabsl_bad_variant_access library not found.])])
ABSEIL_LIBS="-labsl_bad_optional_access -labsl_bad_variant_access"
AC_MSG_CHECKING([whether abseil is >= 20230125])
AC_COMPILE_IFELSE([AC_LANG_SOURCE([
#include <absl/base/config.h>
#if ABSL_LTS_RELEASE_VERSION < 20230125
#error Too old.
#endif
])],
[AC_MSG_RESULT([ok])],
[AC_MSG_ERROR([too old. Need >= 20230125])])
AC_LANG_POP([C++])
ABSEIL_CFLAGS=$(printf '%s' "$ABSEIL_CFLAGS" | sed -e "s/-I/${ISYSTEM?}/g")
FilterLibs "${ABSEIL_LIBS}"