Skip to content

Commit 075d068

Browse files
committed
fixes to help win64
win hates out of order -l flags, so make sure gsf is after goffice win has trouble with indirect deps, so explicitly include gmodule
1 parent 61ac1cc commit 075d068

File tree

2 files changed

+17
-17
lines changed

2 files changed

+17
-17
lines changed

ChangeLog

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
started 8.3.1 on 19/5/16
22
- disable debug by default, thanks Benjamin
3+
- configure changes to help win64
34

45
started 8.3.0 on 28/3/16
56
- move path search stuff into _convert from _magick

configure.ac

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -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
156156
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)
158158
IP_CFLAGS="$REQUIRED_PACKAGES_CFLAGS $IP_CFLAGS"
159159
IP_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"
249249
fi
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
255269
AC_ARG_WITH([libgoffice], AS_HELP_STRING([--without-libgoffice], [build without libgoffice (default: test)]))
256270

257271
if test "x$with_libgoffice" != "xno"; then
@@ -266,21 +280,6 @@ if test "x$with_libgoffice" != "xno"; then
266280
IP_LIBS="$LIBGOFFICE_LIBS $IP_LIBS"
267281
fi
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
285284
AC_ARG_WITH([libgvc], AS_HELP_STRING([--without-libgvc], [build without libgvc (default: test)]))
286285

0 commit comments

Comments
 (0)