3 dnl Used to read keyboard modifiers when running under X11.
4 AC_DEFUN([mc_WITH_X], [
8 if test x"$no_x" = xyes; then
9 textmode_x11_support="no"
11 AC_DEFINE([HAVE_TEXTMODE_X11_SUPPORT], [1],
12 [Define to enable getting events from X Window System])
13 textmode_x11_support="yes"
15 CPPFLAGS="$CPPFLAGS $X_CFLAGS"
17 if test x"$g_module_supported" = x; then
18 MCLIBS="$MCLIBS $X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS"
22 AM_CONDITIONAL([HAVE_TEXTMODE_X11_SUPPORT], [test x"$textmode_x11_support" = x"yes"])