Skip to contentSkip to conversation

configure: Improve zstd test

PATCH In review Juan Quintela 2 participants 2 messages Mar 10, 2020 – Mar 12, 2020

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 configure: Improve zstd test

There were one error on the test (missing an s for --exists). But we really need a recent zstd (1.4.0).
Thanks to Michal Privoznik to provide the right vension.

---
 configure | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
configure +2 -1
index cbf864bff1..f5454bd603 100755
@@ -2475,7 +2475,8 @@ fi
 # zstd check
 
 if test "$zstd" != "no" ; then
-    if $pkg_config --exist libzstd ; then
+    libzstd_minver="1.4.0"
+    if $pkg_config --atleast-version=$libzstd_minver libzstd ; then
         zstd_cflags="$($pkg_config --cflags libzstd)"
         zstd_libs="$($pkg_config --libs libzstd)"
         LIBS="$zstd_libs $LIBS"
Signature · 1 line
2.24.1
#1 lore raw
Quoted 6 lines · * Juan Quintela ([email protected]) wrote:

There were one error on the test (missing an s for --exists). But we really need a recent zstd (1.4.0).
Thanks to Michal Privoznik to provide the right vension.

Queued for migration

Quoted 22 lines
---
 configure | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
configure +2 -1
index cbf864bff1..f5454bd603 100755
@@ -2475,7 +2475,8 @@ fi
 # zstd check
 
 if test "$zstd" != "no" ; then
-    if $pkg_config --exist libzstd ; then
+    libzstd_minver="1.4.0"
+    if $pkg_config --atleast-version=$libzstd_minver libzstd ; then
         zstd_cflags="$($pkg_config --cflags libzstd)"
         zstd_libs="$($pkg_config --libs libzstd)"
         LIBS="$zstd_libs $LIBS"
Signature · 1 line
2.24.1

--
Dr. David Alan Gilbert / [email protected] / Manchester, UK