AC_DEFINE([DOVECOT_VERSION_MINOR], regexp(AC_PACKAGE_VERSION, [^\([0-9]+\)\.\([0-9]+\)], [\2]), [Dovecot minor version])
AC_DEFINE([DOVECOT_VERSION_MICRO], regexp(AC_PACKAGE_VERSION, [^\([0-9]+\)\.\([0-9]+\).\([0-9]+\)], [\3]), [Dovecot micro version])
+DOVECOT_ASSET_VERSION=regexp(AC_PACKAGE_VERSION, [^\([0-9]+\)\.\([0-9]+\)], [\1.\2])
+AC_SUBST(DOVECOT_ASSET_VERSION)
+
AC_COMPILE_IFELSE([AC_LANG_PROGRAM([
],[
#if DOVECOT_VERSION_MICRO > 0
solr-config-9.xml \
solr-schema-9.xml
-DOCS_URL=https://doc.dovecot.org/assets/3.0/docs.txz
-MAN_URL=https://doc.dovecot.org/assets/3.0/man.txz
+DOCS_URL=https://doc.dovecot.org/assets/$(DOVECOT_ASSET_VERSION)/docs.txz
+MAN_URL=https://doc.dovecot.org/assets/$(DOVECOT_ASSET_VERSION)/core.txz
AM_V_Q = $(am__v_Q_$(V))
am__v_Q_ = $(am__v_Q_$(AM_DEFAULT_VERBOSITY))