2 dnl Check whether the g_module_* family of functions works
3 dnl on this system. We need to know that at the compile time to
4 dnl decide whether to link with X11.
6 AC_DEFUN([AC_G_MODULE_SUPPORTED], [
7 AC_CACHE_CHECK([if gmodule functionality is supported], mc_cv_g_module_supported, [
8 ac_save_CFLAGS="$CFLAGS"
10 CFLAGS="$CFLAGS $GMODULE_CFLAGS"
11 LIBS="$GMODULE_LIBS $LIBS"
17 int ret = (g_module_supported () == TRUE) ? 0 : 1;
21 [mc_cv_g_module_supported=yes],
22 [mc_cv_g_module_supported=no],
23 [mc_cv_g_module_supported=no]
25 CFLAGS="$ac_save_CFLAGS"
29 if test x"$mc_cv_g_module_supported" = xyes; then
30 AC_DEFINE(HAVE_GMODULE, 1,
31 [Define if gmodule functionality is supported])