Can m4 macro do redirection output to the variable with shell $(...)
? Variable $MANPAGE_DOCBOOK_XSL
is empty :(.
if test "x${XMLCATALOG}" != "x" -a "x$have_xmlcatalog_file" = "xyes"; then
DOCBOOK_XSL_URI="http://docbook.sourceforge.net/release/xsl/current"
DOCBOOK_XSL_PATH="manpages/docbook.xsl"
MANPAGE_DOCBOOK_XSL=$(${XMLCATALOG} ${XML_CATALOG_FILE} ${DOCBOOK_XSL_URI}/${DOCBOOK_XSL_PATH} | sed -n 's|^file:/\+|/|p;q')
fi
https://github.com/pevik/ima-evm-utils/blob/master/m4/manpage-docbook-xsl.m4#L22
Looking at similar code in Wayland, they just check whether command works (whether catalog can be found), but not for the value.
https://github.com/wayland-project/wayland/blob/master/configure.ac#L167