… | |
… | |
443 | AC_DEFINE_UNQUOTED(RXVT_TERMINFO, "$withval", Set TERMINFO value to the value given by configure) terminfo="$withval" |
443 | AC_DEFINE_UNQUOTED(RXVT_TERMINFO, "$withval", Set TERMINFO value to the value given by configure) terminfo="$withval" |
444 | fi]) |
444 | fi]) |
445 | |
445 | |
446 | dnl# -------------------------------------------------------------------------- |
446 | dnl# -------------------------------------------------------------------------- |
447 | |
447 | |
448 | AC_PATH_PROG(CP, cp, cp) |
|
|
449 | AC_PATH_PROG(SED, sed, sed) |
|
|
450 | AC_PATH_PROG(ECHO, echo, echo) |
|
|
451 | AC_PATH_PROG(TIC, tic) |
448 | AC_PATH_PROG(TIC, tic) |
452 | |
449 | |
453 | dnl# need a neat way to detect SVR4 or its features |
450 | dnl# need a neat way to detect SVR4 or its features |
454 | dnl# in src/command.c we use these functions: |
451 | dnl# in src/command.c we use these functions: |
455 | dnl# grantpt(), unlockpt(), ptsname(), which are defined in <sys/ptms.h> |
452 | dnl# grantpt(), unlockpt(), ptsname(), which are defined in <sys/ptms.h> |
… | |
… | |
746 | if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
743 | if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p) |
747 | exit (XSupportsLocale() ? 0 : 1); |
744 | exit (XSupportsLocale() ? 0 : 1); |
748 | else |
745 | else |
749 | exit (1);}]])],[dnl |
746 | exit (1);}]])],[dnl |
750 | rxvt_cv_func_xlocale=yes],[rxvt_cv_func_xlocale=no],[dnl |
747 | rxvt_cv_func_xlocale=yes],[rxvt_cv_func_xlocale=no],[dnl |
751 | AC_MSG_WARN(Define NO_XLOCALE in config.h manually)])]) |
748 | :])]) |
|
|
749 | if test x$support_xim = xyes; then |
752 | if test x$rxvt_cv_func_xlocale = xyes; then |
750 | if test x$rxvt_cv_func_xlocale = xyes; then |
753 | AC_DEFINE(HAVE_XLOCALE, 1, Define if Xlocale support works) |
751 | AC_DEFINE(USE_XIM, 1, Define if you want to have XIM (X Input Method) protocol support - required for multibyte characters input) |
|
|
752 | fi |
754 | fi |
753 | fi |
755 | |
754 | |
756 | AC_CACHE_CHECK(for working X setlocale, rxvt_cv_func_xsetlocale, |
755 | AC_CACHE_CHECK(for working X setlocale, rxvt_cv_func_xsetlocale, |
757 | [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#define X_LOCALE 1 |
756 | [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#define X_LOCALE 1 |
758 | #include <X11/Xlocale.h>]], [[setlocale(LC_CTYPE, "");]])],[rxvt_cv_func_xsetlocale=yes],[rxvt_cv_func_xsetlocale=no])]) |
757 | #include <X11/Xlocale.h>]], [[setlocale(LC_CTYPE, "");]])],[rxvt_cv_func_xsetlocale=yes],[rxvt_cv_func_xsetlocale=no])]) |
… | |
… | |
849 | if test x$support_mousewheel = xyes; then |
848 | if test x$support_mousewheel = xyes; then |
850 | AC_DEFINE(MOUSE_WHEEL, 1, Define to use wheel events (button4 and button5) to scroll) |
849 | AC_DEFINE(MOUSE_WHEEL, 1, Define to use wheel events (button4 and button5) to scroll) |
851 | fi |
850 | fi |
852 | if test x$support_mouseslipwheel = xyes; then |
851 | if test x$support_mouseslipwheel = xyes; then |
853 | AC_DEFINE(MOUSE_SLIP_WHEELING, 1, Define to have CTRL cause wheel events to accelerate scrolling. Release CTRL to halt scrolling) |
852 | AC_DEFINE(MOUSE_SLIP_WHEELING, 1, Define to have CTRL cause wheel events to accelerate scrolling. Release CTRL to halt scrolling) |
854 | fi |
|
|
855 | if test x$support_xim = xyes -o x$multichar_set = xyes; then |
|
|
856 | if test x$rxvt_cv_func_xlocale = xyes; then |
|
|
857 | AC_DEFINE(USE_XIM, 1, Define if you want to have XIM (X Input Method) protocol support - required for multibyte characters input) |
|
|
858 | fi |
|
|
859 | fi |
853 | fi |
860 | if test x$support_xpm = xyes -o x$support_afterimage = xyes ; then |
854 | if test x$support_xpm = xyes -o x$support_afterimage = xyes ; then |
861 | AC_DEFINE(XPM_BACKGROUND, 1, Define if you want to have sexy-looking background pixmaps. Needs libXpm or libAfterImage) |
855 | AC_DEFINE(XPM_BACKGROUND, 1, Define if you want to have sexy-looking background pixmaps. Needs libXpm or libAfterImage) |
862 | fi |
856 | fi |
863 | |
857 | |