From d64b24ffc2c8bae4cf2fc28f835a7b213fb5a453 Mon Sep 17 00:00:00 2001 From: Owen Taylor Date: Mon, 21 Apr 2003 01:10:06 +0000 Subject: [PATCH] Check for XAddConnectionWatch()/X11R6, and if found, disable XIM and use Fri Apr 18 16:31:49 2003 Owen Taylor * configure.in gdk/x11/gdkdisplay-x11.c modules/input/Makefile.am: Check for XAddConnectionWatch()/X11R6, and if found, disable XIM and use of XAddConnectionWatch. Remove --enable-xim config option. Should fix building on X11R6 (#110523, Albert Chin) --- configure.in | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/configure.in b/configure.in index 7b53bc7ac0..b9bb6bb3fb 100644 --- a/configure.in +++ b/configure.in @@ -178,8 +178,6 @@ AC_ARG_ENABLE(shm, [ --enable-shm support shared memory if available echo $enable_shm, enable_shm="yes") AC_ARG_ENABLE(ansi, [ --enable-ansi turn on strict ansi [default=no]], , enable_ansi=no) -AC_ARG_ENABLE(xim, [ --enable-xim support XIM [default=yes]], - , enable_xim="yes") AC_ARG_ENABLE(xkb, [ --enable-xkb support XKB [default=maybe]], , enable_xkb="maybe") AC_ARG_ENABLE(rebuilds, [ --disable-rebuilds disable all source autogeneration rules],,enable_rebuilds=yes) @@ -1151,11 +1149,20 @@ if test "x$gdktarget" = "xx11"; then , $x_libs_for_checks) - # Check for XIM support. + # Generic X11R6 check needed for XIM support; we could + # probably use this to replace the above, but we'll + # leave the separate XConvertCase check for clarity - if test "x$enable_xim" = "xyes"; then - GTK_XIM_FLAGS="-DUSE_XIM" + have_x11r6=false + AC_CHECK_LIB(X11, XAddConnectionWatch, + have_x11r6=true, + , + $x_libs_for_checks) + + if $have_x11r6; then + AC_DEFINE(HAVE_X11R6,1,[Define if we have X11R6]) fi + AM_CONDITIONAL(HAVE_X11R6, $have_x11r6) # Check for XKB support.