ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/configure.ac
(Generate patch)

Comparing rxvt-unicode/configure.ac (file contents):
Revision 1.72 by ayin, Fri Aug 3 23:32:14 2007 UTC vs.
Revision 1.76 by ayin, Tue Sep 18 12:17:58 2007 UTC

419 AC_DEFINE_UNQUOTED(RXVT_TERMINFO, "$withval", Set TERMINFO value to the value given by configure) terminfo="$withval" 419 AC_DEFINE_UNQUOTED(RXVT_TERMINFO, "$withval", Set TERMINFO value to the value given by configure) terminfo="$withval"
420 fi]) 420 fi])
421 421
422dnl# -------------------------------------------------------------------------- 422dnl# --------------------------------------------------------------------------
423 423
424AC_PATH_PROG(TIC, tic) 424AC_PATH_PROG(TIC, tic, :)
425 425
426dnl# need a neat way to detect SVR4 or its features 426dnl# need a neat way to detect SVR4 or its features
427dnl# in src/command.c we use these functions: 427dnl# in src/command.c we use these functions:
428dnl# grantpt(), unlockpt(), ptsname(), which are defined in <sys/ptms.h> 428dnl# grantpt(), unlockpt(), ptsname(), which are defined in <sys/ptms.h>
429dnl# - but are these also defined for other systems? 429dnl# - but are these also defined for other systems?
659dnl# this is a really hack test for some basic Xlocale stuff 659dnl# this is a really hack test for some basic Xlocale stuff
660ac_save_LIBS=$LIBS 660ac_save_LIBS=$LIBS
661ac_save_CFLAGS=$CFLAGS 661ac_save_CFLAGS=$CFLAGS
662CFLAGS="$CFLAGS $X_CFLAGS" 662CFLAGS="$CFLAGS $X_CFLAGS"
663LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 663LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
664AC_CACHE_CHECK(for working Xlocale, rxvt_cv_func_xlocale,
665[AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <X11/Xlib.h>
666#include <stdlib.h>
667main() {
668char *p;
669if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
670exit (XSupportsLocale() ? 0 : 1);
671else
672exit (1);}]])],[dnl
673 rxvt_cv_func_xlocale=yes],[rxvt_cv_func_xlocale=no],[dnl
674 :])])
675if test x$support_xim = xyes; then 664if test x$support_xim = xyes; then
665 AC_CACHE_CHECK(for working Xlocale, rxvt_cv_func_xlocale,
666 [AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <X11/Xlib.h>
667 #include <stdlib.h>
668 main() {
669 char *p;
670 if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
671 exit (XSupportsLocale() ? 0 : 1);
672 else
673 exit (1);}]])],[dnl
674 rxvt_cv_func_xlocale=yes],[rxvt_cv_func_xlocale=no],[dnl
675 :])])
676 if test x$rxvt_cv_func_xlocale = xyes; then 676 if test x$rxvt_cv_func_xlocale = xyes; then
677 AC_DEFINE(USE_XIM, 1, Define if you want to have XIM (X Input Method) protocol support - required for multibyte characters input) 677 AC_DEFINE(USE_XIM, 1, Define if you want to have XIM (X Input Method) protocol support - required for multibyte characters input)
678 AC_CACHE_CHECK(for broken XIM callback, rxvt_broken_ximcb,
679 [AC_COMPILE_IFELSE([
680 #include <X11/Xlib.h>
681
682 void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
683
684 void f() {
685 XIMCallback cb;
686 cb.callback = im_destroy_cb;
687 }
688 ],rxvt_broken_ximcb=yes,rxvt_broken_ximcb=no)])
689
690 if test x$rxvt_broken_ximcb = xyes; then
691 AC_DEFINE(XIMCB_PROTO_BROKEN, 1, Define if your XIMCallback specifies XIC as first type.)
692 fi
678 fi 693 fi
679fi 694fi
680 695
681AC_CACHE_CHECK(for working X setlocale, rxvt_cv_func_xsetlocale, 696AC_CACHE_CHECK(for working X setlocale, rxvt_cv_func_xsetlocale,
682[AC_LINK_IFELSE([AC_LANG_PROGRAM([[#define X_LOCALE 1 697[AC_LINK_IFELSE([AC_LANG_PROGRAM([[#define X_LOCALE 1
698if test x$rxvt_cv_func_nl_langinfo = xyes; then 713if test x$rxvt_cv_func_nl_langinfo = xyes; then
699 AC_DEFINE(HAVE_NL_LANGINFO, 1, Define if nl_langinfo(CODESET) works) 714 AC_DEFINE(HAVE_NL_LANGINFO, 1, Define if nl_langinfo(CODESET) works)
700fi 715fi
701 716
702SCM_RIGHTS_CHECK 717SCM_RIGHTS_CHECK
703
704AC_CACHE_CHECK(for broken XIM callback, rxvt_broken_ximcb,
705[AC_COMPILE_IFELSE([
706#include <X11/Xlib.h>
707
708void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
709
710void f() {
711 XIMCallback cb;
712 cb.callback = im_destroy_cb;
713}
714],rxvt_broken_ximcb=yes,rxvt_broken_ximcb=no)])
715
716if test x$rxvt_broken_ximcb = xyes; then
717 AC_DEFINE(XIMCB_PROTO_BROKEN, 1, Define if your XIMCallback specifies XIC as first type.)
718fi
719 718
720PTY_CHECK 719PTY_CHECK
721 720
722TTY_GROUP_CHECK 721TTY_GROUP_CHECK
723 722
763 AC_DEFINE(NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING, 1, Define for continual scrolling when you keep the scrollbar button pressed) 762 AC_DEFINE(NO_SCROLLBAR_BUTTON_CONTINUAL_SCROLLING, 1, Define for continual scrolling when you keep the scrollbar button pressed)
764fi 763fi
765if test x$support_selectionscrolling = xyes; then 764if test x$support_selectionscrolling = xyes; then
766 AC_DEFINE(SELECTION_SCROLLING, 1, Define to allow scrolling when the selection moves to the top or bottom of the screen) 765 AC_DEFINE(SELECTION_SCROLLING, 1, Define to allow scrolling when the selection moves to the top or bottom of the screen)
767fi 766fi
767if test x$support_frills = xyes; then
768 AC_DEFINE(ENABLE_FRILLS, 1, Define if you want handling for rarely used but handy features)
769fi
768if test x$support_mousewheel = xyes; then 770if test x$support_mousewheel = xyes; then
769 AC_DEFINE(MOUSE_WHEEL, 1, Define to use wheel events (button4 and button5) to scroll) 771 AC_DEFINE(MOUSE_WHEEL, 1, Define to use wheel events (button4 and button5) to scroll)
770fi 772fi
771if test x$support_mouseslipwheel = xyes; then 773if test x$support_mouseslipwheel = xyes; then
772 AC_DEFINE(MOUSE_SLIP_WHEELING, 1, Define to have CTRL cause wheel events to accelerate scrolling. Release CTRL to halt scrolling) 774 AC_DEFINE(MOUSE_SLIP_WHEELING, 1, Define to have CTRL cause wheel events to accelerate scrolling. Release CTRL to halt scrolling)
773fi 775fi
774if test x$support_afterimage = xyes; then 776if test x$support_afterimage = xyes; then
775 AC_DEFINE(HAVE_AFTERIMAGE, 1, Define if you want to use libAfterImage for image processing) 777 AC_DEFINE(HAVE_AFTERIMAGE, 1, Define if you want to use libAfterImage for image processing)
776 AC_DEFINE(XPM_BACKGROUND, 1, Define if you want to have sexy-looking background pixmaps. Needs libAfterImage) 778 AC_DEFINE(BG_IMAGE_FROM_FILE, 1, Define if you want to have sexy-looking background pixmaps. Needs libAfterImage)
777fi 779fi
778 780
779dnl if test x$support_afterstep = xyes; then 781dnl if test x$support_afterstep = xyes; then
780dnl AC_DEFINE(AFTERSTEP_INTEGRATION, 1, Define if you want to integrate with AfterStep window manager) 782dnl AC_DEFINE(AFTERSTEP_INTEGRATION, 1, Define if you want to integrate with AfterStep window manager)
781dnl fi 783dnl fi
865AC_SUBST(PERLPRIVLIBEXP) 867AC_SUBST(PERLPRIVLIBEXP)
866AC_SUBST(PERL) 868AC_SUBST(PERL)
867AC_SUBST(IF_PERL) 869AC_SUBST(IF_PERL)
868AC_SUBST(PERL_O) 870AC_SUBST(PERL_O)
869 871
870if test x$support_perl = xyes; then
871 support_frills=yes
872fi
873
874if test x$support_frills = xyes; then
875 AC_DEFINE(ENABLE_FRILLS, 1, Define if you want handling for rarely used but handy features)
876fi
877
878AC_SUBST(CFLAGS) 872AC_SUBST(CFLAGS)
879AC_SUBST(CPPFLAGS) 873AC_SUBST(CPPFLAGS)
880AC_SUBST(LDFLAGS) 874AC_SUBST(LDFLAGS)
881AC_SUBST(X_CFLAGS) 875AC_SUBST(X_CFLAGS)
882 876

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines