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.71 by ayin, Thu Aug 2 00:19:32 2007 UTC vs.
Revision 1.74 by ayin, Sun Aug 26 18:47:40 2007 UTC

95dnl AC_ENABLE_STATIC(yes)dnl# libtool 95dnl AC_ENABLE_STATIC(yes)dnl# libtool
96dnl AC_PROG_LIBTOOL()dnl# libtool 96dnl AC_PROG_LIBTOOL()dnl# libtool
97 97
98support_frills=yes 98support_frills=yes
99support_inheritpixmap=yes 99support_inheritpixmap=yes
100support_tinting=yes
101support_fading=yes 100support_fading=yes
102support_keepscrolling=yes 101support_keepscrolling=yes
103support_selectionscrolling=yes 102support_selectionscrolling=yes
104support_mousewheel=yes 103support_mousewheel=yes
105support_mouseslipwheel=yes 104support_mouseslipwheel=yes
137 NOTE: automatically enabled with --enable-shared], 136 NOTE: automatically enabled with --enable-shared],
138 [ 137 [
139 if test x$enableval = xno; then 138 if test x$enableval = xno; then
140 support_frills=no 139 support_frills=no
141 support_inheritpixmap=no 140 support_inheritpixmap=no
142 support_tinting=no
143 support_fading=no 141 support_fading=no
144 support_keepscrolling=no 142 support_keepscrolling=no
145 support_selectionscrolling=no 143 support_selectionscrolling=no
146 support_lastlog=no 144 support_lastlog=no
147 support_mousewheel=no 145 support_mousewheel=no
167 codesets= 165 codesets=
168 fi 166 fi
169 if test x$enableval = xyes; then 167 if test x$enableval = xyes; then
170 support_frills=yes 168 support_frills=yes
171 support_inheritpixmap=yes 169 support_inheritpixmap=yes
172 support_tinting=yes
173 support_fading=yes 170 support_fading=yes
174 support_keepscrolling=yes 171 support_keepscrolling=yes
175 support_selectionscrolling=yes 172 support_selectionscrolling=yes
176 support_lastlog=yes 173 support_lastlog=yes
177 support_mousewheel=yes 174 support_mousewheel=yes
242 239
243AC_ARG_ENABLE(transparency, 240AC_ARG_ENABLE(transparency,
244 [ --enable-transparency enable transparent backgrounds], 241 [ --enable-transparency enable transparent backgrounds],
245 [if test x$enableval = xyes -o x$enableval = xno; then 242 [if test x$enableval = xyes -o x$enableval = xno; then
246 support_inheritpixmap=$enableval 243 support_inheritpixmap=$enableval
247 fi])
248
249AC_ARG_ENABLE(tinting,
250 [ --enable-tinting enable tinting of transparent bg],
251 [if test x$enableval = xyes -o x$enableval = xno; then
252 support_tinting=$enableval
253 fi]) 244 fi])
254 245
255AC_ARG_ENABLE(fading, 246AC_ARG_ENABLE(fading,
256 [ --enable-fading enable colors fading when off focus], 247 [ --enable-fading enable colors fading when off focus],
257 [if test x$enableval = xyes -o x$enableval = xno; then 248 [if test x$enableval = xyes -o x$enableval = xno; then
668dnl# this is a really hack test for some basic Xlocale stuff 659dnl# this is a really hack test for some basic Xlocale stuff
669ac_save_LIBS=$LIBS 660ac_save_LIBS=$LIBS
670ac_save_CFLAGS=$CFLAGS 661ac_save_CFLAGS=$CFLAGS
671CFLAGS="$CFLAGS $X_CFLAGS" 662CFLAGS="$CFLAGS $X_CFLAGS"
672LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 663LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
673AC_CACHE_CHECK(for working Xlocale, rxvt_cv_func_xlocale,
674[AC_RUN_IFELSE([AC_LANG_SOURCE([[#include <X11/Xlib.h>
675#include <stdlib.h>
676main() {
677char *p;
678if ((p = XSetLocaleModifiers("@im=none")) != NULL && *p)
679exit (XSupportsLocale() ? 0 : 1);
680else
681exit (1);}]])],[dnl
682 rxvt_cv_func_xlocale=yes],[rxvt_cv_func_xlocale=no],[dnl
683 :])])
684if 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 :])])
685 if test x$rxvt_cv_func_xlocale = xyes; then 676 if test x$rxvt_cv_func_xlocale = xyes; then
686 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
687 fi 693 fi
688fi 694fi
689 695
690AC_CACHE_CHECK(for working X setlocale, rxvt_cv_func_xsetlocale, 696AC_CACHE_CHECK(for working X setlocale, rxvt_cv_func_xsetlocale,
691[AC_LINK_IFELSE([AC_LANG_PROGRAM([[#define X_LOCALE 1 697[AC_LINK_IFELSE([AC_LANG_PROGRAM([[#define X_LOCALE 1
707if test x$rxvt_cv_func_nl_langinfo = xyes; then 713if test x$rxvt_cv_func_nl_langinfo = xyes; then
708 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)
709fi 715fi
710 716
711SCM_RIGHTS_CHECK 717SCM_RIGHTS_CHECK
712
713AC_CACHE_CHECK(for broken XIM callback, rxvt_broken_ximcb,
714[AC_COMPILE_IFELSE([
715#include <X11/Xlib.h>
716
717void im_destroy_cb (XIC unused1, XPointer client_data, XPointer unused3);
718
719void f() {
720 XIMCallback cb;
721 cb.callback = im_destroy_cb;
722}
723],rxvt_broken_ximcb=yes,rxvt_broken_ximcb=no)])
724
725if test x$rxvt_broken_ximcb = xyes; then
726 AC_DEFINE(XIMCB_PROTO_BROKEN, 1, Define if your XIMCallback specifies XIC as first type.)
727fi
728 718
729PTY_CHECK 719PTY_CHECK
730 720
731TTY_GROUP_CHECK 721TTY_GROUP_CHECK
732 722
763 AC_DEFINE(EIGHT_BIT_CONTROLS, 1, Define if you want 8 bit control sequences) 753 AC_DEFINE(EIGHT_BIT_CONTROLS, 1, Define if you want 8 bit control sequences)
764fi 754fi
765if test x$support_fading = xyes; then 755if test x$support_fading = xyes; then
766 AC_DEFINE(OFF_FOCUS_FADING, 1, Define if you want faded colors when focus is lost) 756 AC_DEFINE(OFF_FOCUS_FADING, 1, Define if you want faded colors when focus is lost)
767fi 757fi
768if test x$support_tinting = xyes; then
769 AC_DEFINE(TINTING, 1, Define if you want your background to be tinted)
770fi
771if test x$support_inheritpixmap = xyes; then 758if test x$support_inheritpixmap = xyes; then
772 AC_DEFINE(ENABLE_TRANSPARENCY, 1, Define if you want your background to use the parent window background) 759 AC_DEFINE(ENABLE_TRANSPARENCY, 1, Define if you want your background to use the parent window background)
773fi 760fi
774if test x$support_keepscrolling = xno; then 761if test x$support_keepscrolling = xno; then
775 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)
776fi 763fi
777if test x$support_selectionscrolling = xyes; then 764if test x$support_selectionscrolling = xyes; then
778 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)
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)
779fi 769fi
780if test x$support_mousewheel = xyes; then 770if test x$support_mousewheel = xyes; then
781 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)
782fi 772fi
783if test x$support_mouseslipwheel = xyes; then 773if test x$support_mouseslipwheel = xyes; then
877AC_SUBST(PERLPRIVLIBEXP) 867AC_SUBST(PERLPRIVLIBEXP)
878AC_SUBST(PERL) 868AC_SUBST(PERL)
879AC_SUBST(IF_PERL) 869AC_SUBST(IF_PERL)
880AC_SUBST(PERL_O) 870AC_SUBST(PERL_O)
881 871
882if test x$support_perl = xyes; then
883 support_frills=yes
884fi
885
886if test x$support_frills = xyes; then
887 AC_DEFINE(ENABLE_FRILLS, 1, Define if you want handling for rarely used but handy features)
888fi
889
890AC_SUBST(CFLAGS) 872AC_SUBST(CFLAGS)
891AC_SUBST(CPPFLAGS) 873AC_SUBST(CPPFLAGS)
892AC_SUBST(LDFLAGS) 874AC_SUBST(LDFLAGS)
893AC_SUBST(X_CFLAGS) 875AC_SUBST(X_CFLAGS)
894 876

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines