Commit 4e7f090d authored by Didier Barvaux's avatar Didier Barvaux Committed by Hiroyuki Ikezoe

Add --enable-tools/--disable-tools options to avoid building miscellaneous tools

Fix for bug #614123.
parent cde8e3f1
......@@ -8,7 +8,9 @@ SUBDIRS = . gdk-pixbuf-loader gtk-engine data tests doc
lib_LTLIBRARIES = librsvg-2.la
bin_PROGRAMS = rsvg-convert $(target_rsvg_view)
if BUILD_MISC_TOOLS
noinst_PROGRAMS = test-performance rsvg-dimensions
endif
man_MANS = rsvg.1
......
......@@ -285,6 +285,23 @@ gtk_doc_installed=true
GTK_DOC_CHECK([1.0])
AM_CONDITIONAL(GTK_DOC_INSTALLED, $gtk_doc_installed)
dnl ===========================================================================
dnl Do we build the miscellaenous tools provided with librsvg ?
AC_ARG_ENABLE(tools,
AC_HELP_STRING([--disable-tools],
[do not build miscellaenous tools [default=no]]),
[build_misc_tools=$enableval],
[build_misc_tools=yes])
AC_MSG_CHECKING(whether to build miscellaenous tools)
if test "x$build_misc_tools" = "xyes" ; then
AC_MSG_RESULT(yes)
else
AC_MSG_RESULT(no)
fi
AM_CONDITIONAL([BUILD_MISC_TOOLS], [test "x$build_misc_tools" = "xyes"])
dnl ===========================================================================
m4_copy([AC_DEFUN],[glib_DEFUN])
......@@ -334,6 +351,7 @@ librsvg-$LIBRSVG_VERSION
Build GdkPixbuf loader: ${enable_pixbuf_loader}
Build theme engine: ${enable_gtk_theme}
Build miscellaenous tools: ${build_misc_tools}
Handle svgz files: ${test_gsf}
Use GIO: ${test_gio}
Use libcroco for css parsing: ${test_croco}
......
if BUILD_MISC_TOOLS
noinst_PROGRAMS = perceptualdiff
noinst_LTLIBRARIES = libpdiff.la
......@@ -14,3 +16,6 @@ perceptualdiff_SOURCES = \
INCLUDES = $(LIBRSVG_CFLAGS)
LDADD = libpdiff.la $(LIBRSVG_LIBS) -lm
endif
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