… | |
… | |
95 | support_combining=yes |
95 | support_combining=yes |
96 | support_8bitctrls=no |
96 | support_8bitctrls=no |
97 | support_iso14755=yes |
97 | support_iso14755=yes |
98 | support_styles=yes |
98 | support_styles=yes |
99 | support_perl=yes |
99 | support_perl=yes |
100 | support_xdbe=yes |
|
|
101 | codesets=all |
100 | codesets=all |
102 | |
101 | |
103 | dnl# -------------------------------------------------------------------------- |
102 | dnl# -------------------------------------------------------------------------- |
104 | dnl# CHECKING COMMAND LINE OPTIONS |
103 | dnl# CHECKING COMMAND LINE OPTIONS |
105 | dnl# -------------------------------------------------------------------------- |
104 | dnl# -------------------------------------------------------------------------- |
… | |
… | |
108 | [ --enable-everything enable standard non-multichoice features |
107 | [ --enable-everything enable standard non-multichoice features |
109 | NOTE: this option is order dependent], |
108 | NOTE: this option is order dependent], |
110 | [ |
109 | [ |
111 | if test x$enableval = xno; then |
110 | if test x$enableval = xno; then |
112 | support_frills=no |
111 | support_frills=no |
113 | support_xdbe=no |
|
|
114 | support_inheritpixmap=no |
112 | support_inheritpixmap=no |
115 | support_fading=no |
113 | support_fading=no |
116 | support_keepscrolling=no |
114 | support_keepscrolling=no |
117 | support_selectionscrolling=no |
115 | support_selectionscrolling=no |
118 | support_lastlog=no |
116 | support_lastlog=no |
… | |
… | |
133 | support_combining=no |
131 | support_combining=no |
134 | support_8bitctrls=no |
132 | support_8bitctrls=no |
135 | support_iso14755=no |
133 | support_iso14755=no |
136 | support_styles=no |
134 | support_styles=no |
137 | support_perl=no |
135 | support_perl=no |
138 | support_xdbe=no |
|
|
139 | codesets= |
136 | codesets= |
140 | fi |
137 | fi |
141 | if test x$enableval = xyes; then |
138 | if test x$enableval = xyes; then |
142 | support_frills=yes |
139 | support_frills=yes |
143 | support_inheritpixmap=yes |
140 | support_inheritpixmap=yes |
… | |
… | |
162 | support_combining=yes |
159 | support_combining=yes |
163 | #support_8bitctrls=yes |
160 | #support_8bitctrls=yes |
164 | support_iso14755=yes |
161 | support_iso14755=yes |
165 | support_styles=yes |
162 | support_styles=yes |
166 | support_perl=yes |
163 | support_perl=yes |
167 | support_xdbe=yes |
|
|
168 | codesets=all |
164 | codesets=all |
169 | fi |
165 | fi |
170 | ]) |
166 | ]) |
171 | |
167 | |
172 | support_assertions=no |
168 | support_assertions=no |
… | |
… | |
414 | [ --with-terminfo=PATH set the path to the terminfo tree to PATH], |
410 | [ --with-terminfo=PATH set the path to the terminfo tree to PATH], |
415 | [if test x$withval != x; then |
411 | [if test x$withval != x; then |
416 | AC_DEFINE_UNQUOTED(RXVT_TERMINFO, "$withval", Set TERMINFO value to the value given by configure) terminfo="$withval" |
412 | AC_DEFINE_UNQUOTED(RXVT_TERMINFO, "$withval", Set TERMINFO value to the value given by configure) terminfo="$withval" |
417 | fi]) |
413 | fi]) |
418 | |
414 | |
419 | AC_ARG_ENABLE(xdbe, |
|
|
420 | [ --enable-xdbe enable support for double buffering], |
|
|
421 | [if test x$enableval = xyes -o x$enableval = xno; then |
|
|
422 | support_xdbe=$enableval |
|
|
423 | fi]) |
|
|
424 | |
|
|
425 | dnl# -------------------------------------------------------------------------- |
415 | dnl# -------------------------------------------------------------------------- |
426 | |
416 | |
427 | LIBEV_M4_AVOID_LIBRT=1 |
417 | LIBEV_M4_AVOID_LIBRT=1 |
428 | m4_include([libev/libev.m4]) |
418 | m4_include([libev/libev.m4]) |
429 | |
419 | |
… | |
… | |
431 | |
421 | |
432 | AC_PATH_PROG(TIC, tic, :) |
422 | AC_PATH_PROG(TIC, tic, :) |
433 | |
423 | |
434 | AC_PATH_XTRA |
424 | AC_PATH_XTRA |
435 | |
425 | |
|
|
426 | AC_PATH_TOOL(PKG_CONFIG, pkg-config, no) |
|
|
427 | |
|
|
428 | image_lib=none |
|
|
429 | |
|
|
430 | PIXBUF_CFLAGS= |
|
|
431 | PIXBUF_LIBS= |
|
|
432 | |
|
|
433 | if test x$support_pixbuf = xyes; then |
|
|
434 | support_pixbuf=no |
|
|
435 | AC_MSG_CHECKING(for gdk-pixbuf) |
|
|
436 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists gdk-pixbuf-2.0; then |
|
|
437 | PIXBUF_CFLAGS="`$PKG_CONFIG gdk-pixbuf-2.0 --cflags`" |
|
|
438 | PIXBUF_LIBS="`$PKG_CONFIG gdk-pixbuf-2.0 --libs`" |
|
|
439 | support_pixbuf=yes |
|
|
440 | fi |
|
|
441 | |
|
|
442 | if test x$support_pixbuf = xyes; then |
|
|
443 | AC_MSG_RESULT(ok) |
|
|
444 | image_lib=gdk-pixbuf |
|
|
445 | AC_DEFINE(HAVE_PIXBUF, 1, Define if you want to use gdk-pixbuf for image processing) |
|
|
446 | else |
|
|
447 | AC_MSG_RESULT(no) |
|
|
448 | fi |
|
|
449 | fi |
|
|
450 | |
|
|
451 | AC_SUBST(PIXBUF_CFLAGS) |
|
|
452 | AC_SUBST(PIXBUF_LIBS) |
|
|
453 | |
436 | STARTUP_NOTIFICATION_CFLAGS= |
454 | STARTUP_NOTIFICATION_CFLAGS= |
437 | STARTUP_NOTIFICATION_LIBS= |
455 | STARTUP_NOTIFICATION_LIBS= |
438 | |
456 | |
439 | if test x$support_startup_notification = xyes; then |
457 | if test x$support_startup_notification = xyes; then |
440 | support_startup_notification=no |
458 | support_startup_notification=no |
441 | AC_PATH_PROG(PKG_CONFIG, pkg-config, no) |
|
|
442 | AC_MSG_CHECKING(for libstartup-notification) |
459 | AC_MSG_CHECKING(for libstartup-notification) |
443 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists libstartup-notification-1.0; then |
460 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists libstartup-notification-1.0; then |
444 | STARTUP_NOTIFICATION_CFLAGS="`$PKG_CONFIG libstartup-notification-1.0 --cflags`" |
461 | STARTUP_NOTIFICATION_CFLAGS="`$PKG_CONFIG libstartup-notification-1.0 --cflags`" |
445 | STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG libstartup-notification-1.0 --libs`" |
462 | STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG libstartup-notification-1.0 --libs`" |
446 | support_startup_notification=yes |
463 | support_startup_notification=yes |
… | |
… | |
508 | dnl# -------------------------------------------------------------------------- |
525 | dnl# -------------------------------------------------------------------------- |
509 | dnl# -------------------------------------------------------------------------- |
526 | dnl# -------------------------------------------------------------------------- |
510 | |
527 | |
511 | dnl# this is a really hack test for some basic Xlocale stuff |
528 | dnl# this is a really hack test for some basic Xlocale stuff |
512 | save_LIBS=$LIBS |
529 | save_LIBS=$LIBS |
513 | save_CFLAGS=$CFLAGS |
530 | save_CXXFLAGS=$CXXFLAGS |
514 | CFLAGS="$CFLAGS $X_CFLAGS" |
531 | CXXFLAGS="$CXXFLAGS $X_CFLAGS" |
515 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
532 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
516 | if test x$support_xim = xyes; then |
533 | if test x$support_xim = xyes; then |
517 | AC_CACHE_CHECK(for working Xlocale, rxvt_cv_func_xlocale, |
534 | AC_CACHE_CHECK(for working Xlocale, rxvt_cv_func_xlocale, |
518 | [AC_RUN_IFELSE([AC_LANG_SOURCE([[ |
535 | [AC_RUN_IFELSE([AC_LANG_SOURCE([[ |
519 | #include <X11/Xlib.h> |
536 | #include <X11/Xlib.h> |
… | |
… | |
551 | #include <X11/Xlocale.h>]], [[setlocale(LC_CTYPE, "");]])],[rxvt_cv_func_xsetlocale=yes],[rxvt_cv_func_xsetlocale=no])]) |
568 | #include <X11/Xlocale.h>]], [[setlocale(LC_CTYPE, "");]])],[rxvt_cv_func_xsetlocale=yes],[rxvt_cv_func_xsetlocale=no])]) |
552 | if test x$rxvt_cv_func_xsetlocale = xyes; then |
569 | if test x$rxvt_cv_func_xsetlocale = xyes; then |
553 | AC_DEFINE(HAVE_XSETLOCALE, 1, Define if setlocale (defined to Xsetlocale) works) |
570 | AC_DEFINE(HAVE_XSETLOCALE, 1, Define if setlocale (defined to Xsetlocale) works) |
554 | fi |
571 | fi |
555 | LIBS=$save_LIBS |
572 | LIBS=$save_LIBS |
556 | CFLAGS=$save_CFLAGS |
573 | CXXFLAGS=$save_CXXFLAGS |
557 | |
574 | |
558 | AC_CACHE_CHECK(for working nl_langinfo, rxvt_cv_func_nl_langinfo, |
575 | AC_CACHE_CHECK(for working nl_langinfo, rxvt_cv_func_nl_langinfo, |
559 | [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <langinfo.h>]], [[nl_langinfo(CODESET);]])],[rxvt_cv_func_nl_langinfo=yes],[rxvt_cv_func_nl_langinfo=no])]) |
576 | [AC_LINK_IFELSE([AC_LANG_PROGRAM([[#include <langinfo.h>]], [[nl_langinfo(CODESET);]])],[rxvt_cv_func_nl_langinfo=yes],[rxvt_cv_func_nl_langinfo=no])]) |
560 | if test x$rxvt_cv_func_nl_langinfo = xyes; then |
577 | if test x$rxvt_cv_func_nl_langinfo = xyes; then |
561 | AC_DEFINE(HAVE_NL_LANGINFO, 1, Define if nl_langinfo(CODESET) works) |
578 | AC_DEFINE(HAVE_NL_LANGINFO, 1, Define if nl_langinfo(CODESET) works) |
… | |
… | |
572 | dnl# -------------------------------------------------------------------------- |
589 | dnl# -------------------------------------------------------------------------- |
573 | support_image=no |
590 | support_image=no |
574 | if test x$support_inheritpixmap = xyes || test x$support_pixbuf = xyes; then |
591 | if test x$support_inheritpixmap = xyes || test x$support_pixbuf = xyes; then |
575 | support_image=yes |
592 | support_image=yes |
576 | fi |
593 | fi |
577 | if test x$support_xdbe = xyes; then |
|
|
578 | LIBS="$LIBS -lXext" |
|
|
579 | fi |
|
|
580 | |
|
|
581 | if test x$support_xft = xyes || test x$support_image = xyes; then |
594 | if test x$support_xft = xyes || test x$support_image = xyes; then |
582 | rxvt_have_xrender=no |
595 | rxvt_have_xrender=no |
583 | AC_PATH_PROG(PKG_CONFIG, pkg-config, no) |
|
|
584 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then |
596 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then |
585 | X_LIBS="`$PKG_CONFIG xrender --libs` $X_LIBS" |
597 | X_LIBS="`$PKG_CONFIG xrender --libs` $X_LIBS" |
586 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xrender --cflags`" |
598 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xrender --cflags`" |
587 | rxvt_have_xrender=yes |
599 | rxvt_have_xrender=yes |
588 | |
600 | |
… | |
… | |
593 | LIBS="$save_LIBS" |
605 | LIBS="$save_LIBS" |
594 | fi |
606 | fi |
595 | fi |
607 | fi |
596 | |
608 | |
597 | if test x$support_xft = xyes && test x$rxvt_have_xrender = xyes; then |
609 | if test x$support_xft = xyes && test x$rxvt_have_xrender = xyes; then |
598 | AC_PATH_PROG(PKG_CONFIG, pkg-config, no) |
|
|
599 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
610 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
600 | X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS" |
611 | X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS" |
601 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
612 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
602 | else |
613 | else |
603 | AC_PATH_PROG(XFT_CONFIG, xft-config, no) |
614 | AC_PATH_PROG(XFT_CONFIG, xft-config, no) |
… | |
… | |
612 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG fontconfig --cflags`" |
623 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG fontconfig --cflags`" |
613 | fi |
624 | fi |
614 | |
625 | |
615 | save_LIBS="$LIBS" |
626 | save_LIBS="$LIBS" |
616 | LIBS="$LIBS $X_LIBS" |
627 | LIBS="$LIBS $X_LIBS" |
617 | AC_CHECK_HEADERS(X11/Xft/Xft.h,,[support_xft=no]) |
|
|
618 | AC_CHECK_LIB(Xft,XftDrawString32,:,[support_xft=no]) |
|
|
619 | AC_CHECK_HEADERS(fontconfig/fontconfig.h,,[support_xft=no]) |
628 | AC_CHECK_HEADERS(X11/Xft/Xft.h fontconfig/fontconfig.h,,[support_xft=no]) |
620 | AC_CHECK_LIB(fontconfig,FcPatternGet,:,[support_xft=no]) |
629 | AC_CHECK_FUNCS(XftDrawString32 FcPatternGet,,[support_xft=no]) |
621 | LIBS="$save_LIBS" |
630 | LIBS="$save_LIBS" |
622 | |
631 | |
623 | if test x$support_xft = xyes; then |
632 | if test x$support_xft = xyes; then |
624 | AC_DEFINE(XFT, 1, Define to enable xft support) |
633 | AC_DEFINE(XFT, 1, Define to enable xft support) |
625 | fi |
634 | fi |
626 | fi |
635 | fi |
627 | |
636 | |
628 | image_lib=none |
|
|
629 | |
|
|
630 | PIXBUF_CFLAGS= |
|
|
631 | PIXBUF_LIBS= |
|
|
632 | |
|
|
633 | if test x$support_image = xyes && test x$rxvt_have_xrender = xyes; then |
637 | if test x$support_image = xyes && test x$rxvt_have_xrender = xyes; then |
|
|
638 | AC_MSG_CHECKING(for Render >= 0.11) |
|
|
639 | AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[ |
|
|
640 | #include <X11/extensions/Xrender.h> |
|
|
641 | #if RENDER_MAJOR == 0 && RENDER_MINOR <= 10 |
|
|
642 | error |
|
|
643 | #endif |
|
|
644 | ]])],[],[support_image=no]) |
|
|
645 | if test x$support_image = xyes; then |
|
|
646 | AC_MSG_RESULT(ok) |
634 | LIBS="$LIBS -lm" |
647 | LIBS="$LIBS -lm" |
635 | AC_DEFINE(XRENDER, 1, Define to enable xrender support) |
648 | AC_DEFINE(XRENDER, 1, Define to enable xrender support) |
636 | |
649 | |
637 | if test x$support_inheritpixmap = xyes; then |
650 | if test x$support_inheritpixmap = xyes; then |
638 | AC_DEFINE(ENABLE_TRANSPARENCY, 1, Define if you want your background to use the parent window background) |
651 | AC_DEFINE(ENABLE_TRANSPARENCY, 1, Define if you want your background to use the parent window background) |
639 | fi |
|
|
640 | |
|
|
641 | if test x$support_pixbuf = xyes; then |
|
|
642 | support_pixbuf=no |
|
|
643 | AC_PATH_PROG(PKG_CONFIG, pkg-config, no) |
|
|
644 | AC_MSG_CHECKING(for gdk-pixbuf) |
|
|
645 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists gdk-pixbuf-2.0; then |
|
|
646 | PIXBUF_CFLAGS="`$PKG_CONFIG gdk-pixbuf-2.0 --cflags`" |
|
|
647 | PIXBUF_LIBS="`$PKG_CONFIG gdk-pixbuf-2.0 --libs`" |
|
|
648 | support_pixbuf=yes |
|
|
649 | fi |
652 | fi |
650 | |
|
|
651 | if test x$support_pixbuf = xyes; then |
|
|
652 | AC_MSG_RESULT(ok) |
|
|
653 | image_lib=gdk-pixbuf |
|
|
654 | AC_DEFINE(HAVE_PIXBUF, 1, Define if you want to use gdk-pixbuf for image processing) |
|
|
655 | AC_DEFINE(BG_IMAGE_FROM_FILE, 1, Define if you want to have sexy-looking background pixmaps.) |
|
|
656 | else |
653 | else |
657 | AC_MSG_RESULT(no) |
654 | AC_MSG_RESULT(no) |
658 | fi |
655 | fi |
659 | fi |
|
|
660 | fi |
656 | fi |
661 | |
657 | |
662 | AC_SUBST(PIXBUF_CFLAGS) |
|
|
663 | AC_SUBST(PIXBUF_LIBS) |
|
|
664 | |
|
|
665 | if test x$support_xdbe = xyes; then |
|
|
666 | AC_DEFINE(ENABLE_XDBE, 1, Define if you want to use XDBE) |
|
|
667 | fi |
|
|
668 | if test x$support_styles = xyes; then |
658 | if test x$support_styles = xyes; then |
669 | AC_DEFINE(ENABLE_STYLES, 1, Define if you want bold and italic support) |
659 | AC_DEFINE(ENABLE_STYLES, 1, Define if you want bold and italic support) |
670 | fi |
660 | fi |
671 | if test x$support_iso14755 = xyes; then |
661 | if test x$support_iso14755 = xyes; then |
672 | AC_DEFINE(ISO_14755, 1, Define if you want ISO 14755 extended support) |
662 | AC_DEFINE(ISO_14755, 1, Define if you want ISO 14755 extended support) |