[passepartout] check for xsltproc in configure
- From: Sven Herzberg <herzi src gnome org>
- To: svn-commits-list gnome org
- Subject: [passepartout] check for xsltproc in configure
- Date: Tue, 28 Apr 2009 10:16:09 -0400 (EDT)
commit 8d109d0157cb462f6c385e5a545e0f0169b9e0c4
Author: Sven Herzberg <herzi lanedo com>
Date: Tue Apr 28 15:00:44 2009 +0200
check for xsltproc in configure
* configure.ac: check for xsltproc
* help/Makefile.am,
* src/xml2ps/Makefile.am: use the new $(XSLTPROC) variable
---
configure.ac | 6 ++++++
help/Makefile.am | 4 ++--
src/xml2ps/Makefile.am | 2 +-
3 files changed, 9 insertions(+), 3 deletions(-)
diff --git a/configure.ac b/configure.ac
index 887cfce..87615d1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -125,6 +125,12 @@ if test "${XMLLINT}" = "no"; then
http://xmlsoft.org/downloads.html])
fi
+AC_PATH_PROGS(XSLTPROC,[xsltproc],[no])
+if test "${XSLTPROC}" = "no"; then
+ AC_MSG_ERROR([xsltproc not fount, please install libxslt from
+ http://xmlsoft.org/XSLT/downloads.html])
+fi
+
dnl ---------------
dnl | documentation |
dnl ---------------
diff --git a/help/Makefile.am b/help/Makefile.am
index cbcf747..6b6c69c 100644
--- a/help/Makefile.am
+++ b/help/Makefile.am
@@ -62,11 +62,11 @@ SUFFIXES=.txt .xml .html
.xml.txt:
@echo "[GEN] $@"
- (mkdir -p C && cd C && xsltproc --path . -o $@ ../$(srcdir)/$(DOCBOOK2TXT) ../$<)
+ (mkdir -p C && cd C && $(XSLTPROC) --path . -o $@ ../$(srcdir)/$(DOCBOOK2TXT) ../$<)
.xml.html:
@echo "[GEN] $@"
- (mkdir -p C && cd C && xsltproc --path . -o $@ ../$(srcdir)/$(DOCBOOK2HTML) ../$<)
+ (mkdir -p C && cd C && $(XSLTPROC) --path . -o $@ ../$(srcdir)/$(DOCBOOK2HTML) ../$<)
EXTRA_DIST=$(dist_built_in) $(DOCBOOK2TXT) $(DOCBOOK2HTML)
CLEANFILES=$(nodist_doc_DATA)
diff --git a/src/xml2ps/Makefile.am b/src/xml2ps/Makefile.am
index c7ced35..2927097 100644
--- a/src/xml2ps/Makefile.am
+++ b/src/xml2ps/Makefile.am
@@ -29,7 +29,7 @@ dist_xml_DATA=\
$(NULL)
%.x2p: %.xhtml $(top_srcdir)/data/xhtml.xslt
- xsltproc $(top_srcdir)/data/xhtml.xslt $< > $@
+ $(XSLTPROC) $(top_srcdir)/data/xhtml.xslt $< > $@
%.pdf: %.x2p
./xml2ps --output-format=pdf -p 300x400 < $< > $@
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]