1 diff --git a/acinclude.m4 b/acinclude.m4
2 index dd01f165..e23160ee 100644
5 @@ -46,9 +46,21 @@ AC_DEFUN([JH_CHECK_XML_CATALOG],
9 - AC_MSG_RESULT([not found])
11 - [AC_MSG_ERROR([could not find ifelse([$2],,[$1],[$2]) in XML catalog])],
13 + jh_check_xml_catalog_saved_ifs="$IFS"
15 + for f in $XML_CATALOG_FILES; do
16 + if [[ -f "$f" ]] && \
17 + AC_RUN_LOG([$XMLCATALOG --noout "$f" "$1" >&2]); then
18 + jh_found_xmlcatalog=true
19 + AC_MSG_RESULT([found])
24 + IFS="$jh_check_xml_catalog_saved_ifs"
25 + if ! $jh_found_xmlcatalog; then
26 + AC_MSG_RESULT([not found])
27 + ifelse([$4],,[AC_MSG_ERROR([could not find ifelse([$2],,[$1],[$2]) in XML catalog])],[$4])