summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarren Salt <linux@youmustbejoking.demon.co.uk>2009-12-02 18:37:05 +0000
committerDarren Salt <linux@youmustbejoking.demon.co.uk>2009-12-02 18:37:05 +0000
commit258ff7f5eef3a0813f04c4c78f28f50fb601bef7 (patch)
treeeba97deb5933aee79cdcfc77463340737224cf31
parentf1565c7b693145c8140421d1bf832f9d1b4336ea (diff)
downloadxine-lib-258ff7f5eef3a0813f04c4c78f28f50fb601bef7.tar.gz
xine-lib-258ff7f5eef3a0813f04c4c78f28f50fb601bef7.tar.bz2
Optimisation of generated documentation PNGs.
-rw-r--r--configure.ac7
-rw-r--r--doc/hackersguide/Makefile.am3
2 files changed, 10 insertions, 0 deletions
diff --git a/configure.ac b/configure.ac
index ecdbb2b1b..181fd8dd5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1191,6 +1191,13 @@ AC_CHECK_PROG(RSVG, rsvg, rsvg, no)
AM_CONDITIONAL([HAVE_RSVG], [test "$RSVG" != "no"])
dnl ---------------------------------------------
+dnl ... and for PNG optimisation tool
+dnl ---------------------------------------------
+
+AC_CHECK_PROG(OPTIPNG, optipng, optipng, no)
+AM_CONDITIONAL([HAVE_OPTIPNG], [test "$OPTIPNG" != "no"])
+
+dnl ---------------------------------------------
dnl Output configuration files
dnl ---------------------------------------------
diff --git a/doc/hackersguide/Makefile.am b/doc/hackersguide/Makefile.am
index 2b65bfe90..37269eaf0 100644
--- a/doc/hackersguide/Makefile.am
+++ b/doc/hackersguide/Makefile.am
@@ -56,6 +56,9 @@ endif
if HAVE_RSVG
.svg.png:
rsvg -f png $^ $@
+if HAVE_OPTIPNG
+ optipng $@
+endif
else
.svg.png:
if test x"$(fail_if_missing)" = x"yes"; then \