Ticket #2995: do not link GModule if it is not required (save space on embedded systems).

Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andrew Borodin 2013-07-24 09:59:55 +04:00
parent c194851754
commit 5260d6612c
2 changed files with 3 additions and 2 deletions

View File

@ -483,6 +483,9 @@ AM_CONDITIONAL(USE_ASPELL, [test x"$enable_aspell" = xyes ])
AM_CONDITIONAL(USE_DIFF, [test -n "$use_diff"]) AM_CONDITIONAL(USE_DIFF, [test -n "$use_diff"])
AM_CONDITIONAL(CHARSET, [test -n "$have_charset"]) AM_CONDITIONAL(CHARSET, [test -n "$have_charset"])
AM_CONDITIONAL(CONS_SAVER, [test -n "$cons_saver"]) 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]) AC_DEFINE_UNQUOTED([MC_CONFIGURE_ARGS], ["$ac_configure_args"], [MC configure arguments])

View File

@ -32,8 +32,6 @@ AC_DEFUN([AC_G_MODULE_SUPPORTED], [
;; ;;
esac esac
AM_CONDITIONAL([HAVE_GMODULE], [test x"$g_module_supported" != x])
dnl dnl
dnl Try to find static libraries for glib and gmodule. dnl Try to find static libraries for glib and gmodule.
dnl dnl