… | |
… | |
517 | stdint.h \ |
517 | stdint.h \ |
518 | wchar.h \ |
518 | wchar.h \ |
519 | cwchar \ |
519 | cwchar \ |
520 | ) |
520 | ) |
521 | |
521 | |
522 | AC_CACHE_CHECK([for XPointer], rxvt_cv_xpointer, |
|
|
523 | [AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[#include <X11/Xlib.h>]], [[XPointer dummy;]])],[rxvt_cv_xpointer=yes],[rxvt_cv_xpointer=no])]) |
|
|
524 | if test x$rxvt_cv_xpointer = xyes; then |
|
|
525 | AC_DEFINE(HAVE_XPOINTER, 1, Define if you have XPointer typedef) |
|
|
526 | fi |
|
|
527 | |
|
|
528 | AC_CACHE_CHECK([for XLIB_ILLEGAL_ACCESS], rxvt_cv_xlib_illegal_access, |
522 | AC_CACHE_CHECK([for XLIB_ILLEGAL_ACCESS], rxvt_cv_xlib_illegal_access, |
529 | [AC_COMPILE_IFELSE( |
523 | [AC_COMPILE_IFELSE( |
530 | [AC_LANG_PROGRAM([ |
524 | [AC_LANG_PROGRAM([ |
531 | #define XLIB_ILLEGAL_ACCESS |
525 | #define XLIB_ILLEGAL_ACCESS |
532 | #include <X11/Xlib.h> |
526 | #include <X11/Xlib.h> |
… | |
… | |
582 | rxvt_cv_func_xlocale=yes],[rxvt_cv_func_xlocale=no],[dnl |
576 | rxvt_cv_func_xlocale=yes],[rxvt_cv_func_xlocale=no],[dnl |
583 | :])]) |
577 | :])]) |
584 | if test x$rxvt_cv_func_xlocale = xyes; then |
578 | if test x$rxvt_cv_func_xlocale = xyes; then |
585 | AC_DEFINE(USE_XIM, 1, Define if you want to have XIM (X Input Method) protocol support - required for multibyte characters input) |
579 | AC_DEFINE(USE_XIM, 1, Define if you want to have XIM (X Input Method) protocol support - required for multibyte characters input) |
586 | AC_CACHE_CHECK(for broken XIM callback, rxvt_cv_broken_ximcb, |
580 | AC_CACHE_CHECK(for broken XIM callback, rxvt_cv_broken_ximcb, |
587 | [AC_COMPILE_IFELSE([ |
581 | [AC_COMPILE_IFELSE([AC_LANG_SOURCE([[ |
588 | #include <X11/Xlib.h> |
582 | #include <X11/Xlib.h> |
589 | |
583 | |
590 | void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); |
584 | void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3); |
591 | |
585 | |
592 | void f() { |
586 | void f() { |
593 | XIMCallback cb; |
587 | XIMCallback cb; |
594 | cb.callback = im_destroy_cb; |
588 | cb.callback = im_destroy_cb; |
595 | } |
589 | } |
596 | ],rxvt_cv_broken_ximcb=yes,rxvt_cv_broken_ximcb=no)]) |
590 | ]])],rxvt_cv_broken_ximcb=yes,rxvt_cv_broken_ximcb=no)]) |
597 | |
591 | |
598 | if test x$rxvt_cv_broken_ximcb = xyes; then |
592 | if test x$rxvt_cv_broken_ximcb = xyes; then |
599 | AC_DEFINE(XIMCB_PROTO_BROKEN, 1, Define if your XIMCallback specifies XIC as first type.) |
593 | AC_DEFINE(XIMCB_PROTO_BROKEN, 1, Define if your XIMCallback specifies XIC as first type.) |
600 | fi |
594 | fi |
601 | fi |
595 | fi |