From: Regina Obe Date: Sun, 4 Nov 2012 10:45:09 +0000 (+0000) Subject: #1980: define new configure arg --with-mathmldtd to allow overriding path to mathmldtd X-Git-Tag: 2.1.0beta2~417 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dd79f4db28bb407dfe13eab94285fbe9ffe71bff;p=postgis #1980: define new configure arg --with-mathmldtd to allow overriding path to mathmldtd git-svn-id: http://svn.osgeo.org/postgis/trunk@10638 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/configure.ac b/configure.ac index 79ecc5aff..d592d22b9 100644 --- a/configure.ac +++ b/configure.ac @@ -224,19 +224,22 @@ AC_SUBST([XSLBASE]) dnl dnl Let's see if we can find mathml2.dtd dnl - -MATHML2_DTD="http://www.w3.org/Math/DTD/mathml2/mathml2.dtd" +AC_ARG_WITH([mathmldtd], + [AS_HELP_STRING([--with-mathmldtd=PATH], [specify the dtd path for mathml2.dtd])], + [MATHML2_DTD="$withval"], [MATHML2_DTD=""]) dnl TODO: get more paths to add here... -SEARCHPATH=" - /usr/share/xml/schema/w3c/mathml/dtd - " -for p in ${SEARCHPATH}; do - if test -r "${p}"/mathml2.dtd; then - MATHML2_DTD="${p}/mathml2.dtd" - break - fi -done - +if test "x$MATHML2_DTD" = "x"; then + MATHML2_DTD="http://www.w3.org/Math/DTD/mathml2/mathml2.dtd" + SEARCHPATH=" + /usr/share/xml/schema/w3c/mathml/dtd + " + for p in ${SEARCHPATH}; do + if test -r "${p}"/mathml2.dtd; then + MATHML2_DTD="${p}/mathml2.dtd" + break + fi + done +fi AC_SUBST([MATHML2_DTD]) dnl ===========================================================================