From: Alexandre Montplaisir Date: Wed, 8 Feb 2012 23:19:12 +0000 (-0500) Subject: Test for gmodule inclusion in all cases X-Git-Tag: v1.5-beta1~94 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=31534155604188e25a686138f53e6e3a8f24ec2e;p=lttv.git Test for gmodule inclusion in all cases On recent glib versions, it seems gmodule needs to be included separately from glib/gtk, or it leads to compilation errors, e.g. undefined reference to `g_module_close' Signed-off-by: Mathieu Denis Signed-off by: Yannick Brosseau Signed-off-by: Alexandre Montplaisir Signed-off-by: Yannick Brosseau --- diff --git a/configure.ac b/configure.ac index e5c110cc..58af406b 100644 --- a/configure.ac +++ b/configure.ac @@ -114,13 +114,11 @@ AM_CONDITIONAL([BUILD_JNI_INTERFACE], [ test "$with_jni_interface" = "yes" ] ) AS_IF([test "x$with_lttv_gui" = "xyes"],[ pkg_modules="gtk+-2.0 >= 2.0.0" PKG_CHECK_MODULES(PACKAGE, [$pkg_modules]) -],[ - # Else, we still have a dependency on gmodule - # We will add flags for gmodule alone - pkg_modules="gmodule-2.0 >= 2.0.0" - PKG_CHECK_MODULES(GMODULE, [$pkg_modules]) ]) +pkg_modules="gmodule-2.0 >= 2.0.0" +PKG_CHECK_MODULES(GMODULE, [$pkg_modules]) + pkg_modules="gobject-2.0 >= 2.0.0" PKG_CHECK_MODULES(GOBJECT, [$pkg_modules])