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.151 by sf-exg, Tue Apr 7 20:24:40 2015 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
431 421
432AC_PATH_PROG(TIC, tic, :) 422AC_PATH_PROG(TIC, tic, :)
433 423
434AC_PATH_XTRA 424AC_PATH_XTRA
435 425
426AC_PATH_TOOL(PKG_CONFIG, pkg-config, no)
427
428image_lib=none
429
430PIXBUF_CFLAGS=
431PIXBUF_LIBS=
432
433if 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
449fi
450
451AC_SUBST(PIXBUF_CFLAGS)
452AC_SUBST(PIXBUF_LIBS)
453
436STARTUP_NOTIFICATION_CFLAGS= 454STARTUP_NOTIFICATION_CFLAGS=
437STARTUP_NOTIFICATION_LIBS= 455STARTUP_NOTIFICATION_LIBS=
438 456
439if test x$support_startup_notification = xyes; then 457if 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
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)
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
595fi 607fi
596 608
597if test x$support_xft = xyes && test x$rxvt_have_xrender = xyes; then 609if 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
626fi 635fi
627 636
628image_lib=none
629
630PIXBUF_CFLAGS=
631PIXBUF_LIBS=
632
633if test x$support_image = xyes && test x$rxvt_have_xrender = xyes; then 637if 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
642error
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
660fi 656fi
661 657
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 658if 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)
670fi 660fi
671if test x$support_iso14755 = xyes; then 661if 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)

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines