This fixes an issue where if the curl lib is not found, then zstd will
not be supported.
The detection method for both curl and zstd uses a shell variable 'error'.
Unless we unset the variable afterward, the results of the curl check
carry over to the zstd check.
if test x"${error}" == "x"; then
support_curl=yes
-fi
+fi
+
+unset error
AC_MSG_RESULT([$support_curl])
if test "$support_curl" = "yes"; then
ZSTD_INC=""
fi
+unset error
+
AC_MSG_RESULT([$support_zstd])
if test "$support_zstd" = "yes"; then
AC_DEFINE(HAVE_ZSTD, 1, [Define if ZSTD library is available])