daemon: Find -lcamlstr{nat,byt} and -lunix{nat,byt}, and require -lzstd

OCaml 5.1 changes the names of these libraries for some reason.

Also in OCaml 5.1, if using those libraries you must link with -lzstd.
Since zstd was already described as "required" (although we only used
it in the appliance), there is no official change to the requirements,
but I have added a configure time check for the library.

Thanks: Jerry James <loganjerry@gmail.com>
This commit is contained in:
Richard W.M. Jones
2023-10-06 11:15:55 +01:00
parent 62b1deb125
commit f8cbd71400
3 changed files with 49 additions and 3 deletions

View File

@@ -248,6 +248,9 @@ PKG_CHECK_MODULES([PCRE2], [libpcre2-8], [], [
PCRE_LIBS=`$PCRE2_CONFIG --libs8`
])
dnl Check for zstd (required since OCaml 5.1)
PKG_CHECK_MODULES([LIBZSTD], [libzstd])
dnl Check for Augeas >= 1.2.0 (required).
PKG_CHECK_MODULES([AUGEAS],[augeas >= 1.2.0])