@@ -154,7 +154,7 @@ rm -f conftest.l $LEX_OUTPUT_ROOT.c
154154# gtk before 2.4.9 crashes with the way we use combobox :-(
155155# vips before 7.30 used "vips-x.y" as the pkg name
156156PKG_CHECK_MODULES(REQUIRED_PACKAGES,
157- gthread-2.0 gtk+-2.0 >= 2.4.9 libxml-2.0 vips >= 7.30)
157+ gmodule-2.0 gthread-2.0 gtk+-2.0 >= 2.4.9 libxml-2.0 vips >= 7.30)
158158IP_CFLAGS="$REQUIRED_PACKAGES_CFLAGS $IP_CFLAGS"
159159IP_LIBS="$REQUIRED_PACKAGES_LIBS $IP_LIBS"
160160
@@ -248,10 +248,24 @@ if test "x$with_fftw3" != "xno"; then
248248 IP_LIBS="$FFTW3_LIBS $IP_LIBS"
249249fi
250250
251+ # goffice needs libgsf to save plots to files
252+ AC_ARG_WITH ( [ libgsf] , AS_HELP_STRING ( [ --without-libgsf] , [ build without libgsf (default: test)] ) )
253+
254+ if test "x$with_libgsf" != "xno"; then
255+ PKG_CHECK_MODULES(LIBGSF, libgsf-1,
256+ [ AC_DEFINE ( HAVE_LIBGSF ,1 ,[ define if you have libgsf installed.] )
257+ with_libgsf=yes
258+ ] ,
259+ [ AC_MSG_WARN ( [ libgsf not found; disabling save plot to file] )
260+ with_libgsf=no
261+ ] )
262+ IP_CFLAGS="$LIBGSF_CFLAGS $LIBGSF_INCLUDES $IP_CFLAGS"
263+ IP_LIBS="$LIBGSF_LIBS $IP_LIBS"
264+ fi
265+
251266# optional ... use libgoffice to draw plots
252267# pretty basic functionality, really, but we need to be able to build without
253268# it for testing
254- # libgoffice 0.6.x is too buggy, build 0.7.x to get the 0.8 package
255269AC_ARG_WITH ( [ libgoffice] , AS_HELP_STRING ( [ --without-libgoffice] , [ build without libgoffice (default: test)] ) )
256270
257271if test "x$with_libgoffice" != "xno"; then
@@ -266,21 +280,6 @@ if test "x$with_libgoffice" != "xno"; then
266280 IP_LIBS="$LIBGOFFICE_LIBS $IP_LIBS"
267281fi
268282
269- # use libgsf to save goffice plots to files
270- AC_ARG_WITH ( [ libgsf] , AS_HELP_STRING ( [ --without-libgsf] , [ build without libgsf (default: test)] ) )
271-
272- if test "x$with_libgsf" != "xno"; then
273- PKG_CHECK_MODULES(LIBGSF, libgsf-1,
274- [ AC_DEFINE ( HAVE_LIBGSF ,1 ,[ define if you have libgsf installed.] )
275- with_libgsf=yes
276- ] ,
277- [ AC_MSG_WARN ( [ libgsf not found; disabling save plot to file] )
278- with_libgsf=no
279- ] )
280- IP_CFLAGS="$LIBGSF_CFLAGS $LIBGSF_INCLUDES $IP_CFLAGS"
281- IP_LIBS="$LIBGSF_LIBS $IP_LIBS"
282- fi
283-
284283# optional ... use libgvc to draw graphs of workspace dependencies
285284AC_ARG_WITH ( [ libgvc] , AS_HELP_STRING ( [ --without-libgvc] , [ build without libgvc (default: test)] ) )
286285
0 commit comments