@@ -154,7 +154,7 @@ rm -f conftest.l $LEX_OUTPUT_ROOT.c
154
154
# gtk before 2.4.9 crashes with the way we use combobox :-(
155
155
# vips before 7.30 used "vips-x.y" as the pkg name
156
156
PKG_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)
158
158
IP_CFLAGS="$REQUIRED_PACKAGES_CFLAGS $IP_CFLAGS"
159
159
IP_LIBS="$REQUIRED_PACKAGES_LIBS $IP_LIBS"
160
160
@@ -248,10 +248,24 @@ if test "x$with_fftw3" != "xno"; then
248
248
IP_LIBS="$FFTW3_LIBS $IP_LIBS"
249
249
fi
250
250
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
+
251
266
# optional ... use libgoffice to draw plots
252
267
# pretty basic functionality, really, but we need to be able to build without
253
268
# it for testing
254
- # libgoffice 0.6.x is too buggy, build 0.7.x to get the 0.8 package
255
269
AC_ARG_WITH ( [ libgoffice] , AS_HELP_STRING ( [ --without-libgoffice] , [ build without libgoffice (default: test)] ) )
256
270
257
271
if test "x$with_libgoffice" != "xno"; then
@@ -266,21 +280,6 @@ if test "x$with_libgoffice" != "xno"; then
266
280
IP_LIBS="$LIBGOFFICE_LIBS $IP_LIBS"
267
281
fi
268
282
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
-
284
283
# optional ... use libgvc to draw graphs of workspace dependencies
285
284
AC_ARG_WITH ( [ libgvc] , AS_HELP_STRING ( [ --without-libgvc] , [ build without libgvc (default: test)] ) )
286
285
0 commit comments