… | |
… | |
421 | |
421 | |
422 | AC_PATH_PROG(TIC, tic, :) |
422 | AC_PATH_PROG(TIC, tic, :) |
423 | |
423 | |
424 | AC_PATH_XTRA |
424 | AC_PATH_XTRA |
425 | |
425 | |
|
|
426 | AC_PATH_TOOL(PKG_CONFIG, pkg-config, no) |
|
|
427 | |
426 | image_lib=none |
428 | image_lib=none |
427 | |
429 | |
428 | PIXBUF_CFLAGS= |
430 | PIXBUF_CFLAGS= |
429 | PIXBUF_LIBS= |
431 | PIXBUF_LIBS= |
430 | |
432 | |
431 | if test x$support_pixbuf = xyes; then |
433 | if test x$support_pixbuf = xyes; then |
432 | support_pixbuf=no |
434 | support_pixbuf=no |
433 | AC_PATH_PROG(PKG_CONFIG, pkg-config, no) |
|
|
434 | AC_MSG_CHECKING(for gdk-pixbuf) |
435 | AC_MSG_CHECKING(for gdk-pixbuf) |
435 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists gdk-pixbuf-2.0; then |
436 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists gdk-pixbuf-2.0; then |
436 | PIXBUF_CFLAGS="`$PKG_CONFIG gdk-pixbuf-2.0 --cflags`" |
437 | PIXBUF_CFLAGS="`$PKG_CONFIG gdk-pixbuf-2.0 --cflags`" |
437 | PIXBUF_LIBS="`$PKG_CONFIG gdk-pixbuf-2.0 --libs`" |
438 | PIXBUF_LIBS="`$PKG_CONFIG gdk-pixbuf-2.0 --libs`" |
438 | support_pixbuf=yes |
439 | support_pixbuf=yes |
… | |
… | |
453 | STARTUP_NOTIFICATION_CFLAGS= |
454 | STARTUP_NOTIFICATION_CFLAGS= |
454 | STARTUP_NOTIFICATION_LIBS= |
455 | STARTUP_NOTIFICATION_LIBS= |
455 | |
456 | |
456 | if test x$support_startup_notification = xyes; then |
457 | if test x$support_startup_notification = xyes; then |
457 | support_startup_notification=no |
458 | support_startup_notification=no |
458 | AC_PATH_PROG(PKG_CONFIG, pkg-config, no) |
|
|
459 | AC_MSG_CHECKING(for libstartup-notification) |
459 | AC_MSG_CHECKING(for libstartup-notification) |
460 | 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 |
461 | STARTUP_NOTIFICATION_CFLAGS="`$PKG_CONFIG libstartup-notification-1.0 --cflags`" |
461 | STARTUP_NOTIFICATION_CFLAGS="`$PKG_CONFIG libstartup-notification-1.0 --cflags`" |
462 | STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG libstartup-notification-1.0 --libs`" |
462 | STARTUP_NOTIFICATION_LIBS="`$PKG_CONFIG libstartup-notification-1.0 --libs`" |
463 | support_startup_notification=yes |
463 | support_startup_notification=yes |
… | |
… | |
525 | dnl# -------------------------------------------------------------------------- |
525 | dnl# -------------------------------------------------------------------------- |
526 | dnl# -------------------------------------------------------------------------- |
526 | dnl# -------------------------------------------------------------------------- |
527 | |
527 | |
528 | 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 |
529 | save_LIBS=$LIBS |
529 | save_LIBS=$LIBS |
530 | save_CFLAGS=$CFLAGS |
530 | save_CXXFLAGS=$CXXFLAGS |
531 | CFLAGS="$CFLAGS $X_CFLAGS" |
531 | CXXFLAGS="$CXXFLAGS $X_CFLAGS" |
532 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
532 | LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" |
533 | if test x$support_xim = xyes; then |
533 | if test x$support_xim = xyes; then |
534 | AC_CACHE_CHECK(for working Xlocale, rxvt_cv_func_xlocale, |
534 | AC_CACHE_CHECK(for working Xlocale, rxvt_cv_func_xlocale, |
535 | [AC_RUN_IFELSE([AC_LANG_SOURCE([[ |
535 | [AC_RUN_IFELSE([AC_LANG_SOURCE([[ |
536 | #include <X11/Xlib.h> |
536 | #include <X11/Xlib.h> |
… | |
… | |
568 | #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])]) |
569 | if test x$rxvt_cv_func_xsetlocale = xyes; then |
569 | if test x$rxvt_cv_func_xsetlocale = xyes; then |
570 | 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) |
571 | fi |
571 | fi |
572 | LIBS=$save_LIBS |
572 | LIBS=$save_LIBS |
573 | CFLAGS=$save_CFLAGS |
573 | CXXFLAGS=$save_CXXFLAGS |
574 | |
574 | |
575 | 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, |
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])]) |
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])]) |
577 | if test x$rxvt_cv_func_nl_langinfo = xyes; then |
577 | if test x$rxvt_cv_func_nl_langinfo = xyes; then |
578 | 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) |
… | |
… | |
591 | 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 |
592 | support_image=yes |
592 | support_image=yes |
593 | fi |
593 | fi |
594 | 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 |
595 | rxvt_have_xrender=no |
595 | rxvt_have_xrender=no |
596 | AC_PATH_PROG(PKG_CONFIG, pkg-config, no) |
|
|
597 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then |
596 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then |
598 | X_LIBS="`$PKG_CONFIG xrender --libs` $X_LIBS" |
597 | X_LIBS="`$PKG_CONFIG xrender --libs` $X_LIBS" |
599 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xrender --cflags`" |
598 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xrender --cflags`" |
600 | rxvt_have_xrender=yes |
599 | rxvt_have_xrender=yes |
601 | |
600 | |
… | |
… | |
606 | LIBS="$save_LIBS" |
605 | LIBS="$save_LIBS" |
607 | fi |
606 | fi |
608 | fi |
607 | fi |
609 | |
608 | |
610 | 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 |
611 | AC_PATH_PROG(PKG_CONFIG, pkg-config, no) |
|
|
612 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
610 | if test $PKG_CONFIG != no && $PKG_CONFIG --exists xft; then |
613 | X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS" |
611 | X_LIBS="`$PKG_CONFIG xft --libs` $X_LIBS" |
614 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
612 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG xft --cflags`" |
615 | else |
613 | else |
616 | AC_PATH_PROG(XFT_CONFIG, xft-config, no) |
614 | AC_PATH_PROG(XFT_CONFIG, xft-config, no) |
… | |
… | |
625 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG fontconfig --cflags`" |
623 | CPPFLAGS="$CPPFLAGS `$PKG_CONFIG fontconfig --cflags`" |
626 | fi |
624 | fi |
627 | |
625 | |
628 | save_LIBS="$LIBS" |
626 | save_LIBS="$LIBS" |
629 | LIBS="$LIBS $X_LIBS" |
627 | LIBS="$LIBS $X_LIBS" |
630 | AC_CHECK_HEADERS(X11/Xft/Xft.h,,[support_xft=no]) |
|
|
631 | AC_CHECK_LIB(Xft,XftDrawString32,:,[support_xft=no]) |
|
|
632 | AC_CHECK_HEADERS(fontconfig/fontconfig.h,,[support_xft=no]) |
628 | AC_CHECK_HEADERS(X11/Xft/Xft.h fontconfig/fontconfig.h,,[support_xft=no]) |
633 | AC_CHECK_LIB(fontconfig,FcPatternGet,:,[support_xft=no]) |
629 | AC_CHECK_FUNCS(XftDrawString32 FcPatternGet,,[support_xft=no]) |
634 | LIBS="$save_LIBS" |
630 | LIBS="$save_LIBS" |
635 | |
631 | |
636 | if test x$support_xft = xyes; then |
632 | if test x$support_xft = xyes; then |
637 | AC_DEFINE(XFT, 1, Define to enable xft support) |
633 | AC_DEFINE(XFT, 1, Define to enable xft support) |
638 | fi |
634 | fi |
639 | fi |
635 | fi |
640 | |
636 | |
641 | 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) |
642 | LIBS="$LIBS -lm" |
647 | LIBS="$LIBS -lm" |
643 | AC_DEFINE(XRENDER, 1, Define to enable xrender support) |
648 | AC_DEFINE(XRENDER, 1, Define to enable xrender support) |
644 | |
649 | |
645 | if test x$support_inheritpixmap = xyes; then |
650 | if test x$support_inheritpixmap = xyes; then |
646 | 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) |
|
|
652 | fi |
|
|
653 | else |
|
|
654 | AC_MSG_RESULT(no) |
647 | fi |
655 | fi |
648 | fi |
656 | fi |
649 | |
657 | |
650 | if test x$support_styles = xyes; then |
658 | if test x$support_styles = xyes; then |
651 | 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) |