]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Tweak ZSTD detection in configure.in
authorEric Bollengier <eric@baculasystems.com>
Wed, 13 Oct 2021 11:56:57 +0000 (13:56 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 14 Sep 2023 11:56:56 +0000 (13:56 +0200)
bacula/autoconf/config.h.in
bacula/autoconf/configure.in

index f8abfaeb7ed92a978e52d78cdbe35852ebd5c23a..1ba536f36de3c935923b6c22a4fb6f645a5a4060 100644 (file)
 /* Define if you have zlib */
 #undef HAVE_LIBZ
 
+/* Define if you have zstd lib */
+#undef HAVE_ZSTD
+
 /* Define if you have lzo lib */
 #undef HAVE_LZO
 
index 6391cf9e002095438c912f87daf494741fd30d1c..01b5fc282804e9e11253bf1fa6510c136ed6531c 100644 (file)
@@ -1007,7 +1007,9 @@ AC_CHECK_LIB(zstd,ZSTD_createCCtx,,[error="Can't find ZSTD library."])
 
 if test x"${error}" == "x"; then
     support_zstd=yes
-fi 
+else
+    support_zstd=no
+fi
 
 AC_MSG_RESULT([$support_zstd])
 if test "$support_zstd" = "yes"; then