From 5260d6612c6e8f0c46dd89e5abc355d6b1d0a4ee Mon Sep 17 00:00:00 2001 From: Andrew Borodin Date: Wed, 24 Jul 2013 09:59:55 +0400 Subject: [PATCH] Ticket #2995: do not link GModule if it is not required (save space on embedded systems). Signed-off-by: Andrew Borodin --- configure.ac | 3 +++ m4.include/ac-glib.m4 | 2 -- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index c12c2e779..2a547e239 100644 --- a/configure.ac +++ b/configure.ac @@ -483,6 +483,9 @@ AM_CONDITIONAL(USE_ASPELL, [test x"$enable_aspell" = xyes ]) AM_CONDITIONAL(USE_DIFF, [test -n "$use_diff"]) AM_CONDITIONAL(CHARSET, [test -n "$have_charset"]) AM_CONDITIONAL(CONS_SAVER, [test -n "$cons_saver"]) +dnl Clarify do we really need GModule +AM_CONDITIONAL([HAVE_GMODULE], [test -n "$g_module_supported" && \ + test x"$textmode_x11_support" = x"yes" -o x"$enable_aspell" = x"yes"]) AC_DEFINE_UNQUOTED([MC_CONFIGURE_ARGS], ["$ac_configure_args"], [MC configure arguments]) diff --git a/m4.include/ac-glib.m4 b/m4.include/ac-glib.m4 index 9d35d1c29..dcf6a87f4 100644 --- a/m4.include/ac-glib.m4 +++ b/m4.include/ac-glib.m4 @@ -32,8 +32,6 @@ AC_DEFUN([AC_G_MODULE_SUPPORTED], [ ;; esac - AM_CONDITIONAL([HAVE_GMODULE], [test x"$g_module_supported" != x]) - dnl dnl Try to find static libraries for glib and gmodule. dnl