diff options
author | Shaun McCance <shaunm@gnome.org> | 2011-01-16 18:31:54 -0500 |
---|---|---|
committer | Shaun McCance <shaunm@gnome.org> | 2011-01-16 18:31:54 -0500 |
commit | 319f5e3580363d0b6f6dc389b40172f52b31bc10 (patch) | |
tree | 1bba71f9f65da150c30ed34b6f758fe5bf68fa4c | |
parent | 2bb43191bddb90bd8fe4e23cad82a6dfe98b7368 (diff) | |
download | yelp-tools-319f5e3580363d0b6f6dc389b40172f52b31bc10.tar.gz |
configure.ac: Check for xmllint and xsltproc by binaries
Use pkg-config often means you need to installed devel packages
containing headers and such. But the binaries are often in the
base packages. No need to require devel.
-rw-r--r-- | configure.ac | 18 |
1 files changed, 16 insertions, 2 deletions
diff --git a/configure.ac b/configure.ac index 900b033..4638d08 100644 --- a/configure.ac +++ b/configure.ac @@ -18,10 +18,24 @@ AC_PROG_LN_S AM_PATH_PYTHON([2.4]) +AC_CHECK_PROG(XMLLINT, xmllint, xmllint) +if test x"$XMLLINT" = x; then + AC_MSG_ERROR([xmllint not found]) +fi +if [ `$XMLLINT --version 2>&1 | head -n1 | cut -d' ' -f5` -lt 20612 ]; then + AC_MSG_ERROR([xmllint too old; 2.6.12 required]) +fi + +AC_CHECK_PROG(XSLTPROC, xsltproc, xsltproc) +if test x"$XSLTPROC" = x; then + AC_MSG_ERROR([xsltproc not found]) +fi +if [ `$XSLTPROC --version 2>&1 | head -n1 | cut -d' ' -f5` -lt 10108 ]; then + AC_MSG_ERROR([xsltproc too old; 1.1.8 required]) +fi + PKG_CHECK_MODULES(GNOME_DOC_UTILS, [ - libxml-2.0 >= 2.6.12 - libxslt >= 1.1.8 yelp-xsl ]) |