From 258ff7f5eef3a0813f04c4c78f28f50fb601bef7 Mon Sep 17 00:00:00 2001 From: Darren Salt Date: Wed, 2 Dec 2009 18:37:05 +0000 Subject: Optimisation of generated documentation PNGs. --- configure.ac | 7 +++++++ doc/hackersguide/Makefile.am | 3 +++ 2 files changed, 10 insertions(+) diff --git a/configure.ac b/configure.ac index ecdbb2b1b..181fd8dd5 100644 --- a/configure.ac +++ b/configure.ac @@ -1190,6 +1190,13 @@ AM_CONDITIONAL([HAVE_XMLTO], [test "$XMLTO" != "no"]) 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 \ -- cgit v1.2.3