Commit 52171a8b authored by Josh DuBois's avatar Josh DuBois Committed by Alexandre Julliard

buildimage: Allow use of rsvg-convert as alternative to rsvg.

parent 1042684e
......@@ -5771,7 +5771,7 @@ fi
done
test -n "$FONTFORGE" || FONTFORGE="false"
for ac_prog in rsvg
for ac_prog in rsvg-convert rsvg
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
set dummy $ac_prog; ac_word=$2
......
......@@ -284,7 +284,7 @@ then
else
test "$srcdir" = . || AC_MSG_ERROR([Maintainer mode cannot work out of tree.])
AC_CHECK_PROGS(FONTFORGE, fontforge, false)
AC_CHECK_PROGS(RSVG, rsvg, false)
AC_CHECK_PROGS(RSVG, rsvg-convert rsvg, false)
AC_CHECK_PROGS(CONVERT, convert, false)
AC_CHECK_PROGS(ICOTOOL, icotool, false)
test "$FONTFORGE" != "false" || AC_MSG_ERROR([You need fontforge to rebuild fonts in maintainer mode.])
......
......@@ -141,7 +141,12 @@ sub svg_element_start
}
# Render the SVG image
shell $rsvg, $svgFileName, $renderedSVGFileName;
my @rsvgCmd;
push(@rsvgCmd, $rsvg);
push(@rsvgCmd, $svgFileName);
push(@rsvgCmd, "-o") if ($rsvg eq "rsvg-convert");
push(@rsvgCmd, $renderedSVGFileName);
shell @rsvgCmd;
# Render the images in the SVG
my $parser = new XML::Parser(
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment