#define abs(x) ((x) < 0 ? -(x) : (x))
/* Default to using XIM if available. */
+#ifdef USE_XIM
int use_xim = 1;
+#else
+int use_xim = 0; /* configure --without-xim */
+#endif
+
\f
/* Non-nil means Emacs uses toolkit scroll bars. */
/* This is XPointer in XFree86
but (XPointer *) on Tru64, at
least, hence the configure test. */
- (XRegisterIMInstantiateCallback_arg6) xim_inst);
+ (XPointer) xim_inst);
#else /* not HAVE_X11R6_XIM */
dpyinfo->xim = NULL;
xim_open_dpy (dpyinfo, resource_name);
build_string ("useXIM"),
build_string ("UseXIM"),
Qnil, Qnil);
+#ifdef USE_XIM
if (STRINGP (value)
&& (!strcmp (XSTRING (value)->data, "false")
|| !strcmp (XSTRING (value)->data, "off")))
use_xim = 0;
+#else
+ if (STRINGP (value)
+ && (!strcmp (XSTRING (value)->data, "true")
+ || !strcmp (XSTRING (value)->data, "on")))
+ use_xim = 1;
+#endif
}
UNBLOCK_INPUT;