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.144 by root, Tue Jun 19 18:17:56 2012 UTC vs.
Revision 1.150 by sf-exg, Sat Nov 8 13:00:55 2014 UTC

95support_combining=yes 95support_combining=yes
96support_8bitctrls=no 96support_8bitctrls=no
97support_iso14755=yes 97support_iso14755=yes
98support_styles=yes 98support_styles=yes
99support_perl=yes 99support_perl=yes
100support_xdbe=yes
101codesets=all 100codesets=all
102 101
103dnl# -------------------------------------------------------------------------- 102dnl# --------------------------------------------------------------------------
104dnl# CHECKING COMMAND LINE OPTIONS 103dnl# CHECKING COMMAND LINE OPTIONS
105dnl# -------------------------------------------------------------------------- 104dnl# --------------------------------------------------------------------------
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
172support_assertions=no 168support_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
419AC_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
425dnl# -------------------------------------------------------------------------- 415dnl# --------------------------------------------------------------------------
426 416
427LIBEV_M4_AVOID_LIBRT=1 417LIBEV_M4_AVOID_LIBRT=1
428m4_include([libev/libev.m4]) 418m4_include([libev/libev.m4])
429 419
430dnl# -------------------------------------------------------------------------- 420dnl# --------------------------------------------------------------------------
431 421
432AC_PATH_PROG(TIC, tic, :) 422AC_PATH_PROG(TIC, tic, :)
433 423
434AC_PATH_XTRA 424AC_PATH_XTRA
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)
435 452
436STARTUP_NOTIFICATION_CFLAGS= 453STARTUP_NOTIFICATION_CFLAGS=
437STARTUP_NOTIFICATION_LIBS= 454STARTUP_NOTIFICATION_LIBS=
438 455
439if test x$support_startup_notification = xyes; then 456if test x$support_startup_notification = xyes; then
508dnl# -------------------------------------------------------------------------- 525dnl# --------------------------------------------------------------------------
509dnl# -------------------------------------------------------------------------- 526dnl# --------------------------------------------------------------------------
510 527
511dnl# this is a really hack test for some basic Xlocale stuff 528dnl# this is a really hack test for some basic Xlocale stuff
512save_LIBS=$LIBS 529save_LIBS=$LIBS
513save_CFLAGS=$CFLAGS 530save_CXXFLAGS=$CXXFLAGS
514CFLAGS="$CFLAGS $X_CFLAGS" 531CXXFLAGS="$CXXFLAGS $X_CFLAGS"
515LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11" 532LIBS="$LIBS $X_LIBS $X_EXTRA_LIBS -lX11"
516if test x$support_xim = xyes; then 533if 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])])
552if test x$rxvt_cv_func_xsetlocale = xyes; then 569if 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)
554fi 571fi
555LIBS=$save_LIBS 572LIBS=$save_LIBS
556CFLAGS=$save_CFLAGS 573CXXFLAGS=$save_CXXFLAGS
557 574
558AC_CACHE_CHECK(for working nl_langinfo, rxvt_cv_func_nl_langinfo, 575AC_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])])
560if test x$rxvt_cv_func_nl_langinfo = xyes; then 577if 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)
572dnl# -------------------------------------------------------------------------- 589dnl# --------------------------------------------------------------------------
573support_image=no 590support_image=no
574if test x$support_inheritpixmap = xyes || test x$support_pixbuf = xyes; then 591if test x$support_inheritpixmap = xyes || test x$support_pixbuf = xyes; then
575 support_image=yes 592 support_image=yes
576fi 593fi
577if test x$support_xdbe = xyes; then
578 LIBS="$LIBS -lXext"
579fi
580
581if test x$support_xft = xyes || test x$support_image = xyes; then 594if 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) 596 AC_PATH_PROG(PKG_CONFIG, pkg-config, no)
584 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then 597 if test $PKG_CONFIG != no && $PKG_CONFIG --exists xrender; then
585 X_LIBS="`$PKG_CONFIG xrender --libs` $X_LIBS" 598 X_LIBS="`$PKG_CONFIG xrender --libs` $X_LIBS"
612 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG fontconfig --cflags`" 625 CPPFLAGS="$CPPFLAGS `$PKG_CONFIG fontconfig --cflags`"
613 fi 626 fi
614 627
615 save_LIBS="$LIBS" 628 save_LIBS="$LIBS"
616 LIBS="$LIBS $X_LIBS" 629 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]) 630 AC_CHECK_HEADERS(X11/Xft/Xft.h fontconfig/fontconfig.h,,[support_xft=no])
620 AC_CHECK_LIB(fontconfig,FcPatternGet,:,[support_xft=no]) 631 AC_CHECK_FUNCS(XftDrawString32 FcPatternGet,,[support_xft=no])
621 LIBS="$save_LIBS" 632 LIBS="$save_LIBS"
622 633
623 if test x$support_xft = xyes; then 634 if test x$support_xft = xyes; then
624 AC_DEFINE(XFT, 1, Define to enable xft support) 635 AC_DEFINE(XFT, 1, Define to enable xft support)
625 fi 636 fi
626fi 637fi
627 638
628image_lib=none
629
630PIXBUF_CFLAGS=
631PIXBUF_LIBS=
632
633if 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)
634 LIBS="$LIBS -lm" 649 LIBS="$LIBS -lm"
635 AC_DEFINE(XRENDER, 1, Define to enable xrender support) 650 AC_DEFINE(XRENDER, 1, Define to enable xrender support)
636 651
637 if test x$support_inheritpixmap = xyes; then 652 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) 653 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 654 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 655 else
657 AC_MSG_RESULT(no) 656 AC_MSG_RESULT(no)
658 fi 657 fi
659 fi
660fi 658fi
661 659
662AC_SUBST(PIXBUF_CFLAGS)
663AC_SUBST(PIXBUF_LIBS)
664
665if test x$support_xdbe = xyes; then
666 AC_DEFINE(ENABLE_XDBE, 1, Define if you want to use XDBE)
667fi
668if test x$support_styles = xyes; then 660if test x$support_styles = xyes; then
669 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)
670fi 662fi
671if test x$support_iso14755 = xyes; then 663if test x$support_iso14755 = xyes; then
672 AC_DEFINE(ISO_14755, 1, Define if you want ISO 14755 extended support) 664 AC_DEFINE(ISO_14755, 1, Define if you want ISO 14755 extended support)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines