configure.ac | 9 +++++++++
1 file changed, 9 insertions(+)
New commits:
commit e89723103313ec4366ee58144c47d7a5c16bf838
Author: Rene Engelhard <[email protected]>
AuthorDate: Fri Dec 15 17:45:27 2023 +0100
Commit: René Engelhard <[email protected]>
CommitDate: Fri Dec 15 19:32:10 2023 +0100
check abseil version
since 918515d6fc6e2eaa000c4a997d604b7b00b492e3 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 <[email protected]>
Tested-by: Jenkins
Reviewed-by: René Engelhard <[email protected]>
diff --git a/configure.ac b/configure.ac
index 151f68f7bb22..97de2b514d3a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -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}"