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.145 by root, Tue Jun 19 20:50:05 2012 UTC vs.
Revision 1.149 by sf-exg, Sun Nov 2 15:52:39 2014 UTC

421 421
422AC_PATH_PROG(TIC, tic, :) 422AC_PATH_PROG(TIC, tic, :)
423 423
424AC_PATH_XTRA 424AC_PATH_XTRA
425 425
426image_lib=none
427
428PIXBUF_CFLAGS=
429PIXBUF_LIBS=
430
431if test x$support_pixbuf = xyes; then
432 support_pixbuf=no
433 AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
434 AC_MSG_CHECKING(for gdk-pixbuf)
435 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_LIBS="`$PKG_CONFIG gdk-pixbuf-2.0 --libs`"
438 support_pixbuf=yes
439 fi
440
441 if test x$support_pixbuf = xyes; then
442 AC_MSG_RESULT(ok)
443 image_lib=gdk-pixbuf
444 AC_DEFINE(HAVE_PIXBUF, 1, Define if you want to use gdk-pixbuf for image processing)
445 else
446 AC_MSG_RESULT(no)
447 fi
448fi
449
450AC_SUBST(PIXBUF_CFLAGS)
451AC_SUBST(PIXBUF_LIBS)
452
426STARTUP_NOTIFICATION_CFLAGS= 453STARTUP_NOTIFICATION_CFLAGS=
427STARTUP_NOTIFICATION_LIBS= 454STARTUP_NOTIFICATION_LIBS=
428 455
429if test x$support_startup_notification = xyes; then 456if test x$support_startup_notification = xyes; then
430 support_startup_notification=no 457 support_startup_notification=no
598 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG fontconfig --cflags`" 625 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG fontconfig --cflags`"
599 fi 626 fi
600 627
601 save_LIBS="$LIBS" 628 save_LIBS="$LIBS"
602 LIBS="$LIBS $X_LIBS" 629 LIBS="$LIBS $X_LIBS"
603 AC_CHECK_HEADERS(X11/Xft/Xft.h,,[support_xft=no])
604 AC_CHECK_LIB(Xft,XftDrawString32,:,[support_xft=no])
605 AC_CHECK_HEADERS(fontconfig/fontconfig.h,,[support_xft=no]) 630 AC_CHECK_HEADERS(X11/Xft/Xft.h fontconfig/fontconfig.h,,[support_xft=no])
606 AC_CHECK_LIB(fontconfig,FcPatternGet,:,[support_xft=no]) 631 AC_CHECK_FUNCS(XftDrawString32 FcPatternGet,,[support_xft=no])
607 LIBS="$save_LIBS" 632 LIBS="$save_LIBS"
608 633
609 if test x$support_xft = xyes; then 634 if test x$support_xft = xyes; then
610 AC_DEFINE(XFT, 1, Define to enable xft support) 635 AC_DEFINE(XFT, 1, Define to enable xft support)
611 fi 636 fi
612fi 637fi
613 638
614image_lib=none
615
616PIXBUF_CFLAGS=
617PIXBUF_LIBS=
618
619if test x$support_image = xyes && test x$rxvt_have_xrender = xyes; then 639if test x$support_image = xyes && test x$rxvt_have_xrender = xyes; then
640 AC_MSG_CHECKING(for Render >= 0.11)
641 AC_COMPILE_IFELSE([AC_LANG_PROGRAM([[
642#include <X11/extensions/Xrender.h>
643#if RENDER_MAJOR == 0 && RENDER_MINOR <= 10
644error
645#endif
646]])],[],[support_image=no])
647 if test x$support_image = xyes; then
648 AC_MSG_RESULT(ok)
620 LIBS="$LIBS -lm" 649 LIBS="$LIBS -lm"
621 AC_DEFINE(XRENDER, 1, Define to enable xrender support) 650 AC_DEFINE(XRENDER, 1, Define to enable xrender support)
622 651
623 if test x$support_inheritpixmap = xyes; then 652 if test x$support_inheritpixmap = xyes; then
624 AC_DEFINE(ENABLE_TRANSPARENCY, 1, Define if you want your background to use the parent window background) 653 AC_DEFINE(ENABLE_TRANSPARENCY, 1, Define if you want your background to use the parent window background)
625 fi
626
627 if test x$support_pixbuf = xyes; then
628 support_pixbuf=no
629 AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
630 AC_MSG_CHECKING(for gdk-pixbuf)
631 if test $PKG_CONFIG != no && $PKG_CONFIG --exists gdk-pixbuf-2.0; then
632 PIXBUF_CFLAGS="`$PKG_CONFIG gdk-pixbuf-2.0 --cflags`"
633 PIXBUF_LIBS="`$PKG_CONFIG gdk-pixbuf-2.0 --libs`"
634 support_pixbuf=yes
635 fi 654 fi
636
637 if test x$support_pixbuf = xyes; then
638 AC_MSG_RESULT(ok)
639 image_lib=gdk-pixbuf
640 AC_DEFINE(HAVE_PIXBUF, 1, Define if you want to use gdk-pixbuf for image processing)
641 AC_DEFINE(BG_IMAGE_FROM_FILE, 1, Define if you want to have sexy-looking background pixmaps.)
642 else 655 else
643 AC_MSG_RESULT(no) 656 AC_MSG_RESULT(no)
644 fi 657 fi
645 fi
646fi 658fi
647
648AC_SUBST(PIXBUF_CFLAGS)
649AC_SUBST(PIXBUF_LIBS)
650 659
651if test x$support_styles = xyes; then 660if test x$support_styles = xyes; then
652 AC_DEFINE(ENABLE_STYLES, 1, Define if you want bold and italic support) 661 AC_DEFINE(ENABLE_STYLES, 1, Define if you want bold and italic support)
653fi 662fi
654if test x$support_iso14755 = xyes; then 663if test x$support_iso14755 = xyes; then

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines