… | |
… | |
743 | if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
743 | if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
744 | exit (XSupportsLocale() ? 0 : 1); |
744 | exit (XSupportsLocale() ? 0 : 1); |
745 | else |
745 | else |
746 | exit (1);}]])],[dnl |
746 | exit (1);}]])],[dnl |
747 | rxvt_cv_func_xlocale=yes],[rxvt_cv_func_xlocale=no],[dnl |
747 | rxvt_cv_func_xlocale=yes],[rxvt_cv_func_xlocale=no],[dnl |
748 | AC_MSG_WARN(Define NO_XLOCALE in config.h manually)])]) |
748 | :])]) |
749 | if test x$rxvt_cv_func_xlocale = xyes; then |
|
|
750 | AC_DEFINE(HAVE_XLOCALE, 1, Define if Xlocale support works) |
|
|
751 | fi |
|
|
752 | |
749 | |
753 | AC_CACHE_CHECK(for working X setlocale, rxvt_cv_func_xsetlocale, |
750 | AC_CACHE_CHECK(for working X setlocale, rxvt_cv_func_xsetlocale, |
754 | [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#define X_LOCALE 1 |
751 | [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#define X_LOCALE 1 |
755 | #include <X11/Xlocale.h>]], [[setlocale(LC_CTYPE, "");]])],[rxvt_cv_func_xsetlocale=yes],[rxvt_cv_func_xsetlocale=no])]) |
752 | #include <X11/Xlocale.h>]], [[setlocale(LC_CTYPE, "");]])],[rxvt_cv_func_xsetlocale=yes],[rxvt_cv_func_xsetlocale=no])]) |
756 | if test x$rxvt_cv_func_xsetlocale = xyes; then |
753 | if test x$rxvt_cv_func_xsetlocale = xyes; then |