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'

(This patch goes on top of the small branch posted earlier.)

Signed-off-by: Mathieu Denis <[email protected]>
Signed-off by: Yannick Brosseau <[email protected]>
Signed-off-by: Alexandre Montplaisir <[email protected]>
---
 configure.ac |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)

diff --git a/configure.ac b/configure.ac
index 51aabd4..2cd8ee9 100644
--- a/configure.ac
+++ b/configure.ac
@@ -113,13 +113,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])
 
-- 
1.7.9


_______________________________________________
lttng-dev mailing list
[email protected]
http://lists.lttng.org/cgi-bin/mailman/listinfo/lttng-dev

Reply via email to