fix autoconf errors when vmods not found

parent cc72f70f
......@@ -27,13 +27,18 @@ if test "x$VARNISHSRC" = x; then
fi
VARNISHAPI_CFLAGS="$VARNISHAPI_CFLAGS -I$VARNISHSRC/bin/varnishd"
AC_PATH_TOOL(VMOD_BLOB, [libvmod_blob.so],
[AC_MSG_WARN([vmod_blob not found, checksum support will be disabled])],
AC_PATH_TOOL(VMOD_BLOB, [libvmod_blob.so], [],
[${VARNISHAPI_VMODDIR}:${vmoddir}])
if test "x$VMOD_BLOB" = x ; then
AC_MSG_WARN([vmod_blob not found, checksum support will be disabled])
fi
AC_SUBST(VMOD_BLOB)
AC_PATH_TOOL(VMOD_BLOBDIGEST, [libvmod_blobdigest.so],
[AC_MSG_WARN([vmod_blob not found, checksum support will be disabled])],
AC_PATH_TOOL(VMOD_BLOBDIGEST, [libvmod_blobdigest.so], [],
[${VARNISHAPI_VMODDIR}:${vmoddir}])
if test "x$VMOD_BLOBDIGEST" = x ; then
AC_MSG_WARN([vmod_blob not found, checksum support will be disabled])
fi
AC_SUBST(VMOD_BLOBDIGEST)
AM_CONDITIONAL(CHKSUM, test x$VMOD_BLOB != x && test x$VMOD_BLOBDIGEST != x)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment